git update
For automatically rebasing current branch to freshly fetched origin branch, and rebase local branches with upstream changes.
For automatically rebasing current branch to freshly fetched origin branch, and rebase local branches with upstream changes.
#!/usr/bin/env bash | |
home_monitor() { | |
echo "Setting single monitor">/dev/stderr | |
xrandr \ | |
--output DP-1 --primary --mode 3840x2160 --pos 0x0 --rotate normal \ | |
--output eDP-1 --off \ | |
--output HDMI-1 --off \ | |
--output DP-2 --off \ | |
--output HDMI-2 --off |
#!/usr/bin/env bash | |
set -euo pipefail | |
# git remote prune origin | |
originating_branch() { | |
local i branch | |
i=0 | |
branch="" |
I hereby claim:
To claim this, I am signing this object:
#!/bin/sh | |
# No more peck and hunt with xev! | |
# By Joep van Delft, github.com/joepvd | |
xev | | |
awk ' | |
BEGIN { | |
FS="[ (),]+" | |
fmt = "%-7s %-4s %-6s %s\n" | |
printf fmt, "action", "code", "sym", "name" | |
printf fmt, "-------", "----", "------", "----" |
#! /usr/bin/env bash | |
set -e | |
eval "$(rbenv init -)" | |
for version in `rbenv whence gem`; do | |
rbenv shell "$version" | |
echo "Updating rubygems for $version" | |
gem update --system --no-rdoc --quiet |
# Love you, GNU. But got a bit tired of this conversation pattern: | |
# | |
# % ln -h | |
# ln: invalid option -- 'h' | |
# Try 'ln --help' for more information. | |
# | |
# Don't worry. I fixed you for me. | |
# | |
# Eternally yours, | |
# |
# Hello, and welcome to makefile basics. | |
# | |
# You will learn why `make` is so great, and why, despite its "weird" syntax, | |
# it is actually a highly expressive, efficient, and powerful way to build | |
# programs. | |
# | |
# Once you're done here, go to | |
# http://www.gnu.org/software/make/manual/make.html | |
# to learn SOOOO much more. |