Skip to content

Instantly share code, notes, and snippets.

View seraphyn's full-sized avatar
🏠
Working from home and loving' it

Christian M. Grube seraphyn

🏠
Working from home and loving' it
View GitHub Profile
@seraphyn
seraphyn / dist-upgrade.yml
Created August 5, 2016 18:12
Fallback and logging in dist-upgrade via ansible ansible-playbook dist-upgrade.yml -i your_inventory [-l host_name]
---
- hosts:
all
gather_facts: no
vars:
verbose: false
log_dir: "log/dist-upgrade/{{ inventory_hostname }}"
pre_tasks:
- block:
- setup:
[gallery columns="1" ids="257972,257974,257975,257976,257979,257980,257981,257982,257983,257984,257985,257986,257987,257988,257989,257990,257991,257992,257993,257994,257995,257996,257997,257998,257999,258000,258001,258002,258003,258004,258005,258006,258007,258008"]
@seraphyn
seraphyn / tt2srt.py
Created February 22, 2016 08:20
Timed Text Captions to SRT Subtitles converter script
#!/usr/bin/env python
# Usage: python tt2srt.py source.xml output.srt
# FROM: https://gist.github.com/adammw/915259
from xml.dom.minidom import parse
import sys
def fixTime(time):
parts = time.split(':')
frames = int(parts[3]) # 00..24
@seraphyn
seraphyn / httpsgottorg
Created February 3, 2016 09:26
Ausgabe von python sslyze_cli.py --regular got-tty.org für den Aritkel https://got-tty.org/sslyze-ssl-scanner
AVAILABLE PLUGINS
-----------------
FallbackScsvPlugin
SessionResumptionPlugin
HeartbleedPlugin
OpenSslCipherSuitesPlugin
@seraphyn
seraphyn / speedtweet.py
Created January 31, 2016 21:03
RaspberryPI Speedtest automatically tweet at Comcast Xfinity whenever internet speeds drop significantly below what payed for for as mentioned in https://www.reddit.com/r/technology/comments/43fi39/i_set_up_my_raspberry_pi_to_automatically_tweet
#!/usr/bin/python
import os
import sys
import csv
import datetime
import time
import twitter
def test():
@seraphyn
seraphyn / 00logwatch
Created December 31, 2015 17:53
Encrypt Logwatch with gpg
#!/bin/bash
recipient_email=""
recipient_gpg_pub_key=""
sender_gpg_pub_key=""
file="$(mktemp)"
test -x /usr/share/logwatch/scripts/logwatch.pl || exit 0
/usr/sbin/logwatch --detail high > $file
test -s $file || exit 1
mod_statusbar.create{
screen=0,
pos='bl',
fullsize=false,
systray=true,
template="%date || %>load || E: %netmon_avgin/%netmon_avgout W: %iwinfo_signal %iwinfo_ssid || %exec_tlpbattery %exec_temp || %workspace_pager ||%weather_tempC C %weather_wind || %exec_sera %exec_chris %exec_google PWK: %exec_pwk WP: %exec_wp GAuth: %exec_ggl %systray_dock",
}
mod_statusbar.launch_statusd{
date={
@seraphyn
seraphyn / ttrss-update.service
Created September 17, 2015 12:31
Start TinyTinyRSS update Service with systemd instead using cron.
# This file is part of my tinytinyRSSinstallation
# It is used by systemd under Debian Jessie
# WorkingDirectory=/var/www/html/ttrss must be YOUR Installationpath without
# ending slash /
#
# vim /lib/systemd/system/ttrss-update.service
# systemctl enable ttrss-update.service
# systemctl --system daemon-reload
# systemctl start ttrss-update.service
# systemctl status ttrss-update.service
@seraphyn
seraphyn / style.css
Created June 21, 2015 15:34
Rewritten cleaner style.css for tasks version v0.6
* {
-moz-user-select: -moz-none;
margin: 0;
padding: 0;
text-decoration: none;
}
#content {
overflow: hidden;
color: #423E3E;
background: repeat scroll 0 0 #f3f3f3;
startup_message off
deflogin on
vbell on
vbell_msg " Wuff ---- Wuff!! "
defscrollback 1024
bind ^k
bind ^\
bind \\ quit
bind K kill
bind I login on