Skip to content

Instantly share code, notes, and snippets.

@nacx
nacx / Makefile
Last active December 15, 2015 14:39
IRC bot to expose the transmission-remote command
# Rasptrans Makefile
# Copyright (c) 2013 Ignasi Barrera
# This file is released under the MIT License, see LICENSE file.
TARGETS = rasptrans
TREMOTE = $(shell which transmission-remote)
CC = gcc
LN = $(CC)
PREFIX ?= /usr/local
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 18, 2024 11:00
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@nacx
nacx / DeployExample.java
Created February 10, 2012 09:30
Asynchronously monitoring deployments
package com.abiquo;
import java.util.Properties;
import org.jclouds.abiquo.AbiquoContext;
import org.jclouds.abiquo.AbiquoContextFactory;
import org.jclouds.abiquo.domain.cloud.VirtualAppliance;
import org.jclouds.abiquo.domain.cloud.VirtualDatacenter;
import org.jclouds.abiquo.domain.cloud.VirtualMachine;
import org.jclouds.abiquo.monitor.VirtualMachineMonitor;
@nacx
nacx / massive-volume-creation.sh
Created June 28, 2011 13:59
Massive volume creation in Abiquo
#!/bin/bash
NUM=20 # The number of volumes to create
DC=2 # The datacenter where the volumes will be created
TIER=1 # The tier where the volumes will be created
VDC=4 # The virtual datacenter where the volumes will be created
SIZE=100 # The size of the volumes to create in MB
LOGIN=admin:xabiquo # The credentials
for V in `seq 1 ${NUM}`; do