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
chmod a+w sites/default/settings.php | |
chmod a+w sites/default | |
# From https://www.digitalocean.com/community/tutorials/how-to-install-drupal-on-a-virtual-server-running-ubuntu-12-04 |
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
docker tag <image> <newName>/<repoName>:<tagName> |
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
git branch -D <name-of-branch> | |
git branch -D -r origin/<name-of-branch> | |
git push origin :<name-of-branch>' | |
# http://stackoverflow.com/questions/2003505/how-to-delete-a-git-branch-both-locally-and-remotely |
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
[[ -s "/usr/local/rvm/scripts/rvm" ]] && source "/usr/local/rvm/scripts/rvm"; |
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
Dimension dim = Toolkit.getDefaultToolkit().getScreenSize(); | |
this.setLocation(dim.width/2-this.getSize().width/2, dim.height/2-this.getSize().height/2); |
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
find . -name .DS_Store -print0 | xargs -0 git rm --ignore-unmatch | |
# http://stackoverflow.com/questions/107701/how-can-i-remove-ds-store-files-from-a-git-repository |
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
$ch = curl_init("HTTP://SOMEURL.com"); | |
curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, 1); | |
curl_setopt( $ch, CURLOPT_HEADER, 0); | |
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1); | |
curl_setopt( $ch, CURLOPT_TIMEOUT_MS, 10000); | |
curl_exec( $ch ); | |
$response = curl_getinfo($ch); | |
curl_close ($ch); | |
echo $response["http_code"]; |
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
init(coder aDecoder: NSCoder!) | |
{ | |
super.init(coder: aDecoder) | |
} |
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
for groupKey, groupValue of WordList | |
console.log groupValue |
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
doctype html | |
html(lang="en") | |
head | |
meta(charset="utf-8") | |
meta(http-equiv="X-UA-Compatible", content="IE=edge") | |
title Site Name | |
meta(name="description", content="") | |
meta(name="viewport", content="width=device-width, initial-scale=1.0") | |
meta(name="mobileoptimized", content="0") | |
link(href='misc/page.min.css', rel='stylesheet') |