Skip to content

Instantly share code, notes, and snippets.

View jeremydw's full-sized avatar

Jeremy Weinstein jeremydw

View GitHub Profile
@uxder
uxder / convert-to-transparent.gif
Created September 30, 2016 08:03
alpha-transparency-gif-maker.sh
## A script to make a series of pngs that uses alpha transparency into an animated gif.
## Gifs only support 100% transparent or a 100% opaque pixel colors so imagemagick will convert your 80% transparent color into 100%.
## Requires: Imagemagick
# Make all transparency into white pixels.
mogrify -background white -alpha remove *.png
# Convert the white pixels back to transparency.
for f in *.png
do
@bpmore
bpmore / sort-tabs.txt
Created June 9, 2016 17:41
Sort Tabs in Google Spreadsheets
1. Copy/Paste the information below to the clipboard
2. Open the spreadsheet whose sheets need to be alphabetised
3. Choose Tools > Script editor > Blank (this opens a new tab in the browser)
4. Press Control+A followed by Control+V copy and paste the script in
5. Press Control+S to save the script
6. Choose Run > sortSheets
7. Go back to the spreadsheet tab to view the new sorted tab order
--Copy everything below this line--
function sortSheets () {
git log --since "APR 18 2016" --until "MAY 18 2016" --pretty=format:'- %s'
git log --since "AUG 01 2016" --until "OCT 21 2016" --pretty=format:"%h%x09%an%x09%ad%x09%s" | pbcopy
git log --pretty=format:'- %s'
@kwk
kwk / .gitconfig
Last active June 4, 2023 14:31
Aliases to quickly find git commits made in quarter of a year
[alias]
# List your commits by quarters of a year in reverse order (short version)
q1 = "!f() { year=$1; shift; git log --author \"$(git config --get user.name)\" --since \"January $year\" --until \"March $year\" --oneline --reverse $@; }; f"
q2 = "!f() { year=$1; shift; git log --author \"$(git config --get user.name)\" --since \"April $year\" --until \"June $year\" --oneline --reverse $@; }; f"
q3 = "!f() { year=$1; shift; git log --author \"$(git config --get user.name)\" --since \"July $year\" --until \"September $year\" --oneline --reverse $@; }; f"
q4 = "!f() { year=$1; shift; git log --author \"$(git config --get user.name)\" --since \"October $year\" --until \"December $year\" --oneline --reverse $@; }; f"
# List your commits by quarters of a year in reverse order (long version)
quarter1 = "!f() { year=$1; shift; git log --author \"$(git config --get user.name)\" --since \"January $year\" --until \"March $year\" --reverse $@; }; f"
quarter2 = "!f() { year=$1; shift; git