Skip to content

Instantly share code, notes, and snippets.

View 1mike12's full-sized avatar

Michael Qin 1mike12

  • Boston, United States
View GitHub Profile
@1mike12
1mike12 / arcane windows commands.md
Last active August 14, 2020 19:44
arcane windows commands

remove all crap from windows Get-AppXPackage | Remove-AppXPackage

get back windows store Get-AppxPackage -allusers Microsoft.WindowsStore | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}

remove all tiles and crap on start menu

#Requires -RunAsAdministrator

$START_MENU_LAYOUT = @"
@1mike12
1mike12 / Fast tethering.md
Last active October 5, 2023 19:36
fast hotstop tethering

on android (not needed seems like as of feb 2023 oneplus 8t)

adb shell

settings put global tether_dun_required 0

with root permsission and running as SU

# makes the build.prop file editable
mount -o rw,remount /

# adds a line in build.props
@1mike12
1mike12 / how to post-receive.md
Last active March 8, 2023 18:08
node and react git post-receive hook deployment

server

  1. make a project/ directory and project.git/ directory
  2. cd project.git && git init --bare
  3. cd project.git/hooks && touch post-receive
  4. copy paste post-receive script
  5. make executable chmod +x post-receive

local

git remote add production user@domain.com:/var/www/project.git