Skip to content

Instantly share code, notes, and snippets.

@aktau
aktau / inthash.md
Created August 19, 2013 12:30 — forked from badboy/inthash.md
@aktau
aktau / gist:5330470
Last active December 15, 2015 22:09 — forked from Kerrick/gist:2716568
#!/bin/bash
# set -e
set -u
AKBREW_CELLAR="/usr/local/aktau"
CURRENT_USER=$(whoami)
# create AKBREW_CELLAR if it does not exist

The best way to use this tool is to hook apt's use of dpkg to run it before doing any package installs.

In your apt.conf, put this:

DPkg::Pre-Install-Pkgs {"xargs -rL1 bash /path/to/stripdeb.sh 2>&1 | logger -t stripdeb"}

Then, a demo:

% sudo apt-get install mysql-server-5.1

@aktau
aktau / Clock.java
Created June 6, 2012 08:12 — forked from jewelsea/Clock.java
Sample of an animated clock in JavaFX
import javafx.animation.*;
import javafx.application.Application;
import javafx.event.*;
import javafx.geometry.Pos;
import javafx.scene.*;
import javafx.scene.control.Label;
import javafx.scene.effect.Glow;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.VBox;
import javafx.scene.paint.Color;
@aktau
aktau / gist:1959603
Created March 2, 2012 16:50
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.

Editing

Ctrl+C copy current line (if no selection)
Ctrl+X cut current line (if no selection)
Ctrl+⇧+K delete line
Ctrl+↩ insert line after