Skip to content

Instantly share code, notes, and snippets.

View disrupted's full-sized avatar

Salomon Popp disrupted

View GitHub Profile
@disrupted
disrupted / Flat_disrupted.js
Last active July 29, 2020 10:38
my Blink Shell color scheme
var base03 = "#2C3E50";
var base02 = "#34495E";
var base01 = "#27AE60";
var base00 = "#F39C12";
var base0 = "#3C7DD1";
var base1 = "#2980B9";
var base2 = "#ECF0F1";
var base3 = "#BDC3C7";
var yellow = "#F1C40F";
var orange = "#C0392B";
@disrupted
disrupted / upgrade LuCI
Created August 23, 2019 09:47
OpenWRT router
opkg list-upgradable | grep luci
opkg upgrade luci-base
opkg upgrade luci-mod-admin-full
/etc/init.d/uhttpd restart
rm -rf /tmp/luci*
@disrupted
disrupted / custom-icns.sh
Last active June 24, 2018 21:12
Custom ICNS for macOS
#!/usr/bin/env bash
#
# Custom ICNS for macOS
#
# disrupted
#
# credit to https://www.sethvargo.com/replace-icons-osx
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of

Keybase proof

I hereby claim:

  • I am disrupted on github.
  • I am disrupted (https://keybase.io/disrupted) on keybase.
  • I have a public key ASAr1eoUtjvkvesOd0LXVqX7S3Xbdq-M3IU-3aFjGGWt-wo

To claim this, I am signing this object:

// ==UserScript==
// @name Force Autocomplete
// @description enable autocomplete for all HTML input fields
// @author disrupted
// @version 0.1
// @match http://*/*
// @grant none
// ==/UserScript==
var initialDelay = 2000; // adjust to make it work with all websites
@disrupted
disrupted / scrollTo.js
Created January 13, 2017 17:51 — forked from joshcanhelp/scrollTo.js
Animated scrollTo for specific element or top of page
//
// Smooth scroll-to inspired by:
// http://stackoverflow.com/a/24559613/728480
//
module.exports = function (scrollTo, scrollDuration) {
//
// Set a default for where we're scrolling to
//
@disrupted
disrupted / buergerbot.rb
Created February 16, 2016 11:08 — forked from pbock/buergerbot.rb
Bürgerbot: Refreshes the Berlin Bürgeramt page until an appointment becomes available, then notifies you.
#!/usr/bin/env ruby
require 'watir-webdriver'
def log (message) puts " #{message}" end
def success (message) puts "+ #{message}" end
def fail (message) puts "- #{message}" end
def notify (message)
success message.upcase
system 'osascript -e \'Display notification "Bürgerbot" with title "%s"\'' % message
rescue StandardError => e