Skip to content

Instantly share code, notes, and snippets.

View navhaxs's full-sized avatar

Jeremy Wong navhaxs

View GitHub Profile
@navhaxs
navhaxs / avdesk-presentation-pc.reg
Last active June 5, 2017 04:23
Registry tweaks for an AV desk (stage/presentation) computer running ...Windows 10
Windows Registry Editor Version 5.00
; Unpin everything from Start menu & use the PS app remove commands
; Also:
; Go into Settings -> Privacy and literally untick everything.
; e.g. Feedback frequency --> Never
;
; except for maybe Location (Night Mode)
;
These are my personal customisations for Ubuntu 17.04 on T450s.
This is not actually a shell script, I am lazy.
# Xilinx SDK fix not launching
~/.local/share/applications/Xilinx\ SDK\ 2016.4*.desktop
Exec=env SWT_GTK3=0 /opt/Xilinx/SDK/2016.4/bin/xsdk
# Fix Mini DisplayPort from flickering (Intel graphics)
https://askubuntu.com/q/752743/
@navhaxs
navhaxs / thinkpad.ahk
Last active February 15, 2024 17:34
Personal autohotkey scipt. Lenovo Thinkpad T450s media keys / Synaptics Task View gestures
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; THINKPAD T450s
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Right Ctrl + Right Shift to open App key (Menu key)
; since it's missing from the keyboard.
~RControl & RShift::Send {AppsKey}
Return
;#NoTrayIcon
;#SingleInstance force
;#Persistent
;#InstallKeybdHook
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; Logitech T650 mappings for Windows 10.
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@navhaxs
navhaxs / touchdevelop-rpi.sh
Last active February 26, 2016 04:38
Install TouchDevelop on a Raspberry Pi (fixed deadlinks and deps)
#!/bin/bash
cd /home/pi
mkdir TouchDevelop
cd TouchDevelop
wget http://node-arm.herokuapp.com/node_latest_armhf.deb
sudo dpkg -i node_latest_armhf.deb
sudo apt-get install npm --yes
sudo npm install -g faye-websocket
sudo npm install -g http://aka.ms/touchdevelop.tgz
wget -O $HOME/TouchDevelop/TouchDevelop.png https://www.touchdevelop.com/doc/touchdevelop72x72.png
@navhaxs
navhaxs / gist:1653086644ad0dc516c0
Last active February 8, 2016 01:18
Android backup

Because I got this wrong last time and lost data.

App backup with root

  • Titanium Backup: All user apps + system data

App backup without root (Smart Switch)

  • Connect device
  • First, go to Preferences and make sure everything to backup is ticked.
  • Begin Backup
@navhaxs
navhaxs / timewaster.MD
Last active January 4, 2018 00:47
Jeremy's Windows provisioning list of tasks

Jeremy's Win10 Provisioning

Microsoft Windows 10 upgrades and 'refresh' reinstalls waste a stack of time, although at times neccessary as a result of winrot.

Here's a couple of routine steps to quickly run through afterwards.

Thinkpad T450s

@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