Skip to content

Instantly share code, notes, and snippets.

View Au1st3in's full-sized avatar
💭
I may be slow to respond.

Austin Rocha Au1st3in

💭
I may be slow to respond.
View GitHub Profile
@kdwolski
kdwolski / show-hide-icons
Created April 9, 2012 03:05
Mac show/hide desktop icons via terminal alias command
# 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;'
@schmilblick
schmilblick / BeRconClient.py
Created January 15, 2013 09:04
Start of a simple rcon client for Arma2 and DayZ
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
@donaldguy
donaldguy / deobsfuscated-bti-audio.js
Created December 19, 2013 03:04
deobsfuscated http://becausetheinter.net/audio.js * Unrot13d comment on top * Spaced. * Replaced array access of encoded keywords with their values in place. * Switched from array-access to dot syntax. * Gave callable name to decode_str. * Assigned mnemonic names to other __0x variables
//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 {
@asheeshr
asheeshr / ardprintf.c
Last active January 11, 2024 16:37
A printf function for serial communication from Arduino boards
/*
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
*/
@Au1st3in
Au1st3in / DayZ.bat
Last active August 29, 2015 14:00
Switch Between DayZ Experimental and Stable Builds
::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
@Fank
Fank / beguidcalc.md
Last active December 23, 2023 12:26
ArmA 3 / DayZ-Standalone - BattlEye GUID calculation

md5("BE" (2 bytes) + 64-bit SteamID (8 bytes))

@m-wild
m-wild / cloudflaredns.sh
Last active June 1, 2022 20:18
CloudFlare dynamic dns updater module for Synology
#!/bin/sh
# cloudflareddns.sh - dynamic dns updater module for Synology
#
# Author:
# Michael Wildman (http://mwild.me)
#
# Version:
# 0.2
#
@nairdan2
nairdan2 / V-GUI Steam.xml
Created February 13, 2015 23:00
V-GUI Steam UDL 2.1 Language
<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>
@kosmiq
kosmiq / js_google_fonts_async_ieshim
Last active October 17, 2017 11:34 — forked from thomasmb/gist:b67680a04ae75bc301b7
An updated version of Thomas Bensmanns Load Google Fonts via JS (https://bensmann.no/google-webfonts-performance/) with a SHIM for IE9 and IE8.
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);
@hfreire
hfreire / qemu_osx_rpi_raspbian_jessie.sh
Last active March 24, 2024 14:35
How to emulate a Raspberry Pi (Raspbian Jessie) on Mac OSX (El Capitan)
# 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