Skip to content

Instantly share code, notes, and snippets.

View ElijahLynn's full-sized avatar
😎
All Your DevOps Belong To Us

Elijah Lynn ElijahLynn

😎
All Your DevOps Belong To Us
View GitHub Profile
svg {
background: #012;
}
path {
stroke: #fff;
stroke-opacity: .5;
}
body {
margin: 20px;
color: #2B2B2B;
background-color: #D47D7D;
}
div {
margin: 10px;
@ElijahLynn
ElijahLynn / Gemfile
Created September 6, 2012 23:05 — forked from dvessel/README.mdown
Sass+Compass, Guard, LiveReload
# ~/Gemfile
source "http://rubygems.org"
group :development do
gem 'compass' # Depends on Sass, will be installed automatically.
gem 'compass-960-plugin' # 960.gs
gem 'compass-validator' # So you can `compass validate`.
gem 'oily_png' # Faster Compass sprite generation.
gem 'css_parser' # Helps `compass stats` output statistics.
| => guard
ERROR: Invalid Guardfile, original error is:
no block given
Guard is now watching at '/home/elijah/Desktop/krees'
Guard::Compass is watching at your stylesheets.
> > >
# Fish while loop example
# This was to come up with how many URLs I could fit in the 50KB max purge request to Akamai for invalidation purges.
while test (du -b /tmp/ak | awk '{print $1}') -lt 50001
echo (du -b /tmp/ak | awk '{print $1}') bytes
echo "https://community.akamai.com/thread/2706" >> /tmp/ak; echo (wc -l /tmp/ak | awk '{print $1}' ) lines
end
@ElijahLynn
ElijahLynn / .bash_aliases
Last active December 16, 2015 02:39
Elijah's Publisher 7 Aliases
# Put these in your ~/.bash_aliases file then run "source ~/.bash_aliases" from your command line.
alias dp="drush pub7"
alias dp1="drush @pub7.qa1.dev"
alias dp1s="drush @pub7.qa1.stage"
alias dp1p="drush @pub7.qa1.prod"
alias dp2="drush @pub7.qa2.dev"
alias dp2s="drush @pub7.qa2.stage"
alias dp2p="drush @pub7.qa2.prod"
alias dp3="drush @pub7.qa3.dev"
alias dp3s="drush @pub7.qa3.stage"
tions[] = l(t('Delete'), 'node/' . $node->nid . '/revisions/' . $vid . '/delete');
}
foreach ($state_events as $event_machine_name => $event) {
if (state_flow_access($state_node, $event_machine_name)) {
$state_actions[] = l($event->get_option('label'), 'node/' . $node->nid . '/revisions/' . $vid . '/workflow/' . $event_machine_name) . ' ';
}
}
$state_actions_str = implode(' | ', $state_actions);
$item = array(
l($vid, $path_view),
@ElijahLynn
ElijahLynn / battery
Created September 11, 2013 16:46
Battery info Manually forked from https://github.com/richoH/dotfiles/blob/master/bin/battery Place in your ~/bin folder and now the command 'battery' will show you your battery percentage in Ubuntu. I have this set to always display in my Tmux pane with set -g status-right "#(~/bin/battery) | #[fg=cyan]%d %b %R" Modified so when charging it will…
#!/bin/sh
HEART_FULL=♥
HEART_EMPTY=♡
[ -z "$NUM_HEARTS" ] &&
NUM_HEARTS=5
cutinate()
{
perc=$1
@ElijahLynn
ElijahLynn / new_gist_file
Created September 19, 2013 15:46
Pub7 Tag Instructions
open new hotfix branch off of tag
merge branch into master
tag the branch SPECIAL
* cd into root of clone
* ./builds/scripts/pub-tag.sh 7.23.1 (example, don't use v prefix, script does it for us)
* ./builds/scripts/pub-tag2.sh
* git checkout master --force
* ./builds/scripts/pub-tag3.sh
NOTE: If pub-tag2.sh and pub-tag3.sh don't work or you get confused that is okay. pub-tag.sh is the one that really does the tag but contact Sam Boyer and let him know about it. If all you can ever do is the first script, that is fine.
@ElijahLynn
ElijahLynn / SassMeister-input-HTML.html
Created November 14, 2013 22:03 — forked from Snugug/SassMeister-input-HTML.html
Generated by SassMeister.com.
<div class="crosshair"></div>