Skip to content

Instantly share code, notes, and snippets.

@SammysHP
SammysHP / 0001-blip-delay-decrement.patch
Last active June 16, 2019 12:49
Anduril – Delay ramp after blip()
=== modified file 'ToyKeeper/spaghetti-monster/anduril/anduril.c'
--- ToyKeeper/spaghetti-monster/anduril/anduril.c 2019-06-02 06:51:53 +0000
+++ ToyKeeper/spaghetti-monster/anduril/anduril.c 2019-06-16 12:42:40 +0000
@@ -37,6 +37,7 @@
//#define BLINK_AT_RAMP_FLOOR
#define BLINK_AT_RAMP_CEILING
//#define BLINK_AT_STEPS // whenever a discrete ramp mode is passed in smooth mode
+#define BLINK_AT_RAMP_MIDDLE_DELAY
// ramp down via regular button hold if a ramp-up ended <1s ago
@SammysHP
SammysHP / rc.lua
Last active January 21, 2018 16:09
Monkey patching awful.placement to add a "center_parent" placement function
-- just insert in your rc.lua
function awful.placement.center_parent(c, args)
if c.transient_for then
args.parent = c.transient_for
return awful.placement.centered(c, args)
end
return awful.placement.no_overlap(c, args)
end
@SammysHP
SammysHP / userChrome.css
Created January 6, 2018 19:46
[WIP] userChrome.css
@namespace "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
/* BEGIN Compact theme variables */
[uidensity="compact"]:root {
--tab-line-color: transparent !important;
--tab-min-height: 18px !important;
--nav-min-height: 18px !important;
--newtab-margin: -3px 0 -3px -3px !important;
}
/* END Compact theme variables */
@SammysHP
SammysHP / dark.vimp
Created June 26, 2017 19:51
Vimperator dark colorscheme, copy to ~/.vimperator/colors/dark.vimp and run ":colorscheme dark"
""" Default """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
hi Normal color: #dddddd; background: #222222;
hi ContentSeparator border-top: 1px dotted #444444; display: -moz-box; background: #222222;
hi StatusLine color: #999999; background: transparent; font-weight: normal;
""" Commandline """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
hi CmdLine background: #222222; color: #dddddd; transition: all 0.25s;
hi CmdLine>* font-family: monospace;
@SammysHP
SammysHP / PKGBUILD
Created November 3, 2016 11:25
Updated PKGBUILD for libfprint-git
# Maintainer: Ivan Shapovalov <intelfx100@gmail.com>
# Contributor: Sven Greiner <sven@sammyshp.de>
# Contributor: vldmr <vldmr@lavabit.com>
# Contributor: Thomas Krug <phragment@lavabit.com>
# Contributor: Matthew Bauer <mjbauer95@gmail.com>
pkgname=libfprint-git
epoch=1
pkgver=0.6.0.r33.g9570c36
pkgrel=1
@SammysHP
SammysHP / Makefile
Last active December 22, 2016 15:57
Makefile for AVR microcontrollers using avr-gcc/avrdude. C-only.
#==== Main Options =============================================================
MCU = attiny13
F_CPU = 1200000
#LFUSE = 0x6a
#HFUSE = 0xff
TARGET = main
SRC = $(TARGET).c
repo CREATOR/[a-zA-Z0-9_\.\-]+
C = CREATOR @foobargroup
RW+ = CREATOR
RW = WRITERS
R = READERS
R = gitweb daemon

Keybase proof

I hereby claim:

  • I am SammysHP on github.
  • I am sammyshp (https://keybase.io/sammyshp) on keybase.
  • I have a public key whose fingerprint is 077F 9648 000A 9620 1E5A 2BD0 2753 5553 D7E4 3E91

To claim this, I am signing this object:

// ==UserScript==
// @name Flac it! Downloader
// @namespace www.sammyshp.de
// @description Download from Flac it!
// @include http://www.flacit.com/album/*
// @include http://flacit.com/album/*
// @include https://www.flacit.com/album/*
// @include https://flacit.com/album/*
// @version 1
// @grant none
@SammysHP
SammysHP / Makefile
Created January 14, 2016 21:39
Simple AVR makefile
#==== Main Options =============================================================
MCU = attiny13
F_CPU = 1200000
TARGET = main
#==== Compile Options ==========================================================
CFLAGS = -mmcu=$(MCU) -I.