Skip to content

Instantly share code, notes, and snippets.

View ferdnyc's full-sized avatar

Frank Dana ferdnyc

View GitHub Profile
@ferdnyc
ferdnyc / articles_test.json
Created November 7, 2022 05:04
Article pageviews test spec
{
"debug": 1,
"$schema": "https://vega.github.io/schema/vega/v5.json",
"description": "A bar chart of flight statistics, aggregated by the selected time unit.",
"width": 500,
"height": 500,
"padding": 5,
"autosize": {"type": "fit", "resize": true, "contains": "padding"},
"title": {
@ferdnyc
ferdnyc / iwyu_avidemux2.txt
Created January 12, 2021 00:04
include-what-you-use 0.12 based on clang version 9.0.1-10, run on avidemux2/avidemux_core with default options
/avidemux2/avidemux_core/ADM_core/src/ADM_cpuCap.cpp:190:5: warning: 'av_set_cpu_flags_mask' is deprecated [-Wdeprecated-declarations]
av_set_cpu_flags_mask(lavCpuMask);
^
/avidemux2/avidemux_core/build/ffmpeg/source/libavutil/cpu.h:93:1: note: 'av_set_cpu_flags_mask' has been explicitly marked deprecated here
attribute_deprecated void av_set_cpu_flags_mask(int mask);
^
/avidemux2/avidemux_core/build/ffmpeg/source/libavutil/attributes.h:94:49: note: expanded from macro 'attribute_deprecated'
# define attribute_deprecated __attribute__((deprecated))
^
@ferdnyc
ferdnyc / _git-sync-notes.sh
Last active September 9, 2020 17:03
OpenShot notes: Configs for syncing github repos to local mirrors
#!/bin/sh
cat >/dev/null <<__END__
OK, I believe I've got a handle on this git syncing stuff. Right now I've
got a cron job running every 5 minutes on my local machine, mirroring all
of the following repos in full:
https://github.com/OpenShot/libopenshot-audio.git
https://github.com/OpenShot/libopenshot.git
@ferdnyc
ferdnyc / README.rpm-dist.txt
Created February 13, 2019 06:49
A copy of Fedora's postgresql readme
PostgreSQL in RPMs
--------------------------------------------------------------------------
INTRODUCTION
This document exists to explain the layout of the RPMs for PostgreSQL, to
describe various RPM specifics, and to document special features found in
the RPMset.
@ferdnyc
ferdnyc / spodes-godville.sh
Created October 25, 2018 04:08
Mirror of "Spode's Bash Godville" code from the GodWiki (wiki.godvillegame.com)
#!/bin/bash
# Spode's version of Godville. Free and open-sourced but give credit where used.
#
# Originally posted to the Godville Wiki
# https://wiki.godvillegame.com/Spode%27s_Bash_Godville
#
# Version: 1.1.2
# Last update: 22:09, 3 June 2012 (UTC)
@ferdnyc
ferdnyc / github-branching.md
Last active September 27, 2023 21:13
My GitHub branch-management workflow

GitHub branch management for upstream remote projects using git

My previous GitHub branch-management process, first attempted with OpenShot/openshot-qt, and used on all projects until I came to appreciate the hub method (described below). Note that what's described here is also what the gh command will set up automatically, if the user first clones an upstream and then runs gh repo fork in that directory.

  1. After creating my fork in the web interface
    $ git clone <my fork SSH identifier>; cd $PROJECT
    $ git remote add upstream <upstream HTTPS URL>
    $ git fetch upstream

From https://github.com/...

@ferdnyc
ferdnyc / fedpkg-rfpkg-cli_U8.diff
Created August 24, 2018 09:18
Comparison (via unified diff) of the fedpkg and rfpkg __init__.py and cli.py source
--- fedpkg/fedpkg/cli.py 2018-08-23 12:21:22.627622258 -0400
+++ rfpkg/src/rfpkg/cli.py 2018-08-23 12:21:38.273925248 -0400
@@ -1,1136 +1,210 @@
-# -*- coding: utf-8 -*-
-# cli.py - a cli client class module for fedpkg
+# cli.py - a cli client class module for rfpkg
#
# Copyright (C) 2011 Red Hat Inc.
# Author(s): Jesse Keating <[email protected]>
+# Nicolas Chauvet <[email protected]> - 2015
@ferdnyc
ferdnyc / fedpkg-rfpkg-cli_U8.diff
Created August 24, 2018 09:18
Comparison (via unified diff) of the fedpkg and rfpkg __init__.py and cli.py source
--- fedpkg/fedpkg/cli.py 2018-08-23 12:21:22.627622258 -0400
+++ rfpkg/src/rfpkg/cli.py 2018-08-23 12:21:38.273925248 -0400
@@ -1,1136 +1,210 @@
-# -*- coding: utf-8 -*-
-# cli.py - a cli client class module for fedpkg
+# cli.py - a cli client class module for rfpkg
#
# Copyright (C) 2011 Red Hat Inc.
# Author(s): Jesse Keating <[email protected]>
+# Nicolas Chauvet <[email protected]> - 2015
@ferdnyc
ferdnyc / rar2zip.sh
Last active April 4, 2024 18:48
Conversion from rar to zip
#!/bin/bash
#
# rar2zip conversion script
# Based on: https://shkspr.mobi/blog/2016/12/converting-rar-to-zip-in-linux/
#
# Usage: rar2zip.sh file [file ...]
echo "Converting RARs to ZIPs"
# Use RAM disk for temporary files.
@ferdnyc
ferdnyc / 0001-Remove-custom-prefs-dialog.patch
Last active September 23, 2017 22:25
patch to remove custom prefs dialog from frippery-applications Gnome Shell extension
From 496f721fca02925cb488190474e4cb56417a540e Mon Sep 17 00:00:00 2001
From: "FeRD (Frank Dana)" <[email protected]>
Date: Sat, 23 Sep 2017 18:15:16 -0400
Subject: [PATCH] Remove custom prefs dialog
This does away with the secondary, custom preferences dialog
displayed on right-click (which was no longer formatting correctly)
in favor of just using Util.spawn() to launch the standard
gnome-shell-extension-prefs dialog for this extension.
(An idea shamelessly stolen from [email protected])