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
yo |
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
# METEOR CORE: | |
Anywhere: Meteor.isClient | |
Anywhere: Meteor.isServer | |
Anywhere: Meteor.startup(func) | |
Anywhere: Meteor.absoluteUrl([path], [options]) | |
Anywhere: Meteor.settings | |
Anywhere: Meteor.release | |
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/sh | |
# Makes a non git directory to a new private bitbucket repository with all files added to initial commit | |
# Usage = fillbucket <username> <password> <reponame> | |
git init | |
git add -A . | |
git commit -m "Initial commit" | |
curl --user $1:$2 https://api.bitbucket.org/1.0/repositories/ --data name=$3 --data is_private='true' | |
git remote add origin https://hannesr@bitbucket.org/$1/$3.git | |
git push -u origin --all |
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
# cd .. with multiple jumps or jump up to name | |
..() { | |
if [ "-" == "$1" ]; then cd -; return; fi; # return to previous directory | |
if [ "/" == "$1" ]; then cd /; pwd; return; fi; # jump to root | |
if [ -z "$1" ]; then cd ../; pwd; return; fi; # jump up one | |
declare -i count=$1; # get a jump count | |
if [ $count -eq 0 ]; then # wasn't a number, look for name | |
local go=$(while [[ "/" != "$PWD" && "$(basename $PWD)" != "$1" ]]; do cd ..; done; pwd); | |
# jump up to named directory, or don't move if name wasn't found | |
if [ "/" != "$go" ]; then cd $go; else return; fi; |
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
sudo apt-get update && sudo apt-get --just-print upgrade |
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
export LESS='-R' | |
export LESSOPEN='|~/.lesscolors %s' |
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
export LANGUAGE=en_US.UTF-8 | |
export LANG=en_US.UTF-8 | |
export LC_ALL=en_US.UTF-8 | |
locale-gen en_US.UTF-8 | |
dpkg-reconfigure locales | |
The dpkg-reconfigure locales command will open a dialog under Debian for selecting the desired locale. | |
This dialog will not appear under Ubuntu. The Configure Locales in Ubuntu article shows how to find |
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
apc.cli_enable = 1 |
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
<?php | |
/** | |
* Menu callback. | |
*/ | |
function menu_callback() { | |
$output = array( | |
'#content' => array( | |
'top_text' => 'Top' | |
'par1' => 'content-var', | |
'par2' => 'content2-var', |
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
<?php | |
/** | |
* Implements hook_menu(). | |
*/ | |
function module_menu() { | |
$items = array(); | |
$items['admin/config/site/module'] = array( | |
'title' => 'Module configuration', | |
'description' => 'Module settings form.', |
NewerOlder