(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:
| // Non-blocking 2-light chase example | |
| // LEDs on pins 0–7 | |
| int totalLed = 8; | |
| int LedPins[] = {2,3,4,5,6,7,8,9}; | |
| int LedBeat[] = {0,0,0,0,0,0,0,0}; | |
| const int SETBUTTON = A2; | |
| const int SELECTBUTTON = A1; | |
| const int SWITCHBUTTON = A3; |
| nc -lvnp 1234 | |
| http://pentestmonkey.net/cheat-sheet/shells/reverse-shell-cheat-sheet | |
| python -c 'import pty;pty.spawn("/bin/bash");' | |
| ctrl + z | |
| stty raw -echo | |
| fg |
| $(document).ready(function() { | |
| $("#issue-form").submit(function(e){ | |
| if ($("#issue_status_id option[value='11']").attr('selected')){ | |
| if ($('#issue_tags ul li').length == 1){ | |
| alert('no tags'); | |
| return false | |
| } | |
| } | |
| this.submit(); | |
| return true; |
| public static List<GameObject> getRoute(GameObject fromRoad , GameObject toRoad , GameObject lastRoad, List<GameObject> pathSoFar ){ | |
| List<GameObject> _tmpListRoad = GeneralHelper.findTilesNear(_roadList,fromRoad.transform.position,2); | |
| for (int i = 0; i < _tmpListRoad.Count; i++) { | |
| if (_tmpListRoad[i] == toRoad ){//we found our destination | |
| pathSoFar.Add(_tmpListRoad[i]); | |
| return pathSoFar; | |
| }else{//nope lets make sure this tile is not where we currently are and try the next tile in connection | |
| if (fromRoad != _tmpListRoad[i] && lastRoad != _tmpListRoad[i]){ //make sure this tile was not already verified | |
| if (getRoute(_tmpListRoad[i],toRoad,fromRoad , pathSoFar) != null){ |
| #sed -i "s/old_host_name/new_host_name/g" /etc/hosts | |
| #sed -i "s/old_host_name/new_host_name/g" /etc/hostname | |
| #hostname new_host_name | |
| #reboot now #for changes to take affect | |
| # | |
| grep puppet /etc/hosts; [ $? -eq 1 ] && echo "192.168.1.128 puppet" >> /etc/hosts | |
| #ping puppet #test | |
| # | |
| apt-get update | |
| apt-get dist-upgrade -y |
| Windows Registry Editor Version 5.00 | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft] | |
| "SPONSORS"="DISABLE" | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft] | |
| "SPONSORS"="DISABLE" |
| */5 * * * * /usr/bin/transmission-remote -l | grep 100\% | grep Done | awk '{print $1}' | xargs -n 1 -I \% /usr/bin/transmission-remote -t \% -r |
| diff --exclude=".svn" -ruNb /home/production/code /home/stage/code > /tmp/diff.patch | |
| cat /tmp/flix.patch | |
| echo "file can be found at /tmp/diff.patch " |