| #!/bin/sh | |
| # | |
| # gitadd - safe run of (git add .; git commit; git push) | |
| # | |
| # Usage: gitadd [commit message] | |
| # | |
| # When adding too many files to github, error may arise such as | |
| # remote: fatal: pack exceeds maximum allowed size | |
| # or | |
| # fatal: The remote end hung up unexpectedly |
| # Get Sudo. | |
| if [ $EUID != 0 ]; then | |
| sudo "$0" "$@" | |
| exit $? | |
| fi | |
| # Install Xcode first - https://itunes.apple.com/us/app/xcode/id497799835?ls=1&mt=12 | |
| # Install Xcode command line tools. | |
| xcode-select --install |
Make sure everything is up to date in the App Store
2. Install Homebrew and Homebrew-Cask
- Open a terminal window and execute the Homebrew install script:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"| {"lastUpload":"2020-07-14T08:25:59.082Z","extensionVersion":"v3.4.3"} |
| {"": {"definitions": [], "attributes": {}}} |
If you're doing stuff with Ruby on a Mac, e.g. installling Jekyll or something, by default you'll end up having to use the sudo command to do stuff, since the permission to modify the default config is not available to your user account.
This sucks and should be avoided. Here's how to fix that.
To make this better, we are going install a new, custom Ruby. This used to be a big, scary thing, but thanks to the awesome tools Homebrew and rbenv, it's a snap.*
A word of warning: you will have to use Terminal to install this stuff. If you are uncomfortable with text, words, and doing stuff with your computer beyond pointing and hoping, this may not work well for you. But if that's the case, I'm not sure why you were trying to use Ruby in the first place.
The Z shell (zsh) is a Unix shell [...]. Zsh can be thought of as an extended Bourne shell with a large number of improvements, including some features of bash, ksh, and tcsh.
Read more about ZSH at An Introduction to the Z Shell.
Choose one of the following options.
iOS, The Future Of macOS, Freedom, Security And Privacy In An Increasingly Hostile Global Environment
This post by a security researcher who prefers to remain anonymous will elucidate concerns about certain problematic decisions Apple has made and caution about future decisions made in the name of “security” while potentially hiding questionable motives. The content of this article represents only the opinion of the researcher. The researcher apologises if any content is seen to be inaccurate, and is open to comments or questions through PGP-encrypted mail.
TL;DR
| " ----------------------------------------------------------------------------- | |
| " | VIM Settings | | |
| " | (see gvimrc for gui vim settings) | | |
| " | | | |
| " | Some highlights: | | |
| " | jj = <esc> Very useful for keeping your hands on the home row | | |
| " | ,n = toggle NERDTree off and on | | |
| " | | | |
| " | ,f = fuzzy find all files | | |
| " | ,b = fuzzy find in all buffers | |

