Skip to content

Instantly share code, notes, and snippets.

View ordavidil's full-sized avatar

Or David ordavidil

View GitHub Profile
@ordavidil
ordavidil / mov_to_gif.sh
Created November 14, 2017 12:06
Convert .mov files to .gif via terminal (Mac)
# Add to your .bash_profile
# Usage:
# mov_to_gif <file_name>
#
# Taken from: https://gist.github.com/dergachev/4627207#instructions
function mov_to_gif() {
GIF=$(sed 's/\.mov/\'$'.gif/g' <<< $1)
ffmpeg -i $1 -pix_fmt rgb24 -r 10 -f gif - > $GIF
}
// Access callback is being called as part of og_context_determine_context()
// calling menu_get_item(). However at this point there is no determined
// context, since it's the first time it is being called.
// In fact. this access callback is being called twice: First time from within
// og context attempts to get the current group ID. In that case, we return
// early, and let OG context finish its job.
// The second time this function will be called, the og_context_is_init()
// will return TRUE, thus we will perform the real access check.
@ordavidil
ordavidil / gizra_default_labels
Created July 16, 2015 09:11
Setting the default labels for Gizra's projects.
#!/bin/bash
echo -n "GitHub User: "
read USER
echo -n "GitHub Password: "
read -s PASS
REPO_USER="Gizra"