This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# video demo at: http://www.youtube.com/watch?v=90xoathBYfk | |
# written by "mhwombat": https://bbs.archlinux.org/viewtopic.php?id=71938&p=2 | |
# Based on "snippy" by "sessy" | |
# (https://bbs.archlinux.org/viewtopic.php?id=71938) | |
# | |
# You will also need "dmenu", "xsel" and "xdotool". Get them from your linux | |
# distro in the usual way. | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for b in $(git branch -r | grep -v master | grep -v develop); do echo -n $b " "; git log -1 $b | grep Author; done | grep "User" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[defaults] | |
transport = ssh | |
[ssh_connection] | |
ssh_args = -o ForwardAgent=yes | |
pipelining=True |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
<style> | |
body { | |
background: #f1f1f1; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
el = 100% | |
columns = 12 | |
gutter = 0.5% | |
for i in 1..columns | |
div.col-lg-{i} | |
width ((el/columns * i) - (gutter *2)) | |
margin-left: gutter; | |
margin-right: gutter; | |
height: 30px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.vm.provision "ansible" do |ansible| | |
ansible.playbook = "playbook.yml" | |
ansible.inventory_path = "hosts" | |
ansible.limit = "all" | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$max-width: 100% | |
$columns: 12 | |
$gutter: 2% | |
$allgutters: $columns - 1 | |
.row | |
width: 1024px | |
margin: 0 auto | |
@for $i from 1 through $columns |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('logout_url', 'projectivemotion_logout_home', 10, 2); | |
function projectivemotion_logout_home($logouturl, $redir) { | |
$redir = get_option('siteurl'); | |
return $logouturl . '&redirect_to=' . urlencode($redir); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function add_well_buttons() { | |
?> | |
<script type="text/javascript"> | |
QTags.addButton( 'blue_well', 'blue well', '<div class="well">', '</div>', 'blue well', 'Blue well', 300 ); | |
QTags.addButton( 'orange_well', 'orange well', '<div class="well orange">', '</div>', 'orange well', 'Orange well', 300 ); | |
</script> | |
<?php | |
} | |
add_action( 'admin_print_footer_scripts', 'add_well_buttons' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://unicorn.bogomips.org/SIGNALS.html | |
rails_env = ENV['RAILS_ENV'] || 'production' | |
rails_root = ENV['RAILS_ROOT'] || "/data/github/current" | |
God.watch do |w| | |
w.name = "unicorn" | |
w.interval = 30.seconds # default | |
# unicorn needs to be run from the rails root |
NewerOlder