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/bash | |
| TOMCAT=apache-tomcat-7.0.23 | |
| TOMCAT_WEBAPPS=$TOMCAT/webapps | |
| TOMCAT_CONFIG=$TOMCAT/conf/server.xml | |
| TOMCAT_START=$TOMCAT/bin/startup.sh | |
| TOMCAT_ARCHIVE=$TOMCAT.tar.gz | |
| TOMCAT_URL=http://apache.mirrorcatalogs.com/tomcat/tomcat-7/v7.0.23/bin/$TOMCAT_ARCHIVE | |
| WAR_FILE=whatever.war |
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
| // This script shows a badge with the number of new messages in the dock of your Fluid instance of Google+ | |
| // The count is reset when you click somewhere in the body | |
| // This version of the script is written by Mathias Bynens | |
| (function(window, document) { | |
| var nodeList = document.getElementsByClassName('a-b-f-i a-f-i'), // live NodeList | |
| fluid = window.fluid, | |
| length; |
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
| ## some useful aliases | |
| alias ls "ls -h" | |
| alias dir ls | |
| alias less more | |
| alias zless zmore | |
| alias bzless bzmore | |
| alias mirror "mirror -v" | |
| alias sync "mirror -R -v -n" | |
| alias reconnect "close; cache flush; cd ." | |
| alias edit "eval -f \"get $0 -o ~/.lftp/edit.tmp.$$ && shell \\\"cp -p ~/.lftp/edit.tmp.$$ ~/.lftp/edit.tmp.$$.orig && $EDITOR ~/.lftp/edit.tmp.$$ && test ~/.lftp/edit.tmp.$$ -nt ~/.lftp/edit.tmp.$$.orig\\\" && put ~/.lftp/edit.tmp.$$ -o $0; shell rm -f ~/.lftp/edit.tmp.$$*\"" |
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
| Host github.com | |
| User git | |
| Hostname github.com | |
| PreferredAuthentications publickey | |
| IdentityFile /home/user/.ssh/id_rsa |
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
| // ==UserScript== | |
| // @name Facebook Scan Mass Tagging (spam/ads tag) | |
| // @namespace http://aimakun.exteen.com | |
| // @description Pure javascript for scan tagging which you should not want them. | |
| // @author aimakun | |
| // @include http*://www.facebook.com | |
| // @include http*://www.facebook.com/ | |
| // @include http*://www.facebook.com/?* | |
| // @include http*://www.facebook.com/profile.php?* | |
| // @include http*://www.facebook.com/ajax/home/feed.php?* |
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/bash | |
| ## Bash Script to clear cached memory on (Ubuntu/Debian) Linux | |
| ## By Philipp Klaus | |
| ## see <http://blog.philippklaus.de/2011/02/clear-cached-memory-on-ubuntu/> | |
| if [ "$(whoami)" != "root" ] | |
| then | |
| echo "You have to run this script as Superuser!" | |
| exit 1 | |
| 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
| ########## SETTINGS | |
| # On startup, lftp executes ~/.lftprc and ~/.lftp/rc. You can place aliases and 'set' commands | |
| # there. Some people prefer to see full protocol debug, use 'debug' to turn the debug on. | |
| # Certain commands and settings take a time interval parameter. It has the format Nx[Nx...], where N is time amount | |
| # (floating point) and x is time unit: d - days, h - hours, m - minutes, s - seconds. Default unit is second. E.g. | |
| # 5h30m or 5.5h. Also the interval can be 'infinity', 'inf', 'never', 'forever' - it means infinite interval. E.g. | |
| # 'sleep forever' or 'set dns:cache-expire never'. |
NewerOlder