This is a reading note, hope it was helpful.
Please keep it in your mind
- Purpose
- To Inform
- To Request
- To Persuade
- To Suggest or Recommend
import re | |
from github import Github | |
# First create a Github instance: | |
# using an access token | |
g = Github("") | |
# Github Enterprise with custom hostname |
#!/bin/bash | |
mkdir -p RSAKeypairs SM2Keypairs AESKeypairs SM4Keypairs | |
for i in $(seq -w 0 40) | |
do | |
echo "No. $i" | |
echo "create 2048/Short RSA KEY" | |
openssl genrsa -out ./RSAKeypairs/sh_hsm_supplement_rsa_short_private_$i.pem 2048 |
This guide is unmaintained and was created for a specific workshop in 2017. It remains as a legacy reference. Use at your own risk.
Workshop Instructor:
This workshop is distributed under a CC BY-SA 4.0 license.
I hereby claim:
To claim this, I am signing this object:
import sys,os | |
import curses | |
def draw_menu(stdscr): | |
k = 0 | |
cursor_x = 0 | |
cursor_y = 0 | |
# Clear and refresh the screen for a blank canvas | |
stdscr.clear() |
Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)
That's it!
Here's a few things I tried to write output to a python subprocess pipe.
from subprocess import Popen, PIPE
p = Popen('less', stdin=PIPE)
for x in xrange(100):
p.communicate('Line number %d.\n' % x)
import os | |
import time | |
import rawpy | |
import click | |
import imageio | |
import argparse | |
from concurrent.futures import ProcessPoolExecutor | |
def neftojpeg(path): |