Skip to content

Instantly share code, notes, and snippets.

View sulami's full-sized avatar
🐙
タコ

Robin Schroer sulami

🐙
タコ
View GitHub Profile
# Rejected alternatives for conditional workflow semantics
# 'explicit' key
# Pros:
# - Somewhat self-explanatory
#
# Rejected because:
# * Adds a special-purpose key to workflow which only serves to mark a workflow
# as "not run on receipt of a webhook".
# * Configgers cannot control workflows as groups. 'explicit' allows marking

Keybase proof

I hereby claim:

  • I am sulami on github.
  • I am sulami (https://keybase.io/sulami) on keybase.
  • I have a public key whose fingerprint is 2F9C 6174 3E6D 8A55 3DE6 3CAD 4900 077F A141 8106

To claim this, I am signing this object:

@sulami
sulami / livecoding.js
Last active September 14, 2015 09:21
Livecoding.tv Dark Chat
// ==UserScript==
// @name Livecoding.tv Dark Chat
// @namespace webogram.fixes
// @include https://www.livecoding.tv/chat/*
// @version 1
// @grant none
// ==/UserScript==
function addGlobalStyle(css) {
var head, style;
@sulami
sulami / fix-webogram.js
Created August 16, 2015 11:31
Webogram Full-Width Userscript
// ==UserScript==
// @name Fix Webogram width
// @namespace webogram.fixes
// @match https://web.telegram.org/*
// @version 2
// @grant none
// ==/UserScript==
function addGlobalStyle(css) {
var head, style;
@sulami
sulami / tsp.py
Last active August 29, 2015 14:26
TSP
def rec(visited, list):
if len(visited) != len(list):
rv = []
remaining = []
for element in list:
if element not in visited:
remaining.append(element)
for r in remaining:
if len(visited) == len(list) - 1:
rv.append(rec(visited + [r], list))
@sulami
sulami / dickpics.md
Created July 30, 2015 22:05
Windows 10 Dick Pics

Dick Pics

and how Microsoft collects them. This follows John Oliver's approach to explain the NSA's data collection. All the quotes are verbatim from the Windows 10 installation and all these options are enabled by default. The button to even access the menus to deactivate this behavior is unnecessarily hidden.

Microsoft

Personalize your speech, typing, and inking input by sending contacts and

@sulami
sulami / gist:5dc0ca20c6deda1f4c8d
Created March 16, 2015 13:19
Arch Installscript
# Arch Install Script
# Confirmed: regular MBR/GPT, LVM MBR, LUKS/LVM MBR, plain LUKS GPT/EFI
# ToDo: RAID, fix GPT+LVM
# vim: ft=sh
(loadkeys de-latin1) # german
(c)fdisk / (c)gdisk # make partitions
# EFI needs a ~200-2000 MB ef00-type fat32 partition as /boot
-- Logs begin at Thu 2014-12-04 23:36:44 CET, end at Thu 2015-03-05 12:25:39 CET. --
Mar 03 18:11:18 shodan.fritz.box kernel: Initializing cgroup subsys cpuset
Mar 03 18:11:18 shodan.fritz.box kernel: Initializing cgroup subsys cpu
Mar 03 18:11:18 shodan.fritz.box kernel: Initializing cgroup subsys cpuacct
Mar 03 18:11:18 shodan.fritz.box kernel: Linux version 4.0.0-rc1-sulami-00151-ga38ecbb (sulami@shodan.fritz.box) (gcc version 4.9.2 20150204 (prerelease) (GCC) ) #28 SMP PREEMPT Mon Mar 2 14:01:10 CET 2015
Mar 03 18:11:18 shodan.fritz.box kernel: Command line: BOOT_IMAGE=../../vmlinuz-mainline root=/dev/mapper/cryptroot cryptdevice=/dev/sda2:cryptroot crypto=:::: rw usbhid.mouspoll=1 initrd=../../initramfs-mainline.img
Mar 03 18:11:18 shodan.fritz.box kernel: e820: BIOS-provided physical RAM map:
Mar 03 18:11:18 shodan.fritz.box kernel: BIOS-e820: [mem 0x0000000000000000-0x0000000000057fff] usable
Mar 03 18:11:18 shodan.fritz.box kernel: BIOS-e820: [mem 0x0000000000058000-0x0000000000058fff] reserved
Mar 03
@sulami
sulami / frankenwm2bar.sh
Last active February 23, 2022 08:51
FrankenWM status scripts
#!/usr/bin/env sh
wm="frankenwm"
ff="/tmp/frankenwm.fifo"
[[ -p $ff ]] || mkfifo -m 600 "$ff"
# desktop names
ds=("1" "2" "3" "4" "5" "6" "7" "8" "9" "0")
# layout names
" sane default search engine
let defaultengine = "duckduckgo"
" fix select all
iunmap <c-a>
" reopen last tab
map u :undo<CR>
" close tab