Skip to content

Instantly share code, notes, and snippets.

@abbotto
abbotto / archlinux-install-guide.md
Created February 10, 2017 23:14 — forked from alphazo/archlinux-install-guide.md
ArchLinux Installation Guide

ArchLinux Installation guide

This will use GPT partitions and GRUB2 on a BIOS enabled PC (see Wiki for EFI). The Installation Guide can be found at /root/install.txt.

Prepare USB stick

Get 2012.08.04 image or later from http://www.archlinux.org/download. Following tutorial requires at least 2011.07.15 image.

dd if=/dev/zero of=/dev/sdx bs=1k count=1

@abbotto
abbotto / convert.demo.sh
Created August 12, 2016 19:01 — forked from zealinux/convert.demo.sh
imagemagick convert cheat sheet
= IMAGEMAGICK
Working with images, PDFs and the command line
# convert from one format to another
convert image.gif image.jpg
# convert specific PDF page to image
@abbotto
abbotto / xpad.c
Created August 7, 2016 03:10 — forked from anonymous/xpad.c
xpad.c to emulate keyboard
/*
* Xbox input device driver for Linux - v0.1.6
*
* Copyright (c) 2002 - 2004 Marko Friedemann <mfr@bmx-chemnitz.de>
*
* Contributors:
* Vojtech Pavlik <vojtech@suse.sz>,
* Oliver Schwartz <Oliver.Schwartz@gmx.de>,
* Thomas Pedley <gentoox@shallax.com>,
* Steven Toth <steve@toth.demon.co.uk>,
@abbotto
abbotto / preprocessor_fun.h
Last active September 11, 2015 17:26 — forked from aras-p/preprocessor_fun.h
Things to commit just before leaving your job
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,
@abbotto
abbotto / 0_reuse_code.js
Last active August 29, 2015 14:10
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@abbotto
abbotto / LICENSE.txt
Created December 5, 2012 04:46 — forked from maettig/LICENSE.txt
getElementsByClassName in 140byt.es
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Thiemo Mättig <http://maettig.com/>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@abbotto
abbotto / getElementsByClassName.php
Created December 5, 2012 04:42 — forked from flesch/getElementsByClassName.php
document::getElementsByClassName("")
<?php
class document {
public static function getElementsByClassName($name) {
global $xpath;
$nodes = array();
$elements = $xpath->query(sprintf("//div[contains(@class, '%s')]", $name));
foreach ($elements as $e) {
array_push($nodes, $e);
}