A fork of andytuba RES settings backup script
Originally [andytuba]{https://gist.github.com/andytuba) created a script to convert Chrome RES backups and concert them to FireFox RES backups. I needed to go the other direction so I started this.
| #!/bin/bash | |
| PROCCOUNT=`ps -l | wc -l` | |
| PROCCOUNT=`expr $PROCCOUNT - 4` | |
| if [[ $(groups) == *irc* ]]; then | |
| ENDPROC=`cat /etc/security/limits.conf | grep "@irc" | grep nproc | awk {'print $4'}` | |
| ENDSESSION=`cat /etc/security/limits.conf | grep "@irc" | grep maxlogins | awk {'print $4'}` | |
| PRIVLAGED="IRC Account" | |
| else |
| servers = ( | |
| { | |
| address = "irc.freenode.net"; | |
| chatnet = "freenode"; | |
| port = "6667"; | |
| use_ssl = "no"; | |
| ssl_verify = "no"; | |
| autoconnect = "yes"; | |
| }, | |
| { |
| OPTIONS=showexp,showscore,time,color,!autopickup,pickup_burden:unencumbered | |
| OPTIONS=pickup_types:$?!/(+ | |
| OPTIONS=autodig,fruit:slime mold,boulder:0 | |
| OPTIONS=number_pad:2 | |
| OPTIONS=suppress_alert:3.4.3 | |
| MSGTYPE=hide "You displaced *." # pet displacement | |
| OPTIONS=statuscolors | |
| STATUSCOLOR=hp%100=green,hp%66=yellow,hp%50=orange |
| #ACTION {You can't go that way - the door is closed.} | |
| { | |
| #map undo; | |
| open | |
| } | |
| {5} | |
| #ACTION {You can't go that way.} | |
| { | |
| #map undo |
A fork of andytuba RES settings backup script
Originally [andytuba]{https://gist.github.com/andytuba) created a script to convert Chrome RES backups and concert them to FireFox RES backups. I needed to go the other direction so I started this.
| $.fn.preload = -> | |
| @each -> | |
| $("<img/>")[0].src = this |
| <?php | |
| // Configure error levels | |
| error_reporting(E_ERROR); | |
| ini_set('display_errors', 1); | |
| // Path to err log | |
| $errorLogs = "/var/www/logs/error.log"; | |
| // Obtain IP of remote client | |
| $requestIP = $_SERVER['REMOTE_ADDR']; |
| <?php | |
| // Start a new session | |
| session_start(); | |
| // Configure error levels | |
| error_reporting(E_ERROR); | |
| ini_set('display_errors', 1); | |
| // Empty response object | |
| $output = (object) response; |
| getURLParameters = (url) -> | |
| result = {} | |
| searchIndex = url.indexOf("?") | |
| result if searchIndex is -1 | |
| sPageURL = url.substring(searchIndex + 1) | |
| sURLVariables = sPageURL.split("&") | |
| i = 0 | |
| while i < sURLVariables.length |
#CleanMongo
In short I ran into a lot of trouble with MongoDB not closing cleaning in my Vagrant server, so I made this little script to stop the instance, clean it, then restart.
Built for debian based systems, or anything that uses service to handle /etc/init.d scripts.