Skip to content

Instantly share code, notes, and snippets.

@liquidgecka
liquidgecka / cron_helper.sh
Last active September 28, 2023 15:35
Cron helper
#!/bin/bash
usage() {
cat << EOF
Usage: $0 [OPTION]... COMMAND
Execute the given command in a way that works safely with cron. This should
typically be used inside of a cron job definition like so:
* * * * * $(which "$0") [OPTION]... COMMAND
Arguments:
@liquidgecka
liquidgecka / example
Created August 8, 2014 16:19
cgroup init upstart config
NAME="example"
TASKS_OWNER="user1"
TASKS_GROUP="group1"
@liquidgecka
liquidgecka / make_diamond_deb.sh
Created August 13, 2015 17:20
A script for uploading diamond to a ppa.
#!/bin/bash
set -x
PPA=orchestrate/standard
# Change to a temp directory.
TMPDIR="$(mktemp -d /tmp/make_diamond.XXXXXXX)"
cd "$TMPDIR"
trap 'rm -rf "${TMPDIR}"' EXIT
@liquidgecka
liquidgecka / gist:90756aa03d3c970840ae
Last active February 29, 2016 21:00
House buying tips
Layout:
- Be wary of staging (the furniture/decorations that are in the house when you see it). Often times smaller stuff will be used to make rooms look bigger than they are. Take a tape measure, and have a list of the sizes of the stuff you own just so you can visualize yourself.
- Pay attention to ports, outlets, thermostats, windows etc. If putting your bed in the corner will cover the thermostat you will be annoyed, or if there are no outlets in the corner where you want to put the TV you will end up with cables all over the floor. etc.
- Pay attention to what is behind or around the room you are looking at. If its over the garage you will hear the garage door opener and it will be loud. If its near the kitchen it will smell like food, and be hot in the summer when cooking.
- Dual zone AC? This is important if its two story since the upstairs will be hot without it (heat rises.) Look for thermostats. Ideally there is 1 or more per level.
- Rooms on the front of the house will hear street noise (cars