Skip to content

Instantly share code, notes, and snippets.

View tbho's full-sized avatar

Tobias Hoge tbho

View GitHub Profile
@dan-1d
dan-1d / Dockerfile
Last active May 11, 2020 08:10 — forked from prateekgogia/Dockerfile
Dockerfile to build 32 bit Docker container, for 32 bit docker daemon dev version 17.04.0-ce
# This file describes the standard way to build Docker, using docker
#
# Usage:
#
# # Assemble the full dev environment. This is slow the first time.
# docker build -t docker .
#
# # Mount your source in an interactive container for quick testing:
# docker run -v `pwd`:/go/src/github.com/docker/docker --privileged -i -t docker bash
#
@praswicaksono
praswicaksono / gist:dac438e1f501fae0917b
Last active November 19, 2024 09:10
AfterLogic Webmail Pro + Aurora Keygen
<?php
Class Keygen {
private $serial;
private function randChar($length = 8) {
$characters = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ';
$string = '';
for ($p = 0; $p < $length; $p++) {
@rgreenjr
rgreenjr / postgres_queries_and_commands.sql
Last active October 27, 2025 11:30
Useful PostgreSQL Queries and Commands
-- show running queries (pre 9.2)
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query
FROM pg_stat_activity
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%'
ORDER BY query_start desc;
-- show running queries (9.2)
SELECT pid, age(clock_timestamp(), query_start), usename, query
FROM pg_stat_activity
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%'
@Thermionix
Thermionix / gist:2715786
Created May 17, 2012 02:35
APC SC1000 UPS apcupsd usb serial adapter configuration
# use lsusb to find the details of the serial adapter to create a udev rule
~$ lsusb | grep Serial
Bus 003 Device 002: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
# based on the output from lsusb add a rule to /etc/udev/rules.d/local.rules
~$ cat /etc/udev/rules.d/local.rules
#Bus 004 Device 002: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port"
@simme
simme / Install_tmux
Created October 19, 2011 07:55
Install and configure tmux on Mac OS X
# First install tmux
brew install tmux
# For mouse support (for switching panes and windows)
# Only needed if you are using Terminal.app (iTerm has mouse support)
Install http://www.culater.net/software/SIMBL/SIMBL.php
Then install https://bitheap.org/mouseterm/
# More on mouse support http://floriancrouzat.net/2010/07/run-tmux-with-mouse-support-in-mac-os-x-terminal-app/