Skip to content

Instantly share code, notes, and snippets.

View thewh1teagle's full-sized avatar
💭
coding

thewh1teagle

💭
coding
  • localhost
  • The martian
View GitHub Profile
@thewh1teagle
thewh1teagle / BCP47-locales.md
Created April 29, 2024 23:09 — forked from typpo/BCP47-locales.md
BCP 47 language tags
Language Tag Language Region Description
ar-SA Arabic Saudi Arabia Arabic (Saudi Arabia)
bn-BD Bangla Bangladesh Bangla (Bangladesh)
bn-IN Bangla India Bangla (India)
cs-CZ Czech Czech Republic Czech (Czech Republic)
da-DK Danish Denmark Danish (Denmark)
de-AT German Austria Austrian German
de-CH German Switzerland "Swiss" German
de-DE German Germany
@thewh1teagle
thewh1teagle / SimpleTcpRedirector.py
Created October 23, 2022 20:07 — forked from sivachandran/SimpleTcpRedirector.py
A simple TCP redirector in python
#!/usr/bin/env python
import socket
import threading
import select
import sys
terminateAll = False
class ClientThread(threading.Thread):
@thewh1teagle
thewh1teagle / adb-dns.bat
Created September 22, 2022 23:47 — forked from sharunkumar/adb-dns.bat
Enabling / Disabling private DNS in android via ADB
rem to disable private dns
adb shell settings put global private_dns_mode off
rem to enable private dns with hostname (example with dns.adguard.com)
adb shell settings put global private_dns_mode hostname
adb shell settings put global private_dns_specifier dns.adguard.com
@thewh1teagle
thewh1teagle / virt-manager.notes.md
Created September 19, 2022 23:36 — forked from bradfa/virt-manager.notes.md
virt-manager notes

"Hardware" Notes

  • Need OVMF UEFI firmware for 64 bit machines installed. Be sure guest is using UEFI firmware! You can't change this after you create a machine in virt-manager!
  • Be sure using i440FX chipset.
  • Enable a qemu-ga channel for guest. Make a VirtIO serial controller.
  • Make sure your hard disk is using VirtIO, not IDE.
  • Be sure you have the VirtIO floppy image for Windows 7 install, you'll need to load drivers so installer can see the VirtIO disk.
  • Bridging to main Ethernet interface works fine, depsite the warnings. Use the VirtIO ethernet type.
  • The VirtIO 0.1.141 drivers work well for me in Win 7 Pro 64 bit.
  • To avoid the NVIDIA "Code 43" error, see the Arch Linux wiki about modifying the hypervisor name. Or somehow find older NVIDIA drivers prior to version 337 that work with your card.
  • Remove the "sound" device, sound pass through sucks. Just pass through a USB sound card/device but this isn't needed at install time.
@thewh1teagle
thewh1teagle / hnl.mobileConsole.js
Created November 20, 2021 17:03 — forked from c-kick/hnl.mobileConsole.js
hnl.mobileConsole.js - extends JavaScript's console to display a visual console inside the webpage. Very usefull for debugging JS on mobile devices with no real console. Info and demo: http://www.hnldesign.nl/work/code/mobileconsole-javascript-console-for-mobile-devices/
/*!
* hnl.mobileConsole - javascript mobile console - v1.3.8 - 04/01/2021
* Adds html console to webpage. Especially useful for debugging JS on mobile devices.
* Supports 'log', 'trace', 'info', 'warn', 'error', 'group', 'groupEnd', 'table', 'assert', 'clear'
* Inspired by code by Jakub Fiala (https://gist.github.com/jakubfiala/8fe3461ab6508f46003d)
* Licensed under the MIT license
*
* Changelog:
* 1.3.8
* - fixed bug when logging numbers
@thewh1teagle
thewh1teagle / markdown-details-collapsible.md
Created August 3, 2021 16:07 — forked from pierrejoubert73/markdown-details-collapsible.md
How to add a collapsible section in markdown.

A collapsible section containing markdown

Click to expand!

Heading

  1. A numbered
  2. list
    • With some
    • Sub bullets
@thewh1teagle
thewh1teagle / debloatNox.md
Created July 25, 2021 21:06 — forked from Log1x/debloatNox.md
Debloating & Optimizing Nox

Debloating Nox

Nox, despite being the most feature-filled Android emulator, has a lot of negativity surrounding it due to their antics when it comes to making income off of their program. It is known for running repeated advertisments in the background, calling home and passing along system information (outside of your Android instance) as well as a vast amount of potentially sensitive data in an encrypted payload back to their multitude of servers. With the following preventitive measures, we can stop a majority of this happening as well as greatly improve the overall performance.

  1. Download and Install a fresh copy of Nox. The latest version is fine (for now). If you already have it installed, that is fine too. No need to reinstall.

  2. Enable Root Mode on Nox by clicking the gear icon and then checking the Root Startup box.

  3. Install a new Launcher from the Play Store. ANYTHING but Nox's default. I suggest [Nova Launcher](https://play.google.com/s

@thewh1teagle
thewh1teagle / tracker-miner-fs-cpu-linux.md
Created March 5, 2021 20:51 — forked from diegopacheco/tracker-miner-fs-cpu-linux.md
tracker-miner-fs eating up my CPU on Linux
echo -e "\nHidden=true\n" | sudo tee --append /etc/xdg/autostart/tracker-extract.desktop /etc/xdg/autostart/tracker-miner-apps.desktop /etc/xdg/autostart/tracker-miner-fs.desktop /etc/xdg/autostart/tracker-miner-user-guides.desktop /etc/xdg/autostart/tracker-store.desktop > /dev/null

gsettings set org.freedesktop.Tracker.Miner.Files crawling-interval -2  

gsettings set org.freedesktop.Tracker.Miner.Files enable-monitors false  

tracker reset --hard   

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: