Skip to content

Instantly share code, notes, and snippets.

View auscompgeek's full-sized avatar

David Vo auscompgeek

View GitHub Profile
#!/usr/bin/env python3
"""
Utility to change settings on the OpenMesh OM5P-AN and OM5P-AC running FRC OpenWrt.
One can flash the radio firmware using ap51-flash <https://github.com/ap51-flash/ap51-flash>.
This is also what the official utility uses to flash the radio firmware.
You'll need to download the official utility to grab a copy of the firmware.
"""
pkgbase = indicator-kdeconnect
pkgdesc = Integrate KDEConnect on desktop environments that use AppIndicators (e.g. Unity)
pkgver = 0.9.1
pkgrel = 1
epoch = 1
url = https://github.com/bajoja/indicator-kdeconnect
arch = any
license = GPL
makedepends = cmake
depends = libappindicator-gtk3
@auscompgeek
auscompgeek / cysca-2017-ast.md
Created May 24, 2017 02:49
CySCA 2017: Python: Abstract Syntax Treat writeup

Python: Abstract Syntax Treat

Writeup by @auscompgeek.

Disclaimer: I did not participate in CySCA 2017. I simply saw this challenge (and a number of people struggling over it) and found it interesting. As such, I do not have the full description of the challenge.

Competitors were provided with a file tree.py. I have attached it for prosperity.

Before attempting to solve this challenge, it should be noted (from the shebang line) that this is a Python 2 program.

#!/usr/bin/env python3
digits = '0123456789'
decrement_map = dict(zip(digits[1:], digits))
def solve(N: str):
m = N[0]
for i, x in enumerate(N):
if m <= x:
@auscompgeek
auscompgeek / 1.eml
Last active December 24, 2016 06:35
"hi Am Anita" spam received on a truncated version of my public github email
Delivered-To: gh@vovo.id.au
Received-SPF: Pass (zoho.com: domain of anitakim2015@hotmail.com designates 65.54.190.187 as permitted sender ) client-ip: 65.54.190.187
Received-SPF: pass (zoho.com: domain of hotmail.com designates 65.54.190.139 as permitted sender) client-ip=65.54.190.139; envelope-from=anitakim2015@hotmail.com; helo=BAY004-OMC3S1.hotmail.com;
Authentication-Results: mx.zoho.com;
spf=pass (zoho.com: domain of hotmail.com designates 65.54.190.139 as permitted sender) smtp.mailfrom=anitakim2015@hotmail.com;
Received: from BAY004-OMC3S1.hotmail.com (bay004-omc3s1.hotmail.com [65.54.190.139]) by mx.zohomail.com
with SMTPS id 147922693688124.64277573519496; Tue, 15 Nov 2016 08:22:16 -0800 (PST)
Received: from EUR01-VE1-obe.outbound.protection.outlook.com ([65.54.190.187]) by BAY004-OMC3S1.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008);
Tue, 15 Nov 2016 08:22:15 -0800
Received: from VE1EUR01FT016.eop-EUR01.prod.protection.outlook.com
@auscompgeek
auscompgeek / Opal.md
Last active February 21, 2024 11:46
Opal free read data format

Opal

Opal is the public transport smartcard ticketing system in Sydney, Australia.

Opal cards are MIFARE DESFire EV1 cards, with the application ID 0x314553. All files are restricted except for file 7, which is freely readable.

The [official Android app][Opal Travel] can interpret this free read data. Much of the information here was derived by reverse engineering this app.

[core]
# git default is 7
# kernel devs like 12
abbrev = 10
[alias]
lg = log --graph --pretty=format:'%C(auto)%h%d %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'
id = rev-parse --verify HEAD
@auscompgeek
auscompgeek / config
Created September 22, 2015 12:18
i3 config
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
set $mod Mod4
set $exi exec --no-startup-id
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
font pango:DejaVu Sans Mono 9
@auscompgeek
auscompgeek / PKGBUILD
Last active August 29, 2015 14:25
elementary-xfce-icons 0.6 PKGBUILD
# Maintainer: Hugo Osvaldo Barrera <hugo@barrera.io>
# Contributor: Limao Luo <luolimao+AUR@gmail.com>
# Contributor: flan_suse <windows2linux@zoho.com>
# Contributor: auscompgeek <auscompgeek@zoho.com>
_pkgname=elementary-xfce
pkgname=$_pkgname-icons
pkgver=0.6
pkgrel=1
pkgdesc='Elementary icons forked, extended and maintained for Xfce.'
@auscompgeek
auscompgeek / pause-button
Last active July 25, 2017 01:36
Universal Pause Button for X11
#!/bin/sh
# Universal Pause Button for X11
# by auscompgeek
# licensed under MIT/X11
# requires xdotool
me=pause-button
die() {
echo "$me: $*" >&2