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 | |
echo $1 | |
mkdir $1 | |
cd $1 | |
openssl genrsa -out $1.key 2048 | |
openssl req -new -sha256 -key $1.key -out $1.csr |
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/python3 | |
# -*- coding:utf-8 -*- | |
# filename: pwdgen.py | |
import sys | |
import string | |
def main(): | |
if len(sys.argv) > 1: | |
l = int(sys.argv[1]) | |
else: |
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
import json | |
import glob | |
import os | |
import subprocess | |
import sys | |
DATA_FILE = './data.json' | |
VLC_PATH = 'C:/Program Files (x86)/VideoLAN/VLC/vlc.exe' |
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
import os | |
import subprocess | |
import sys | |
from tkinter import Tk | |
from tkinter.filedialog import askopenfilenames | |
import shutil | |
VLC_PATH = 'C:/Program Files (x86)/VideoLAN/VLC/vlc.exe' |
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/env python3 | |
# Data file format (CSV): | |
# Name,Score | |
# Name should be first name first. | |
import csv | |
import sys | |
import time |
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
// startPictureInPicture.js | |
(() => { | |
const getVideos = (doc) => { | |
let videos = Array.from(doc.getElementsByTagName("video")) | |
const iframes = doc.getElementsByTagName("iframe") | |
for (const iframe of iframes) { | |
try { | |
videos = videos.concat(getVideos(iframe.contentDocument)) | |
} catch (e) { |