Skip to content

Instantly share code, notes, and snippets.

@daniepetrov
daniepetrov / del_vscode_mac.md
Created June 4, 2024 21:04 — forked from karansinghgit/del_vscode_mac.md
How to completely uninstall VSCode on Mac
  1. Close and Quit VSCode

  2. Remove VScode from Applications (just go to Finder -> Applications and move VSCode to Bin)

  3. Execute these commands in any order. The paths might be slightly different for you.

rm -fr ~/.vscode*
rm -fr ~/Library/Application\ Support/Code/

rm -fr ~/Library/Saved\ Application\ State/com.microsoft.VSCode.savedState/
rm -fr ~/Library/Preferences/com.microsoft.VSCode.helper.plist 
@daniepetrov
daniepetrov / encoding-video.md
Created June 5, 2024 14:38 — forked from glen-cheney/encoding-video.md
Encoding video for the web

Encoding Video

Installing

Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.

brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus
@daniepetrov
daniepetrov / 1-dnsmasq-dnscrypt-proxy-setup.md
Created September 13, 2024 12:20 — forked from irazasyed/1-dnsmasq-dnscrypt-proxy-setup.md
How to Setup dnsmasq with dnscrypt-proxy and Cloudflare DNS on macOS

How to Setup dnsmasq with dnscrypt-proxy and Cloudflare DNS on macOS

Using Laravel Valet for localhost development, So it installs dnsmasq with it. dnsmasq runs on port 53, The default DNS port. So we setup dnscrypt-proxy on port 5300 with the default config files in this gist.

dnscrypt-proxy Installation

brew install dnscrypt-proxy
@daniepetrov
daniepetrov / mousectl.c
Created November 14, 2024 09:46 — forked from taeber/mousectl.c
mousectl - Swap mouse buttons from the macOS Terminal
// mousectl - Swap mouse buttons from the macOS Terminal
// From https://superuser.com/a/1782251
// with changes by [email protected]
// Compile:
// clang -framework IOKit -framework Foundation -o mousectl mousectl.c
#include <IOKit/hidsystem/IOHIDLib.h>
#include <IOKit/hidsystem/IOHIDParameter.h>