Skip to content

Instantly share code, notes, and snippets.

View navhaxs's full-sized avatar

Jeremy Wong navhaxs

View GitHub Profile
@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
@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 / 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"

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

sh < /dev/ttyUL4 > /dev/ttyUL4 2>&1 &
@navhaxs
navhaxs / latex stuff.md
Created October 19, 2017 23:13
latex stuff
\begin{enumarate}

\begin{itemize

\list

\includegraphics{filename_no_extension}
@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:
Enable inkscape auto-save, or you will be sad.
@navhaxs
navhaxs / logcat.log
Created June 23, 2017 14:33
logcat snippet
06-24 00:33:04.054 2315 31312 D HtcWifiDataStallTracker: mIsWifiConnected true mIsDhcpActive false supplicantStateCOMPLETED mOldWifiDisplayStatus 0mIsRoutingComplete true
06-24 00:33:04.213 5211 5241 E MP-Decision: Update arg 2
06-24 00:33:04.246 2315 4380 W SensorService: D/disable: connection.get() = 0xb81d10d0
06-24 00:33:04.246 2315 4380 W SensorService: D/disable: get sensor name = Significant Motion

Stage 1 - Booting to the installer

Clover: "Instant" reboots

Use AptioFix rather than AptioFix2

HD5500 kernel panic

The Clover 'kexts to patch' can only work on kexts in the kernel cache. This requires the kernel cache to be built, which can only happen during post-install.