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
# Show/Hide desktop icons via command line alias | |
# Add this to .bash_profile | |
# http://osxdaily.com/2009/09/23/hide-all-desktop-icons-in-mac-os-x/ | |
alias hidedesk='defaults write com.apple.finder CreateDesktop -bool false; killall Finder;' | |
alias showdesk='defaults write com.apple.finder CreateDesktop -bool true; killall Finder;' | |
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
import socket | |
import struct | |
import zlib | |
def get_checksum(cs): | |
return struct.pack("i", zlib.crc32(cs)) | |
class RconClient: | |
MSG_LOGIN = 0x00 | |
MSG_COMMAND = 0x01 |
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
//Secret track | |
// -- removed _0xe7d4 keywords array | |
function playAudio(track_id) { | |
var audio_object = window.audioObjects[track_id]; | |
if (audio_object) { | |
if (!audio_object.requestPlaying) { | |
audio_object.play(); | |
} else { |
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
/* | |
This code should be pasted within the files where this function is needed. | |
This function will not create any code conflicts. | |
The function call is similar to printf: ardprintf("Test %d %s", 25, "string"); | |
To print the '%' character, use '%%' | |
This code was first posted on http://arduino.stackexchange.com/a/201 | |
*/ |
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
::User Set Variables | |
::Steam Install Directory (Steam.exe) | |
@set SteamDIR=C:\Program Files (x86)\Steam | |
::Steam Library Directory (~\common\DayZ) [Drive must have NTFS format] | |
@set SteamLIB=C:\Program Files (x86)\Steam | |
::DayZ Stable Folder Name in ~\SteamApps\common\ | |
@set Stable=DayZ_stable | |
::DayZ Experimental Folder Name in ~\SteamApps\common\ | |
@set Experimental=DayZ_experimental |
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/sh | |
# cloudflareddns.sh - dynamic dns updater module for Synology | |
# | |
# Author: | |
# Michael Wildman (http://mwild.me) | |
# | |
# Version: | |
# 0.2 | |
# |
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
<NotepadPlus> | |
<UserLang name="V-GUI Steam" ext="layout styles res" udlVersion="2.1"> | |
<Settings> | |
<Global caseIgnored="no" allowFoldOfComments="no" foldCompact="no" forcePureLC="0" decimalSeparator="2" /> | |
<Prefix Keywords1="no" Keywords2="no" Keywords3="yes" Keywords4="yes" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" /> | |
</Settings> | |
<KeywordLists> | |
<Keywords name="Comments">00// 01 02 03 04</Keywords> | |
<Keywords name="Numbers, prefix1"></Keywords> | |
<Keywords name="Numbers, prefix2"></Keywords> |
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
WebFontConfig = { | |
google: { families: [ \'Ek+Mukta:200,800:latin\' ] } | |
}; | |
var cb = function() { | |
var wf = document.createElement(\'script\'); | |
wf.src = \'//ajax.googleapis.com/ajax/libs/webfont/1/webfont.js\'; | |
wf.type = \'text/javascript\'; | |
wf.async = \'true\'; | |
var s = document.getElementsByTagName(\'script\')[0]; | |
s.parentNode.insertBefore(wf, s); |
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
# Install QEMU OSX port with ARM support | |
sudo port install qemu +target_arm | |
export QEMU=$(which qemu-system-arm) | |
# Dowload kernel and export location | |
curl -OL \ | |
https://github.com/dhruvvyas90/qemu-rpi-kernel/blob/master/kernel-qemu-4.1.7-jessie | |
export RPI_KERNEL=./kernel-qemu-4.1.7-jessie | |
# Download filesystem and export location |
OlderNewer