Skip to content

Instantly share code, notes, and snippets.

View navhaxs's full-sized avatar

Jeremy Wong navhaxs

View GitHub Profile
Enable inkscape auto-save, or you will be sad.
@navhaxs
navhaxs / docker-compose.yml
Created July 9, 2017 08:35
docker-compose up -d
version: '3'
# wordpress
# TODO: not sure if logging.ini/file paths work
services:
db:
image: mysql:5.7
volumes:
@navhaxs
navhaxs / latex stuff.md
Created October 19, 2017 23:13
latex stuff
\begin{enumarate}

\begin{itemize

\list

\includegraphics{filename_no_extension}
sh < /dev/ttyUL4 > /dev/ttyUL4 2>&1 &

Keyboard shortcuts

VSCODE: Apple+D next selection

INTELLIJ: Ctrl+G next selection Option + Cmd +[ and Option + Cmd + ], and Ctrl + M.  to navigate to a code block's start and end. to navigate between the start and end of a code block.

Hackintosh essentials

@navhaxs
navhaxs / notes.md
Last active March 11, 2018 05:38
TWRP/Android building from source

Notes

  • Using prebuilt kernels are the norm - look at the device repos that twrp hosts. Safe to ignore deprecated warning.

Setup

Using the minimal manifest takes < 3hrs to repo sync.

Use git init <manifestrepouri> -b <android-6.0> --depth=1 and git sync -j5 -c

Makefiles for dayz

"/bin/bash: line 0: test: -ge: unary operator expected"

@navhaxs
navhaxs / wsl.md
Created April 25, 2018 09:02
[Notes] Install Visual Studio Code on WSL / Ubuntu on Windows 10

Collated info from various github issues

It is useful to run code --verbose until you get things working.

  1. First install Xming / alternative, add export DISPLAY=:0.0 to your ~/.bashrc

  2. Install the vs code package

  3. sudo apt install libgtk2.0-0 libxss1 libasound2 libgl1-mesa-glx

@navhaxs
navhaxs / doc.md
Created April 29, 2018 10:52
Recepie - Open Arc menu in gnome shell using Super key without conflicting with + window num

DELL XPS 15 Solutions

Problem Solution
Wifi Replace with Intel
Audio Uninstall smartbyte / KSMRD
Keyboard ?????? BIOS 1.60
Won't turn on Warranty
Crashing Repaste/Undervolting, then warranty
@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