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/zsh | |
# processing options and parameters with getopts | |
while getopts :a:b:cd opt | |
do | |
case "$opt" in | |
a) echo "The -a option, value $OPTARG";; | |
b) echo "The -b option, value $OPTARG";; | |
c) echo "The -c option";; | |
d) echo "The -d option";; |
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/zsh | |
# Setting up Apache virtualhost and project dir. | |
# Is localhost subdomain the project url? | |
localhostSubdomain=0 | |
# The document root inside the project dir. | |
root="" | |
# The workspace directory. |
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
"repositories": [ | |
{ | |
"type": "package", | |
"package": { | |
"version": "master", | |
"name": "turbod/bootstrap", | |
"source": { | |
"url": "https://github.com/turbod/bootstrap.git", | |
"type": "git", | |
"reference": "master" |
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
# Path to your oh-my-zsh configuration. | |
ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="afowler" | |
# Example aliases |
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
grep '>getWebsites' app/code -rsn |
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
siege -c20 www.google.co.uk -b -t30s |
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
actionColumn = @getTetelekGrid().down('actioncolumn') | |
actionColumn.items[0].handler = (gridview, rowIndex, colIndex, actionItem, eopts)-> | |
record = gridview.store.getAt rowIndex |
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 | |
VHOST_CONF=/etc/apache2/extra/httpd-vhosts.conf | |
ROOT_UID=0 | |
NOTROOT=87 | |
WWW_ROOT=/Volumes/Storage/norbi/www/ | |
# owner of the site directory | |
WEBUSER=$SUDO_USER |
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
$ cd /path/to/my/repo | |
$ git remote add origin ssh://git@bitbucket.org/norbi/polcrendszerek.git | |
$ git push -u origin --all # to push changes for the first time |
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 . -iname ".svn" -print0 | xargs -0 rm -r |
OlderNewer