Skip to content

Instantly share code, notes, and snippets.

View pstaender's full-sized avatar
👾
extra terrestrial

Philipp Staender pstaender

👾
extra terrestrial
  • Cologne, Germany
View GitHub Profile
@pstaender
pstaender / ibm_colors.itermcolors
Last active April 24, 2019 17:24
Tilix and iTerm theme with ibm colors
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.25490197539329529</real>
@pstaender
pstaender / change_wallpaper.sh
Created September 28, 2018 12:44
Change wallpaper in Linux Mint (cinnamon) according to daytime with MacOS Mojave wallpapers
#!/bin/bash
wallpaper=`ruby get_wallpaper_url.rb`
# https://stackoverflow.com/questions/10374520/gsettings-with-cron#19666729
PID=$(pgrep -fo cinnamon-session)
export DBUS_SESSION_BUS_ADDRESS=$(grep -z DBUS_SESSION_BUS_ADDRESS /proc/$PID/environ|cut -d= -f2-)
gsettings set org.cinnamon.desktop.background picture-uri "file://${wallpaper}"
@pstaender
pstaender / docker-compose.yml
Last active September 24, 2018 13:10
Quick sentry for docker-compose
# NOTE: This docker-compose.yml is meant to be just an example of how
# you could accomplish this on your own. It is not intended to work in
# all use-cases and must be adapted to fit your needs. This is merely
# a guideline.
# See docs.getsentry.com/on-premise/server/ for full
# instructions
version: '3.4'
#!/usr/bin/env ruby
# optional: install oathtool
require 'json'
require 'yaml'
require 'open3'
require 'mkmf'
cmd_list_items = 'op list items'
#!/bin/sh
sudo killall -HUP mDNSResponder
@pstaender
pstaender / failout.html
Created May 29, 2017 21:54
from last.fm (about 2009)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-GB"><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Temporarily Offline</title>
<style type="text/css" media="screen">
html,
body {
height: 100%;
#!/bin/sh
# download all dradio mp3 streams
for m3u_url in http://www.deutschlandradio.de/streaming/dlf.m3u http://www.deutschlandradio.de/streaming/dkultur.m3u http://www.deutschlandradio.de/streaming/dradiowissen.m3u http://www.deutschlandradio.de/streaming/dplus.m3u; do
url=$(curl -s $m3u_url)
filename=$(basename $m3u_url)
program="${filename%.*}"
curl $url > $program.mp3 &
done
@pstaender
pstaender / punchcard.rb
Created May 10, 2017 22:16
Track your project time
#!/usr/bin/env ruby
class PunchCardError < StandardError; end
class PunchCard
SETTINGS_DIR = File.expand_path('~/.punchcard')
def initialize project
@project = project
@pstaender
pstaender / openssh-7.3.sh
Last active April 30, 2017 17:37 — forked from stefansundin/openssh-7.3.sh
Install OpenSSH 7.3 in Ubuntu 16.04
$ ssh -V
OpenSSH_7.2p2 Ubuntu-4ubuntu2.1, OpenSSL 1.0.2g 1 Mar 2016
$ wget https://launchpadlibrarian.net/311137366/openssh-client_7.3p1-1ubuntu0.1_amd64.deb
$ wget https://launchpadlibrarian.net/298453050/libgssapi-krb5-2_1.14.3+dfsg-2ubuntu1_amd64.deb
$ wget https://launchpadlibrarian.net/298453058/libkrb5-3_1.14.3+dfsg-2ubuntu1_amd64.deb
$ wget https://launchpadlibrarian.net/298453060/libkrb5support0_1.14.3+dfsg-2ubuntu1_amd64.deb
$ wget https://launchpadlibrarian.net/311137368/openssh-server_7.3p1-1ubuntu0.1_amd64.deb
$ wget https://launchpadlibrarian.net/311137369/openssh-sftp-server_7.3p1-1ubuntu0.1_amd64.deb
$ sudo dpkg -i libkrb5support0_1.14.3+dfsg-2ubuntu1_amd64.deb
$ sudo dpkg -i libkrb5-3_1.14.3+dfsg-2ubuntu1_amd64.deb
@pstaender
pstaender / .nord_vpn_auth
Last active October 28, 2018 18:13
Open NordVPN easiliy via cli with country as argument and checking for newest server files
youremail
yourpassword