View git-rebase.sh
This file contains 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 | |
underline=$(tput sgr 0 1) # Underline | |
bold=$(tput bold) # Bold | |
normal=$(tput rmso) # Normal | |
# Dims | |
red=$(tput setaf 1) # red | |
green=$(tput setaf 2) # magenta | |
blue=$(tput setaf 4) # blue |
View iitc-export-import-draw.js
This file contains 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
// ==UserScript== | |
// @id iitc-export-import-draw@skamander | |
// @name IITC plugin: export and import data from draw tools | |
// @version 0.0.1 | |
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion | |
// @description Import/Export Data from draw tools | |
// @include https://www.ingress.com/intel* | |
// @include http://www.ingress.com/intel* | |
// @match https://www.ingress.com/intel* | |
// @match http://www.ingress.com/intel* |
View gist:367031a5f3ba14385164
This file contains 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
conf/app1/nginx.conf | |
conf/app1/included-file.conf | |
conf/app1/other-included-file.conf | |
conf/app2/nginx.conf | |
conf/app2/included-file.conf | |
conf/app2/other-included-file.conf | |
conf/app3/nginx.conf | |
conf/app3/included-file.conf |
View ucr-ingress.com-mobile.css
This file contains 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
/* All Smartphones in portrait and landscape ----------- */ | |
@media only screen | |
and (min-device-width : 320px) | |
and (max-device-width : 480px) { | |
#join_ucr { | |
text-align: center; | |
position : fixed; | |
font-size: 0px; | |
font-weight: bold; | |
padding-top: 0; |
View git-merge-ff-only.sh
This file contains 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 | |
# usage: | |
# git-merge-ff-only.sh master develop | |
# Will only merge develop into master if its fast-forwardable. | |
merge_into=$1; | |
merge_from=$2; |
View gist:24ea52b5487c11a0c7d9
This file contains 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
# To use this, open ~/.bash_profile, and add the function below. | |
# Then run . ~/.bash_profile to reload your profile. | |
# Usage: pdp <jira_number> | |
pdp() { open -a "Google Chrome" https://obujira.searshc.com/jira/browse/PDP-$1; } |
View git-jira.sh
This file contains 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/sh | |
## Installation ## | |
# > git clone https://gist.github.com/1367d0aae9e059a57ebf.git ~/git-jira.sh | |
# > git config --global alias.jira '!. ~/git-jira.sh' | |
## | |
## Commands ## | |
# |
View git-ffable.sh
This file contains 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 | |
underline=$(tput sgr 0 1) # Underline | |
bold=$(tput bold) # Bold | |
normal=$(tput rmso) # Normal | |
# Dims | |
red=$(tput setaf 1) # red | |
green=$(tput setaf 2) # magenta | |
blue=$(tput setaf 4) # blue |
View sh-wp-dropdown-taxonomies.php
This file contains 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
<?php | |
/* | |
* A walker class to use that extends wp_dropdown_categories and allows it to use the term's slug as a value rather than ID. | |
* | |
* See http://core.trac.wordpress.org/ticket/13258 | |
* | |
* Usage, as normal: | |
* wp_dropdown_categories($args); | |
* |
View git-smarter-example-git-checkout-path.sh
This file contains 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
# Recreate the file at path/to/file in the state in the state it was at | |
# just prior to having been deleted (made up commit hash for example) | |
git checkout 4efa6b0^ -- path/to/file |
NewerOlder