I hereby claim:
- I am fmartingr on github.
- I am fmarting (https://keybase.io/fmarting) on keybase.
- I have a public key ASD16cP6OjNtkvzWMFIDr3VpJRY8WDlXPZntn64dJC6Rjwo
To claim this, I am signing this object:
from sys import stdout | |
class Colors: | |
HEADER = '\033[95m' | |
BLUE = '\033[94m' | |
GREEN = '\033[92m' | |
YELLOW = '\033[93m' | |
RED = '\033[91m' | |
END = '\033[0m' |
#!/bin/sh | |
# Extracting URLs from the exported HTML from getpocket.com/export | |
# In the following line $1 is the exported HTML from pocket | |
# which will be passed to this script as a CLI parameter | |
grep -Eoi '<a [^>]+>' $1 | grep -Eo 'href="[^\"]+"' | cut -d'=' -f 2- | tr -d '"' | tac > pocket2shiori.txt | |
# Reading the URLs one by one and adding to shiori | |
while IFS= read -r line; do | |
shiori add $line |
B7ED7A66C80B4B008BAF7F0589C08224 | |
All the cool kids post mysterious RNG seeds. | |
This isn't anything particularly useful or important, uncovered ages ago but apparently there are still 0 google search results for it. | |
First, I guess. |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# pip install github3 | |
import github3 | |
USERNAME = "" | |
TOKEN = "" | |
gh = github3.login(username=USERNAME, token=TOKEN) |
#!/bin/bash | |
TMPFILE='/tmp/rofi-dmenu-taskwarrior' | |
task rofi rc.verbose=nothing > $TMPFILE | |
TASK=`rofi -dmenu -p "Task: " -i -input $TMPFILE` | |
TASK_ID=`echo $TASK | cut -f1 -d' '` |
# Youtube ads | |
ad.youtube.com | |
ads.youtube.com | |
r4---sn-vgqs7nez.googlevideo.com | |
r4.sn-vgqs7nez.googlevideo.com | |
www.youtube-nocookie.com | |
i1.ytimg.com | |
r17---sn-vgqsenes.googlevideo.com | |
r2---sn-vgqs7n7k.googlevideo.com | |
clients6.google.com |
import re | |
class BashDict(dict): | |
variable_regex = r'(\$\{([\w\d\_]+)\})' | |
default_return = '' | |
def _parse_variables(self, value): | |
if '${' in value: | |
def replace(match): |
#!/usr/bin/env python | |
import requests | |
from xml.etree import ElementTree | |
url = 'http://s122-es.ogame.gameforge.com/api/universe.xml' | |
response = requests.get(url) | |
universe = ElementTree.fromstring(response.content) |