Skip to content

Instantly share code, notes, and snippets.

View mrdaemon's full-sized avatar

Alexandre Gauthier mrdaemon

View GitHub Profile
#!/usr/bin/env python
# ____ __ _ __
# / __ \___ ________ _____/ /__________ (_) /______ _
# / /_/ / _ \/ ___/ _ \/ ___/ __/ ___/ __ \/ / //_/ __ `/
# / ____/ __/ / / __(__ ) /_/ / / /_/ / / ,< / /_/ /
#/_/ \___/_/ \___/____/\__/_/ \____/_/_/|_|\__,_/
#
# Yet another threaded, multi-part file downloader
#
# Copyright (c) Alexandre Gauthier 2010-2011
@mrdaemon
mrdaemon / .tmux-bootstrap.sh
Created July 12, 2011 23:01
tmux config and random bullshit
#!/bin/bash
# Shitty tmux bootstrap script for auto-login and session planning
SESSIONNAME="hack"
hash tmux || { echo "Could not find tmux? Ensure it's in \$PATH" ; exit 1 ;}
check_session() {
tmux list-sessions | cut -d ':' -f '1'| \
egrep "^""$SESSIONNAME""\$" 2>&1 > /dev/null
<#
.SYNOPSIS
Safely Imports Hyper-V Virtual Machines that were exported
as configuration only, without State Data (snapshots, VHDs, etc).
.DESCRIPTION
Hyper-V 2008 R2 removed the option to export a Virtual Machine without
its State Data (Snapshots, Virtual Disk Images (VHDs), Suspend State),
as configuration only through the GUI.
use strict;
use vars qw($VERSION %IRSSI);
use Irssi;
$VERSION = '0.01';
%IRSSI = (
authors => 'Alexandre Gauthier',
contact => '[email protected]',
use strict;
use vars qw($VERSION %IRSSI);
use Irssi;
$VERSION = '0.01';
%IRSSI = (
authors => 'Alexandre Gauthier',
contact => '[email protected]',
###
# Copyright (c) 2010, mr_daemon
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of conditions, and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright notice,
@mrdaemon
mrdaemon / gist:1212059
Created September 12, 2011 18:52
irc tlc
14:33 &br0> I has a wifebeater and hospital pants
14:34 &br0> actually technically they are MRI clinic pants
14:34 @sney> scrubs
14:34 &br0> getting my fucking dollarsworth fuckyeah
14:34 &br0> no they are not really scrubs
14:34 &br0> they are thinner
14:34 &plus> hrm
14:35 ~mr_daemon> All i know about scrubs
14:35 ~mr_daemon> Is that girls don't want none
14:35 %Lemon> gah
#!/bin/bash
# .xinitrc for asus eee 701 surf
# Alexandre Gauthier <[email protected]>
# 2011-2012
xset -b # Disable bell
eval $(/usr/bin/ssh-agent)
ASKPASSPROG=/usr/lib/openssh/qt4-ssh-askpass
/**
* config.h - dwm
*
* $$$$$$$\ $$\ $$\ $$\ $$\.
* $$ __$$\ $$ | $\ $$ |$$$\ $$$ |
* $$ | $$ | $$$$$$\ $$$$$$\ $$ |$$$\ $$ |$$$$\ $$$$ |
* $$ | $$ |$$ __$$\ $$ __$$\ $$ $$ $$\$$ |$$\$$\$$ $$ |
* $$ | $$ |$$$$$$$$ |$$$$$$$$ |$$$$ _$$$$ |$$ \$$$ $$ |
* $$ | $$ |$$ ____|$$ ____|$$$ / \$$$ |$$ |\$ /$$ |
* $$$$$$$ |\$$$$$$$\ \$$$$$$$\ $$ / \$$ |$$ | \_/ $$ |
# This is an example resource file for rTorrent. Copy to
# ~/.rtorrent.rc and enable/modify the options as needed. Remember to
# uncomment the options you wish to enable.
#SCGI
scgi_port = localhost:5000
# Maximum and minimum number of peers to connect to per torrent.
min_peers = 40
max_peers = 100