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
PG_DIR=/home/baniol/PhoneGapProjects/todo_curl/ | |
PG_APP_NAME=todo | |
PG_PACKAGE_NAME=com.baniowski.todo | |
PG_CLASS_NAME=Todo | |
#PG_CLASS_NAME=$PG_APP_NAME^ | |
cd $PG_DIR; | |
ant clean; | |
ant debug; | |
adb install -r $PG_DIR/bin/$PG_APP_NAME-debug.apk |
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
Show hidden characters
{ | |
"files": | |
{ | |
"jquery": "http://code.jquery.com/jquery.min.js", | |
"modernizr": "https://github.com/Modernizr/Modernizr/zipball/master", | |
"normalize": "https://raw.github.com/necolas/normalize.css/master/normalize.css", | |
"reset": "http://meyerweb.com/eric/tools/css/reset/reset.css" | |
}, | |
"packages": | |
{ |
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
#!/usr/bin/python | |
import os, sys, getopt, socket, stat | |
from pwd import getpwnam | |
# important: you have to manually put #@host@ into /etc/hosts file ! | |
# important : you have to call the script from within the target directory ! | |
SITES_DIR = "/etc/apache2/sites-available/" | |
SCRIPT_DIR = "/home/marcin/scripts/" | |
HOSTS_FILE = "/etc/hosts" |
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
#!/usr/bin/python | |
import os, sys, getopt, socket | |
from pwd import getpwnam | |
def main(): | |
try: | |
opts, args = getopt.getopt(sys.argv[1:], "hd:u:t:s:", ["help", "domain="]) | |
except getopt.GetoptError, err: | |
print str(err) | |
usage() |
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
# 1) generate ssh key on your local machine | |
ssh-keygen | |
#2) copy your public key to a remote machine with port number | |
ssh-copy-id '-p XXXXX -i ~/.ssh/id_rsa_your_key.pub username@host' |
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 | |
# ========================= | |
# Add User OS X Interactive Command Line | |
# ========================= | |
# http://superuser.com/questions/202814/what-is-an-equivalent-of-the-adduser-command-on-mac-os-x | |
getHiddenUserUid() | |
{ | |
local __UIDS=$(dscl . -list /Users UniqueID | awk '{print $2}' | sort -ugr) |
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
tell application "iTerm" | |
activate | |
-- Create a new terminal window... | |
set myterm to (make new terminal) | |
-- ... and go on within this one. | |
tell myterm | |
-- Set the terminal size constraints. | |
-- set number of columns to 30 |
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
tell application "iTerm" | |
activate | |
-- Create a new terminal window... | |
set myterm to (make new terminal) | |
-- ... and go on within this one. | |
tell myterm | |
-- Set the terminal size constraints. | |
-- set number of columns to 30 |
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 | |
/** | |
* Controller Test Case | |
* | |
* Provides some convenience methods for testing Laravel Controllers. | |
* | |
* @author Joseph Wynn <[email protected]> | |
*/ | |
abstract class ControllerTestCase extends PHPUnit_Framework_TestCase |
OlderNewer