This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
INFILE="input_video.mp4" | |
FPS=30 | |
get_seconds() { | |
local seconds=0 | |
IFS=":" read -ra T <<< "$1" | |
for x in "${T[@]}"; do | |
seconds=$(echo "$seconds * 60 + $x" | bc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import lxml.html | |
import urllib.request | |
from pathlib import Path | |
import requests | |
telegram_bot_token = "FIXME" | |
telegram_group_name = "@kvetinac" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import subprocess | |
import json | |
import os | |
from pathlib import Path | |
import requests | |
from requests.compat import urljoin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from hashlib import sha1 | |
from base64 import b32encode | |
import csv | |
from collections import OrderedDict | |
from itertools import zip_longest | |
import dns.name | |
from dns.rdtypes.ANY.NSEC3 import b32_normal_to_hex |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import subprocess | |
import youtube_dl | |
import click | |
from pprint import pprint | |
@click.command() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import gzip | |
import hashlib | |
import sys | |
from collections import defaultdict | |
def read_db_dump(fname="ripe.db.domain.gz"): | |
obj = None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import ssl | |
import socket | |
from pathlib import Path | |
def get_cert_hostnames(): | |
path = Path("~/.certspotter/certs/").expanduser() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
SCREEN_SIZE="1920x1080" | |
ORIGIN="0,0" | |
# For dual screen setup where projected is on the right side of the desktop: | |
#ORIGIN="1920,0" | |
ffmpeg -vaapi_device /dev/dri/renderD128 -framerate 25 -video_size $SCREEN_SIZE \ | |
-f x11grab -i :0+$ORIGIN -f pulse -ac 2 -i default -vf 'format=nv12,hwupload' \ | |
-c:v h264_vaapi -c:a aac screencast-$(date +%H%M%S).mkv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python2 | |
import pygtk | |
pygtk.require('2.0') | |
import gtk | |
import glib | |
import cairo | |
import math | |
import datetime | |
# Create a GTK+ widget on which we will draw using Cairo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import requests | |
import json | |
log_list = "https://www.gstatic.com/ct/log_list/log_list.json" | |
logs = requests.get(log_list).json() | |
outlogs = [] | |
for log in logs["logs"]: |