create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
function parse_git_branch { | |
local DIRTY="" | |
git diff --quiet HEAD &>/dev/null | |
case $? in | |
129) | |
# not a git repo, don't waste a second git command | |
return $? | |
;; | |
1) | |
DIRTY="⚡" |
(function(jQuery) { | |
// adapted from the work of Chris Beaven https://gist.github.com/967775 | |
jQuery.fn.selectOptgroup = function(options) { | |
var settings = jQuery.extend({ | |
optSelect: '_options', | |
inBetween: '', | |
optBlank: null, | |
selectBlank: null, | |
keepOrphans: true, | |
showSpeed: 200 |
# Launch screen/tmux. Start this in the background while you try your other fixes. See which works first. | |
# Skip this if you want to try to fix your current venv | |
create_environment; sv; load_prod_db; django-admin.py loaddata local_site_list | |
# In case your jellydoughnut wasn't totally up to date | |
ensure_ro_db_user | |
# Migration Whack-a-Mole | |
django-admin.py migrate sitesettings |
[ | |
{ | |
"Top News": { | |
"feeds": [ | |
"/api/content/v1/manuallist/5847/?format=json", | |
"/api/content/v1/automaticlist/9121/?format=json" | |
] | |
} | |
}, | |
{ |
// number to string, pluginized from http://stackoverflow.com/questions/5529934/javascript-numbers-to-words | |
window.num2str = function (num) { | |
return window.num2str.convert(num); | |
} | |
window.num2str.ones=['','one','two','three','four','five','six','seven','eight','nine']; | |
window.num2str.tens=['','','twenty','thirty','forty','fifty','sixty','seventy','eighty','ninety']; | |
window.num2str.teens=['ten','eleven','twelve','thirteen','fourteen','fifteen','sixteen','seventeen','eighteen','nineteen']; |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
// Photoshop Script to Create iPhone Icons from iTunesArtwork | |
// Original: https://gist.github.com/appsbynight/3681050 | |
// Turn debugger on. 0 is off. | |
// $.level = 1; | |
try | |
{ | |
// Prompt user to select iTunesArtwork file. Clicking "Cancel" returns null. | |
var iTunesArtwork = File.openDialog("Select a sqaure PNG file that is at least 1024x1024.", "*.png", false); |
Want to fork your own gists? No fork button? No problem! Install this user script by clicking refork.user.js' "raw" link down below: ⇓
This is a script that adds a fully functional Fork button to your own Gist.
If a Fork button is already present in the page, this bookmarklet will set focus to it instead of adding another one.
The change is temporary and the button will disappear as soon as you navigate away from that Gist (clicking the Fork button does this for you as well). Meaning you will have to run the script every new page load.
Copy the contents from bookmarklet.js, open Scracthpad (Ctrl+F4), paste it there. Back in browser, swwitch to tab with your Gist you want to fork. Back in Scratchpad, "Run" it. Save and/or bookmark the Scratchpad file for future use.
Replace this line with imperative summary | |
An awesome description of WHY you did this work, not HOW/WHAT it does. | |
The diff attached to commit should describe implementation (HOW) | |
well-enough. | |
# [TICKET-12] | |
#------------------------------------------------^---------------------^ | |
# 50^ 72^ |