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/sh | |
ps aux | grep ruby | grep -v grep | awk '{print $2}' | xargs kill |
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
#!/usr/bin/env bash | |
mac_address=$1 | |
# Strip colons from the MAC address | |
mac_address=$(echo $mac_address | sed 's/://g') | |
broadcast=$2 | |
port=4343 | |
# Magic packets consist of 12*`f` followed by 16 repetitions of the MAC address |
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
if(navigator.appVersion.indexOf("Windows ")!=-1){ | |
os = getWindowsOS(); | |
}else{ | |
os = navigator.platform; | |
} | |
function getWindowsOS(){ | |
// http://msdn.microsoft.com/en-us/library/ms537503(v=vs.85).aspx#PltToken | |
if(navigator.appVersion.indexOf("Windows NT 10.")!=-1){ | |
return 'Windows 10'; |