Skip to content

Instantly share code, notes, and snippets.

View mattalxndr's full-sized avatar

Matt Alexander mattalxndr

View GitHub Profile
@mattalxndr
mattalxndr / chroot-to-pi.sh
Created November 7, 2021 05:27 — forked from htruong/chroot-to-pi.sh
Chroot to pi sd card
#!/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
#!/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
#!/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/"
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"