Skip to content

Instantly share code, notes, and snippets.

GermaniumSystem

Block or report user

Report or block GermaniumSystem

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View slackMon.sh
#!/bin/bash
DEBUG=1
# Indicator string as seen in dbus messages. Will probably change frequently.
DM_INDICATOR='chrome_app_indicator2_5dc5a4d4fc9f0cfd05f90bfbb2390e06'
function debugEcho {
if [ "$DEBUG" -eq 1 ] ; then
echo "$@"
fi
@GermaniumSystem
GermaniumSystem / about.txt
Last active Aug 22, 2018
Hackily modified DCF26 badge bluetooth module firmware. Source available below the compiled firmware.
View about.txt
This firmware is really just the original firmware with some extras slapped on.
All original commands are included, as well as a few additional ones. This
firmware also sends more verbose messages to the STM32 micropython environment
when most beacons are received, so badges can now detect each other easily.
Commands should be sent to the BLE module via "badge.ble.write('<PAYLOAD>\r\n')"
in the micropython environment. Note that this will not work when running
interactively - messages just sit in a buffer. There should be a way to make
this work but I have yet to discover it.
@GermaniumSystem
GermaniumSystem / DCF26_badge_BTLE_client.sh
Created Aug 17, 2018
A shell script for sending BTLE commands to the DEFCON Furs DC26 badge. Requires Bash, BlueZ, and not much else.
View DCF26_badge_BTLE_client.sh
#!/bin/bash
set -e
IFACE='hci0'
SN='8678'
MAGIC_AWOO='a0'
MAGIC_BEACON='00'
MAGIC_CURE='ce'
MAGIC_EMOTE='b2'
@GermaniumSystem
GermaniumSystem / DCF26_badge_hcitool_diagram.txt
Last active Aug 16, 2018
Diagram detailing the structure of hcitool commands for communicating with the DEFCONFurs DC26 badge.
View DCF26_badge_hcitool_diagram.txt
D E F C O N F u r s ^ . ^
hcitool -i hci0 cmd 0x08 0x0008 1E 03 19 dc 26 02 01 06 0b 09 44 45 46 43 4f 4e 46 75 72 73 09 ff ff 71 b2 00 00 5e 2e 5e 00
\_____/ \_____/ \_/ \__/ \____/ \/ \_________/ \______/ \_________________________________/ \___________________________/ \/
| | | | | | | | \/ | \___________________________/ \/ | \___/ \______/ \______/ |
Cmd-' | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | |
Interface-' | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | |
Send-raw-cmd----' |
@GermaniumSystem
GermaniumSystem / getPages.sh
Created Jun 27, 2017
Starbound workshop mod ID list generator.
View getPages.sh
#!/bin/bash
[ -e "workshopPages" ] || mkdir 'workshopPages'
for NUM in $(seq 1 92) ; do
echo "[INFO]: Requesting list page '${NUM}'"
wget -O "workshopPages/list_${NUM}.html" "http://steamcommunity.com/workshop/browse/?appid=211820&browsesort=mostrecent&section=readytouseitems&actualsort=mostrecent&p=${NUM}"
done
echo "[INFO]: Generating ID list."
@GermaniumSystem
GermaniumSystem / patcher.sh
Created Jun 10, 2017
1.3 Mech & Captain's Chair Patcher
View patcher.sh
#!/bin/bash
[ -d tmp ] || mkdir tmp
INITDIR="$(pwd)"
WSDIR='../steamcmd/tmp/Starbound/steamapps/workshop/content/211820/'
SBDIR="../steamcmd/tmp/Starbound/"
MODSDIR="mods/"
UPDIR="unpack/"
MODBASE="modBase/"
@GermaniumSystem
GermaniumSystem / .bashrc
Last active Nov 13, 2018
Personal .bashrc
View .bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
### see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
### for examples
### If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
You can’t perform that action at this time.