Skip to content

Instantly share code, notes, and snippets.

View nablaa's full-sized avatar

Miika-Petteri Matikainen nablaa

View GitHub Profile
@nablaa
nablaa / new-install.sh
Last active December 25, 2015 19:19
Script to configure new fresh Xubuntu install. Installs dotfiles and sets up XMonad Xsession.
#!/bin/bash
set -e
set -u
echo "Make sure you have Xubuntu 12.04 LTS or newer installed"
echo "Updating system"
sudo apt-get update
sudo apt-get dist-upgrade
@nablaa
nablaa / cross-compile-pidgin-plugin.sh
Created April 8, 2014 18:29
Cross-compile Pidgin plugins for Windows using Linux
#!/bin/bash
# Script to cross-compile Pidgin plugins on Linux for Windows.
# Tested to work on Ubuntu 12.04
PLUGIN_SRC_FILE="$1"
PLUGIN_NAME=$(basename "${PLUGIN_SRC_FILE}")
PLUGIN_NAME="${PLUGIN_NAME%.*}"
PLUGIN_DLL="${PLUGIN_NAME}.dll"
@nablaa
nablaa / install-arch-linux-image-raspberry.sh
Last active August 1, 2023 09:05
Arch Linux ARM installation script for Raspberry Pi
#!/bin/bash
set -e
set -u
usage() {
echo "Usage: $0 DEVICE HOSTNAME"
echo "Example: $0 /dev/sdX mypi"
exit 1
}
wobl() {
curl -s http://api.basso.fi/v1/upcoming_shows.json \
| jq -r '.[] | .showName,.startTimeText,.endTimeText' \
| paste -d' -' - - -
}