Skip to content

Instantly share code, notes, and snippets.

@wheatpenny
wheatpenny / gist:8669489
Last active June 22, 2016 16:33
Quick CLI streaming internet radio from BASH.
####
# STREAMING RADIO
####
ojciek() {
PS3='Please enter your choice: '
options=("WNCW" "WNTI" "KRCL" "KUTX" "KCRW: Music" "WBGO" "Quit")
@wheatpenny
wheatpenny / gist:5826416
Last active December 18, 2015 18:30
Bash startup script for Ojciek repository. A responsive base theme in one command.
ojciek()
{
compass create $1 -l [PATH_TO_REPO] --using ojciek -r singularitygs -r singularity-extras -r color-schemer -r compass-normalize -r toolkit --sass-dir=sass --css-dir=css
}
@wheatpenny
wheatpenny / gist:5806574
Last active December 18, 2015 15:48
dretup: a daily bash command
dretup()
{
drush vset --yes preprocess_js FALSE
drush vset --yes preprocess_css FALSE
drush vset --yes file_private_path "sites/default/files/private"
drush vset --yes file_public_path "sites/default/files"
drush vset --yes page_compression 0
drush vset --yes block_cache 0
drush vset --yes cache 0
drush vset --yes error_level 2
@wheatpenny
wheatpenny / gist:5806568
Created June 18, 2013 15:56
drup: a daily bash command
drup()
{
cd /var/www/sevencore/
cowsay "Updating D7 core for Netbeans."
git pull
cd /var/www/$1/sites/default/
cowsay "Changing directory to /var/www/"$1"/sites/default"
cowsay "Temporarily moving to root. Updating core."
(cdd && git pull --rebase && drush updatedb -y)
cowsay "Moving back to /var/www/"$1"/sites/default. Updating the "$1" repo."