Skip to content

Instantly share code, notes, and snippets.

View sunoru's full-sized avatar
🎵
Freely Living, Happily Coding

スノル sunoru

🎵
Freely Living, Happily Coding
View GitHub Profile
#!/bin/sh
echo $1
mkdir $1
cd $1
openssl genrsa -out $1.key 2048
openssl req -new -sha256 -key $1.key -out $1.csr
#!/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:
import json
import glob
import os
import subprocess
import sys
DATA_FILE = './data.json'
VLC_PATH = 'C:/Program Files (x86)/VideoLAN/VLC/vlc.exe'
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'
@sunoru
sunoru / auto_canvas_grade.py
Last active October 22, 2019 18:17
Automatically input grading on canvas..
#!/bin/env python3
# Data file format (CSV):
# Name,Score
# Name should be first name first.
import csv
import sys
import time
// 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) {