Skip to content

Instantly share code, notes, and snippets.

🛠
Fixing things

Edward Q. Bridges ebridges

🛠
Fixing things
Block or report user

Report or block ebridges

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ebridges
ebridges / hide-quantity-block.css
Created Nov 17, 2018
Hides the quantity block on Family Portrait Day website.
View hide-quantity-block.css
.is-first-product-block>.productDetails>.product-quantity-input {
display: none;
visibility: hidden;
}
@ebridges
ebridges / .jhbuildrc-custom
Created Nov 11, 2017
jhbuild customizations
View .jhbuildrc-custom
# -*- mode: python -*-
#Uncomment this if you have a completed build and only want to rebuild
#updated modules instead of everything:
#
#build_policy = "updated-deps"
#Select one of these, or use a different one: Do keep the directories
#separate for stable and unstable as they have different
#dependencies. You can use 2.3.x for svn builds.
@ebridges
ebridges / gnucash.modules
Created Nov 11, 2017
gnucash.modules configuration
View gnucash.modules
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE moduleset SYSTEM "moduleset.dtd">
<?xml-stylesheet type="text/xsl" href="moduleset.xsl"?>
<moduleset>
<repository type="tarball" name="ftp.gnome.org" default="yes"
href="http://ftp.gnome.org/pub/GNOME/sources/"/>
<repository type="tarball" name="kernel.org"
href="http://www.kernel.org/pub/linux/"/>
<repository type='tarball' name='ftp.gnu.org'
@ebridges
ebridges / s3-playbook.yml
Last active May 17, 2019
Ansible playbook to generate one or more S3 buckets with permissions useful for rclone.
View s3-playbook.yml
---
## Usage:
## ansible-playbook s3-playbook.yml
- hosts: localhost
connection: local
gather_facts: False
vars:
buckets:
'<BucketName>' : '<BucketARN>'
'com.example.bucket' : 'arn:aws:s3:::com.example.bucket'
@ebridges
ebridges / list-jpegs.sh
Last active Sep 17, 2016
Lists all JPEGs under a directory into a format indexed by filename.
View list-jpegs.sh
find . -iname '*.jpg' -not -path '*.AppleDouble*' -print0 \
| while read -d $'\0' file; \
do \
FILE=`basename "$file"` && echo "$FILE^$file" ; \
done > list.txt
@ebridges
ebridges / merge-repos.md
Last active Jan 19, 2016
Import history from one repo into another
View merge-repos.md
@ebridges
ebridges / rebase-master.sh
Created Apr 21, 2015
How to rebase master onto a long-lived branch that has been pushed to origin already
View rebase-master.sh
## 0.
$ BRANCH_NAME=eqb/my-branch
## 1. Pull down latest remote version of master & branch
$ git checkout master && git pull
$ git checkout $BRANCH_NAME && git pull
## 2. Delete remote branch
$ git push origin --delete $BRANCH_NAME
## 3. Remove dangling reference to origin
$ git branch --unset-upstream
## 4. Apply changes from master on branch
View playbook-test.sh
#!/bin/sh
### Requires python virtualenv to be available
if [ ! -e playbook-test ]; then
mkdir playbook-test
fi
cd playbook-test
virtualenv pbtest
@ebridges
ebridges / restore-table.sh
Created Oct 21, 2014
Restores a single table from a dump file to the configured database.
View restore-table.sh
#!/bin/bash
table=$1
if [ -z "$table" ];
then
echo "Usage: $0 [table-name]"
exit
fi
View keybase.md

Keybase proof

I hereby claim:

  • I am ebridges on github.
  • I am ebridges (https://keybase.io/ebridges) on keybase.
  • I have a public key whose fingerprint is 0B87 E5DC E75C D3CC D084 F276 C72B C826 94F7 4CC4

To claim this, I am signing this object:

You can’t perform that action at this time.