Skip to content

Instantly share code, notes, and snippets.

@Chaos99
Chaos99 / keybase.md
Created September 10, 2016 12:44
keybase.io verification

Keybase proof

I hereby claim:

  • I am chaos99 on github.
  • I am chaos_99 (https://keybase.io/chaos_99) on keybase.
  • I have a public key ASB68e4olQ_XxKtTgdMD9A5jku_SCWOdeUzJDi1rri6cPAo

To claim this, I am signing this object:

from datetime import datetime
import locale
from bs4 import BeautifulSoup
import requests
def getStopDate():
''' reads the category feed for bytespeicher notizen and gets the last publication date '''
website = requests.get('https://bytespeicher.org/category/bytespeicher-notizen/feed/')
html_source = website.text
@Chaos99
Chaos99 / notebook.ipynb
Created July 29, 2016 22:18
bytespeicher training example
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Chaos99
Chaos99 / deletefilefrombtrfssnapshots.sh
Created January 12, 2015 23:39
searches for a file or folder in all btrfs snapshots and prompts to delete them all (not working atm)
#!/bin/bash
LIST=()
BASEDIR=$1
SEARCH=$2
FIND=$(/usr/bin/find $BASEDIR -maxdepth 1 -mindepth 1 -type d)
BTRFS="/sbin/btrfs"
echo "Scanning timeline:"
for snapshot in $FIND ; do
@Chaos99
Chaos99 / deleteemptysnapshots.sh
Created January 12, 2015 22:42
shell script to find btrfs snapshots that are empty or not valid (contain no "snapshot" sub-folder) and delete them
#!/bin/bash
LIST=()
BASEDIR=$1
FIND=$(/usr/bin/find $BASEDIR -maxdepth 1 -mindepth 1 -type d)
BTRFS="/sbin/btrfs"
echo "Scanning timeline:"
for snapshot in $FIND ; do
# echo "$snapshot"