Skip to content

Instantly share code, notes, and snippets.

View robbiet480's full-sized avatar
😩
terminally online

Robbie Trencheny robbiet480

😩
terminally online
View GitHub Profile
@dbreunig
dbreunig / ReporterSaveFileDescription.md
Last active January 22, 2021 16:07
A description of the data written to the Reporter App Dropbox save folder.

#Reporter Save File Schema

##The Reporter Export File

Reporter saves to your Dropbox account with plaintext JSON files, one for each day. When a Report is entered in the app a file is created for that day if it does not exist. Otherwise, the report is appended to the existing file. The save folder is located in 'Dropbox/Apps/Reporter-App/'.

Reporter save files are named according to the following convention:

YYYY-MM-DD-reporter-export.json
@erikhazzard
erikhazzard / gist:af39b59b2e6b8255bde2
Last active December 16, 2015 20:12
Mixpanel set avatar image URL
$('#userlist_wrapper .grid_row').each(function(i, el){
var el = $(el);
var id = el.attr('data-distinct_id');
$('.avatar_cell img', el).attr(
'src',
'YOUR_URL_FOR_IMAGE/' + id + '.gif'
);
})
@jeffp123
jeffp123 / Sample a Motorola SB6121 Surfboard's Signal
Created August 21, 2015 00:28
This script is meant to be run with the Motorola SB6121 Surfboard Modem.
#!/usr/bin/env python
"""Sample the modem's signal
This script is meant to be run with the Motorola SB6121 Surfboard Modem.
If you run it on a different modem, it might not work, but it's worth a try...
It should be run as a cron job, every minute (or whatever interval you'd like)
into a text file. The file can later be used by a json parser to analyze the
signal over time, which can be used to come to conclusions that you can argue
@steipete
steipete / ios-xcode-device-support.sh
Last active October 14, 2024 16:35
Using iOS 15 devices with Xcode 12.5 (instead of Xcode 13)
# The trick is to link the DeviceSupport folder from the beta to the stable version.
# sudo needed if you run the Mac App Store version. Always download the dmg instead... you'll thank me later :)
# Support iOS 15 devices (Xcode 13.0) with Xcode 12.5:
sudo ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/15.0 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
# Then restart Xcode and reconnect your devices. You will need to do that for every beta of future iOS versions
# (A similar approach works for older versions too, just change the version number after DeviceSupport)
@dmtucker
dmtucker / ipv6-erl.md
Last active August 9, 2024 09:13
Configuring IPv6 on EdgeRouter Lite

Configuring IPv6 on EdgeRouter Lite

Tested with:

  • v1.9.7+hotfix.4, Wave G in Seattle
  • v1.10.5, Comcast in the South Bay Area
set interfaces ethernet eth0 description LAN
set interfaces ethernet eth1 description WAN
set interfaces ethernet eth2 description WLAN
@nitej
nitej / IR_structure.txt
Created September 11, 2017 21:28
Seville IR Encoding
The IR encoding for the Seville fans follows the structure of the NEC style with some differences. The preamble, 0/1 bits, and the ending pulse are the same. However, it uses 64-bit long codes and about half of the bits are fixed. The typical command looks like this:
pre 0001 0000 0010 0000 0011 0000 0100 0000 0101 0000 0000 0000 0110 0000 0111 0000 post
where this command sets the fan to off with low speed, no oscillation, 0 hrs on the timer, and normal wind. Grouping as nibbles, this command becomes
0x1020304050006070
where this integer is send MSB first. By capturing all possible signals, it can be seen that the general command is:
@milesbxf
milesbxf / monzo-alertmanager-config.yaml
Last active November 14, 2024 12:22
Monzo's Alertmanager Slack templates
###################################################
##
## Alertmanager YAML configuration for routing.
##
## Will route alerts with a code_owner label to the slack-code-owners receiver
## configured above, but will continue processing them to send to both a
## central Slack channel (slack-monitoring) and PagerDuty receivers
## (pd-warning and pd-critical)
##