Skip to content

Instantly share code, notes, and snippets.

@crowjdh
crowjdh / ssh_browser_proxy.md
Last active March 7, 2022 15:47
Use ssh server as a proxy server for Chromium browser
shell_one $ ssh -ND $PORT $HOST
shell_two $ "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --proxy-server="socks5://localhost:$PORT"
@crowjdh
crowjdh / F*ckYouBigSur.md
Last active November 22, 2022 08:10
Sometimes you just really want BigSur to just shut the fu*k up.

Prerequisite

  • Disable auto update check from System Preferences -> Software Update
  • Dismiss update notification

Disable Apple Software Update Domain

  • Add entries below to /etc/hosts
    127.0.0.1 swscan.apple.com
    127.0.0.1 swcdn.apple.com

127.0.0.1 swdist.apple.com

  • VIM into /etc/pam.d/sudo
$ cd /etc/pam.d
$ sudo chmod 0644 ./sudo
$ sudo vim ./sudo
  • Add below
auth sufficient pam_tid.so

Scripts

{
  ...,
  "scripts": {
    "watch-ts": "nohup npx tsc --watch >> watch_ts.log 2>&1 &",
    "watch-js": "nohup npx nodemon dist/index.js >> watch_js.log 2>&1 &",
    "dev": "npm run watch-ts; npm run watch-js; tail -f watch_ts.log -f watch_js.log"
  },
 ...

defaults write com.apple.systempreferences AttentionPrefBundleIDs 0 && killall Dock

Resources

Hardware

  • MBP Retina mid 2012

OS

  • Main: MacOS Catalina
  • Second: Windows 10 Home Edition
  • Third: Kali Linux 2020.4

Install Windows via BootCampAssistant

Display global power settings:

$ pmset -g

To stop sleep entirely:

sudo pmset -a disablesleep 1

To revert, allowing sleep again:

sudo pmset -a disablesleep 0

Reference

[
{
"type": "menu_section_1",
"elements": [
[
{
"image": "https://univ.go.kr/static/v1.0.1/images/news.png",
"background": "#ffffff",
"text": "대학공지",
"action": "some-app-action-id"
@crowjdh
crowjdh / UaaL.md
Last active October 19, 2023 01:26
How to setup Unity as a Library(for iOS/Android) with Vuforia