This file contains 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 | |
# This script allows you to chroot ("work on") | |
# the raspbian sd card as if it's the raspberry pi | |
# on your Ubuntu desktop/laptop | |
# just much faster and more convenient | |
# credits: https://gist.github.com/jkullick/9b02c2061fbdf4a6c4e8a78f1312a689 | |
# make sure you have issued |
This file contains 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 | |
# WARNING: this script will destroy data on the selected disk. | |
# This script can be run by executing the following: | |
# curl -sL https://git.io/vAoV8 | bash | |
set -uo pipefail | |
trap 's=$?; echo "$0: Error on line "$LINENO": $BASH_COMMAND"; exit $s' ERR | |
MIRRORLIST_URL="https://www.archlinux.org/mirrorlist/?country=US&protocol=https&use_mirror_status=on" | |
pacman -Sy --noconfirm pacman-contrib |
This file contains 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
#!/usr/bin/env bash | |
# Delete references to SVN branches that no longer exist | |
# Usage (this will not execute without asking you to confirm the list): | |
# bin/git-svn-prune.sh | |
# Started with | |
# Set your SVN prefix | |
GIT_SVN_PREFIX="svn/" |
This file contains 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
diff -rupN toggl-desktop_current_i386/DEBIAN/postinst toggl-desktop_current_i386_new/DEBIAN/postinst | |
--- toggl-desktop_current_i386/DEBIAN/postinst 2011-12-11 11:20:42.000000000 -0700 | |
+++ toggl-desktop_current_i386_new/DEBIAN/postinst 2011-12-11 11:24:50.000000000 -0700 | |
@@ -10,10 +10,13 @@ if [ ! -x "$XDG_ICON_RESOURCE" ]; then | |
echo "Error: Could not find xdg-icon-resource" >&2 | |
exit 1 | |
fi | |
-for icon in "/opt/toggl/toggl-desktop/product_logo_"*.png; do | |
- size="${icon##*/product_logo_}" | |
- "$XDG_ICON_RESOURCE" install --size "${size%.png}" "$icon" "toggl-desktop" |