- download VS Code as a
.tar.gzfrom https://code.visualstudio.com/insiders/#linux - rename
$HOME/.config/Code-Insiders/(if you have it) to something else so we get a fresh start - unpack in a folder somewhere, be sure to have all permissions set to the current user and not
rootor anything like that - go to where you have unpacked vscode-insiders and look for the
resources/app/extensionsfolder and rename it toextensions1and create a new extensions folder - this should make it that vs-code runs without any 3rd party and without any built-in extensions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| node: Platform built on V8 to build network applications | |
| git: Distributed revision control system | |
| wget: Internet file retriever | |
| yarn: JavaScript package manager | |
| python3: Interpreted, interactive, object-oriented programming language | |
| python: Interpreted, interactive, object-oriented programming language | |
| mysql: Open source relational database management system | |
| coreutils: GNU File, Shell, and Text utilities | |
| openssl: SSL/TLS cryptography library | |
| postgresql: Object-relational database system |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| if git-rev-parse --verify HEAD >/dev/null 2>&1 ; then | |
| against=HEAD | |
| else | |
| # Initial commit: diff against an empty tree object | |
| against=4b825dc642cb6eb9a060e54bf8d69288fbee4904 | |
| fi | |
| # Find files with trailing whitespace | |
| for FILE in `exec git diff-index --check --cached $against -- | sed '/^[+-]/d' | sed -r 's/:[0-9]+:.*//' | uniq` ; do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # create a template dir for hooks (if you don't already have one) | |
| mkdir -p ~/.git_template/hooks | |
| # tell git to use this template dir (globally) | |
| git config --global init.templatedir '~/.git_template' | |
| # copy the post-commit hook from any existing lolcommits enabled repo | |
| cp [path/to/lolcommit-enabled-repo]/.git/hooks/post-commit ~/.git_template/hooks/ | |
| # navigate to all existing local repos on your machine and run |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -='cd -' | |
| ..='cd ..' | |
| ...='cd ../..' | |
| ....=../../.. | |
| .....=../../../.. | |
| ......=../../../../.. | |
| 1='cd -' | |
| 2='cd -2' | |
| 3='cd -3' | |
| 4='cd -4' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /bin/zsh -c 'print -l "$(brew --repo caskroom/fonts)"/Casks/*(:t:r) | xargs brew cask install' | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo find / -name ".DS_Store" -exec rm {} \; | |
| # Remove all stored views for Finder |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # A script to set up a new mac. Uses bash, homebrew, etc. | |
| # Focused for ruby/rails development. Includes many utilities and apps: | |
| # - homebrew, rvm, node | |
| # - quicklook plugins, terminal fonts | |
| # - browsers: chrome, firefox | |
| # - dev: iterm2, sublime text, postgres, chrome devtools, etc. | |
| # - team: slack, dropbox, google drive, skype, etc |
Change Apple OS X Dock size from Apple Terminal
defaults write com.apple.dock tilesize -int 32; killall Dock32 is icon size
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| qemu-system-x86_64 -m 4096 -vga virtio -show-cursor -usb -device usb-tablet -enable-kvm -cdrom /Users/spamnrice/Downloads/archlinux-2020.02.01-x86_64.iso -drive file=./arch-2020.02.01-x86_64.qcow2,if=virtio -accel hvf -cpu host |