Skip to content

Instantly share code, notes, and snippets.

Avatar

Frank Dana ferdnyc

  • Bronx, NY, USA
View GitHub Profile
@ferdnyc
ferdnyc / _git-sync-notes.sh
Last active Sep 9, 2020
OpenShot notes: Configs for syncing github repos to local mirrors
View _git-sync-notes.sh
#!/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 Feb 13, 2019
A copy of Fedora's postgresql readme
View README.rpm-dist.txt
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 Oct 25, 2018
Mirror of "Spode's Bash Godville" code from the GodWiki (wiki.godvillegame.com)
View spodes-godville.sh
#!/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 Sep 9, 2020
My GitHub branch-management workflow
View github-branching.md

GitHub branch management for upstream remote projects using git

My GitHub branch-management process, first attempted with OpenShot/openshot-qt but now the one I use on all projects.

  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 Aug 24, 2018
Comparison (via unified diff) of the fedpkg and rfpkg __init__.py and cli.py source
View fedpkg-rfpkg-cli_U8.diff
--- 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 <jkeating@redhat.com>
+# Nicolas Chauvet <kwizart@gmail.com> - 2015
@ferdnyc
ferdnyc / fedpkg-rfpkg-cli_U8.diff
Created Aug 24, 2018
Comparison (via unified diff) of the fedpkg and rfpkg __init__.py and cli.py source
View fedpkg-rfpkg-cli_U8.diff
--- 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 <jkeating@redhat.com>
+# Nicolas Chauvet <kwizart@gmail.com> - 2015
@ferdnyc
ferdnyc / rar2zip.sh
Last active Aug 12, 2020
Conversion from rar to zip
View rar2zip.sh
#!/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 Sep 23, 2017
patch to remove custom prefs dialog from frippery-applications Gnome Shell extension
View 0001-Remove-custom-prefs-dialog.patch
From 496f721fca02925cb488190474e4cb56417a540e Mon Sep 17 00:00:00 2001
From: "FeRD (Frank Dana)" <ferdnyc@gmail.com>
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 openweather-extension@jenslody.de)
@ferdnyc
ferdnyc / gist:22d10303bb5df398434f
Created May 22, 2015
Code snippets for a comment at dpedu.io
View gist:22d10303bb5df398434f
# I realize this post is a year old, and I'm not sure whether you even use this script anymore,
# but I thought I'd mention a couple of optimizations that might help out anyone else using it.
# Sed accepts multiple commands in a single invocation, so you can eliminate one tempfile by
# combining the two sed commands into one call:
sed -e '/^INSERT_INTO `drupal_cache/d;/^INSERT_INTO `drupal_watchdog`/d;' < dump_raw.sql > dump.sql
# However, thanks to the power of regular expressions, this could even be combined into a single regexp
# that matches both lines of interest:
You can’t perform that action at this time.