Tested on the Raspberry Pi 4.
1 Download
Download Rasbian at https://www.raspberrypi.org/downloads/raspbian/
Open the raspbian*.img file. This mounts the image as "boot" volume.
Tested on the Raspberry Pi 4.
Download Rasbian at https://www.raspberrypi.org/downloads/raspbian/
Open the raspbian*.img file. This mounts the image as "boot" volume.
#!/bin/bash | |
# | |
# See: https://medium.com/@kurtisnusbaum/stacked-diffs-keeping-phabricator-diffs-small-d9964f4dcfa6 | |
REPOSITORY_DIR=~/Work | |
for dir in "$REPOSITORY_DIR"/*/.git/arc/ | |
do | |
echo "HEAD^" > "$dir/default-relative-commit" | |
done |
import PlaygroundSupport | |
import SwiftUI | |
// MARK: - Game | |
extension TicTacToe.Board { | |
var hasNonEmptyCells: Bool { | |
self.flatMap { $0 } | |
.contains(where: { $0 != .empty }) | |
} |
expr -l objc++ -O -- (id)0x12345678 | |
// Replace 0x12345678 with the memory location of the object |
Add this to your ~/.vimrc:
" Add reviewers as a dictionary
set dictionary=~/.reviewers
" Use dictionary in completion suggestions
set complete+=k
wget -O - https://dev2day.de/pms/dev2day-pms.gpg.key | sudo apt-key add -
echo "deb https://dev2day.de/pms/ jessie main" | sudo tee /etc/apt/sources.list.d/pms.list
sudo apt-get update
⌘-q
:wq
ctrl-a
ctrl-d
(detach)
ctrl-a
ctrl-\
(kill)
SCRIPT_PATH="$( cd "$(dirname "$0")" ; pwd -P )" | |
HOMEBREW_PATH=$SCRIPT_PATH/homebrew | |
echo "Add $HOMEBREW_PATH/bin to PATH" | |
export PATH=$HOMEBREW_PATH/bin:$PATH | |
echo "Add $HOMEBREW_PATH/opt/binutils/bin to PATH" | |
export PATH=$HOMEBREW_PATH/opt/binutils/bin:$PATH | |
export LDFLAGS=-L$HOMEBREW_PATH/opt/binutils/lib | |
export CPPFLAGS=-I$HOMEBREW_PATH/opt/binutils/include |
1) `sudo apt-get install git-core` | |
Setup git remote | |
2) `scp -r <your project> <your username>@<ip of raspberry pi>:` | |
3) `ssh <your username>@<ip of raspberry pi>:` | |
4) `cd <your project>` | |
5) `git config --bool core.bare true` | |
6) Go back to your local machine (Ctrl-D) |
# Paste these lines into your ~/.bashrc or other shell initialisation script | |
# Note that for most of these, your gitconfig has to have the aliasses from the .gitconfig in this gist | |
alias co='git checkout' | |
alias st='git status' | |
alias add='git add' | |
alias commit='git commit' | |
# Amend anything that is staged |