Skip to content

Instantly share code, notes, and snippets.

View navhaxs's full-sized avatar

Jeremy Wong navhaxs

View GitHub Profile
@navhaxs
navhaxs / pro6-to-pptx.py
Last active July 18, 2020 10:25
A python script to convert pro6 to pptx slides
#!/usr/bin/env python3
import xml.etree.ElementTree as ET
import base64
import sys
import os
from pptx import Presentation
# Disclaimer: Also add your CCLI number to the copyright text if using output slides for a service!
# Pre-requisites: template.pptx should be an empty presentation with no slides, but with a customised master slide template
@navhaxs
navhaxs / gist:ff1f46b83bba726046cb750c6e7ccc7d
Last active July 13, 2020 12:07
Hide personal details from Elvanto People view - Userstyle
@-moz-document url-prefix("https://swec.elvanto.com.au/admin/people/person/") {
body > div.app-admin-legacy > div.content-sidebar-wrapper > form > section > div:nth-child(2) > div:nth-child(2) > div.form-group.date-picker-member_birthday-age,
body > div.app-admin-legacy > div.content-sidebar-wrapper > form > section > div:nth-child(2) > div:nth-child(2) > div:nth-child(2),
body > div.app-admin-legacy > div.content-sidebar-wrapper > form > section > div:nth-child(4), body > div.app-admin-legacy > div.content-sidebar-wrapper > form > section > div:nth-child(8), body > div.app-admin-legacy > div.content-sidebar-wrapper > form > section > div:nth-child(7), body > div.app-admin-legacy > div.content-sidebar-wrapper > form > section > div:nth-child(3) > div, body > div.app-admin-legacy > div.content-sidebar-wrapper > form > section > div:nth-child(5), body > div.app-admin-legacy > div.content-sidebar-wrapper > form > section > div:nth-child(6), body > div.app-admin-legacy > div.content-sidebar-wrapper > form > secti
@navhaxs
navhaxs / 99-keepwanalive
Created February 11, 2015 21:33
openwrt wan auto reconnect hotplug script
# Place me in /etc/hotplug.d/iface/99-keepwanalive
if [ "$ACTION" = "ifdown" -a "$INTERFACE" = "wan" ]; then
COUNTER=0
PASS=0
while [ $PASS -eq 0 ]
do
grep "up" /sys/class/net/eth0/operstate > /dev/null
The TP Link Archer 5e is just a repackaged Intel AC 7265. Just so you know. Including the drivers. Same Blueooth version.
ffmpeg -i input.mp4 -vn -c:a copy output.m4a
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\compattelrunner.exe]
"Debugger"="systray.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\wsqmcons.exe]
"Debugger"="systray.exe"
@navhaxs
navhaxs / launch.json
Created April 6, 2020 23:13
A very minimal 'VS Code Debug Launch Configuration' to debug the current javascript file in Node.
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Debug File",
"program": "${file}",
"cwd": "${fileDirname}"
}
Include
# Pico+
CalSync # Install Google Calendar Sync (if Google Calendar is being installed)
DialerFramework # Install Dialer Framework (Android 6.0+)
GoogleTTS # Install Google Text-to-Speech Engine (Micro+ on 5.0-, Pico+ on 6.0+)
PackageInstallerGoogle # Install Package Installer (Android 6.0 only & Android 8.0+)
# Nano+
BatteryUsage # Install Device Health Services (Android 7.1+)
@navhaxs
navhaxs / blog.md
Created September 10, 2019 12:39
SonicWall NetExtender 2016 on macOS Mojave (I was desparate, okay?)
title author date summary
SonicWall NetExtender 2016 on macOS Mojave
Jeremy
2019-06-18
Replacing VPN software with outdated versions for fun and profit.

WARNING: Big hack

Platform: Mac

@navhaxs
navhaxs / vps.md
Last active August 6, 2019 04:13
VPS