Skip to content

Instantly share code, notes, and snippets.

View gammy's full-sized avatar

gammy gammy

  • Stockholm
View GitHub Profile
#!/bin/sh
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
# Amended by Kristian Gunstone for manjaro-openrc
# Released under the 2-clause BSD license.
# Setup our resolv.conf
# Vitally important that we use the domain entry in resolv.conf so we
# can setup the nameservers are for the domain ONLY in resolvconf if
# we're using a decent dns cache/forwarder like dnsmasq and NOT nscd/libc.
# nscd/libc users will get the VPN nameservers before their other ones
gammy@lucia:~$ lsusb| grep -i trackpad
Bus 001 Device 004: ID 05ac:0253 Apple, Inc. Internal Keyboard/Trackpad (ISO)
gammy@lucia:~$ ls -l /dev/input/by-id/
total 0
lrwxrwxrwx 1 root root 9 Jul 14 20:32 usb-Apple_Computer__Inc._IR_Receiver-event-ir -> ../event0
lrwxrwxrwx 1 root root 9 Jul 14 20:32 usb-Apple_Inc._Apple_Internal_Keyboard___Trackpad-event-kbd -> ../event1
lrwxrwxrwx 1 root root 10 Jul 14 20:32 usb-Apple_Inc._Apple_Internal_Keyboard___Trackpad-if02-event-mouse -> ../event14
lrwxrwxrwx 1 root root 9 Jul 14 20:32 usb-Apple_Inc._Apple_Internal_Keyboard___Trackpad-if02-mouse -> ../mouse0
@gammy
gammy / keebuntu.PKGBUILD
Created July 4, 2016 21:02
Current PKGBUILD file for keebuntu
# Maintainer: Ho Tuan Kiet <tuankiet65@gmail.com>
# Contributor: Kristian Gunstone <kristian.gunstone except without these words AT pean.org>
# Contributor: Jameson Pugh <imntreal@gmail.com>
# Contributor: Jorge Araya Navarro <elcorreo@deshackra.com>
# Contributor: kaptoxic <kaptoxic _at_ yahoo _dot_ com >
# Contributor: Louis des Landes <aur@psykar.com>
# Contributor: dlech
# Contributor: Andreas Harter <aur@andreas-harter.de>
pkgname=keebuntu
Telia may be forced to pay 73 million kronor in lost compensation.
Copyswede go out winning another major legal battle. Today, the Supreme Court
held that even the iPhone will be subject to the private copying levy.
Copyswede has sued TeliaSonera of 73 million in lost pay, but if it gets such
high sums not fixed today, but should be decided by the district court.
The court case is about whether the iPhone can be considered to be "particularly
suited" for private copying, which the Supreme Court then considers the case.
#!/usr/bin/env bash
# Diox' Alarm, first draft
# Warning: Requires both bash and possibly also GNU date
read_timeout=10 # Must be in seconds
snooze_time="10 minutes"
human_format="%A%e, %H:%M"
ansi_red="\e[1;31m" # bold + red
ansi_green="\e[1;32m" # bold + green
*INFO* void KeyGrabber::grabKey(Window, unsigned int, unsigned int)@287:
KeyGrabber::grabKey(Window=0x5,000,75b, mod=0x40, key=0x26)
*INFO* void KeyGrabber::grabKey(Window, unsigned int, unsigned int)@287:
KeyGrabber::grabKey(Window=0x5,000,75b, mod=0x40, key=0x1c)
*INFO* void KeyGrabber::grabKey(Window, unsigned int, unsigned int)@287:
KeyGrabber::grabKey(Window=0x5,000,75b, mod=0x40, key=0x1b)
*INFO* void KeyGrabber::grabKey(Window, unsigned int, unsigned int)@287:
KeyGrabber::grabKey(Window=0x5,000,75b, mod=0x40, key=0x19)
*INFO* void KeyGrabber::grabKey(Window, unsigned int, unsigned int)@287:
KeyGrabber::grabKey(Window=0x5,000,75b, mod=0x40, key=0x2e)
http://www.youtube.com/watch?v=3_oMwlTDuiA
http://www.youtube.com/watch?v=HiBuwJ5EITo
http://www.youtube.com/watch?v=fZ63MuoahXY
http://www.youtube.com/watch?v=ySpmYNdRL-4
http://www.youtube.com/watch?v=dPyzka5Vgsw
http://www.youtube.com/watch?v=CX_-w498hvc
http://www.youtube.com/watch?v=cl0ZSA_YHvk
http://www.youtube.com/watch?v=TNNzgJSNeBA
http://www.youtube.com/watch?v=oefln_KblCQ
http://www.youtube.com/watch?v=7vT8cveb-kg
+perimeter_before_infill = True
+raft_airgap_all = 0.0
+raft_surface_thickness = 0.27
+raft_surface_linewidth = 0.4
+simplemodesettings =
+simplemodeprofile = Standard
+simplemodematerial = PLA
+simplemodematerialtype = Beginner
@gammy
gammy / PKGBUILD
Last active March 11, 2016 14:22
Aleph Objects' Cura v18.03
Please see https://aur.archlinux.org/packages/cura-aleph-bin/ instead.
@gammy
gammy / t.c
Created January 15, 2016 15:56
// How the hell does this work?
// gcc --std=c99 -Wall -pedantic t.c
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
int main(int argc, char *argv[]) {
uint32_t num_ipd_intervals = atoi(argv[1]);
uint32_t ipd_interval[num_ipd_intervals + 1];