I hereby claim:
- I am rcastellotti on github.
- I am rcastellotti (https://keybase.io/rcastellotti) on keybase.
- I have a public key ASDjljGTAslp-qlT3X31eH8gJNJ9IPdg-pzxa-zTpF5kDgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
url="http://pages.cs.wisc.edu/~remzi/OSTEP/" | |
mkdir ostep | |
cd ostep | |
wget -O "00a Preface.pdf" "${url}preface.pdf" | |
wget -O "00b TOC.pdf" "${url}toc.pdf" | |
wget -O "01 Dialogue.pdf" "${url}dialogue-threeeasy.pdf" | |
wget -O "02 Introduction.pdf" "${url}intro.pdf" |
#!/usr/bin/env bash | |
if [ $# == 0 ]; then | |
echo "Usage: $0 param1 [param2]" | |
echo "* param1: png image (best 512x512)" | |
echo "* param2: folder for images, default: static/" | |
exit | |
fi | |
#check if imagemagick is installed and fail otherwise |
html { | |
font-size: 100%; | |
overflow-y: scroll; | |
-webkit-text-size-adjust: 100%; | |
-ms-text-size-adjust: 100%; | |
} | |
body { | |
color: #444; | |
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; |
#!/bin/bash | |
url="https://cacr.uwaterloo.ca/hac/about/" | |
mkdir hac | |
cd hac | |
wget -O "00 TOC.pdf" "${url}toc3.pdf" | |
wget -O "01 Overview of cryptograpy.pdf" "${url}chap1.pdf" | |
wget -O "02 Mathematics Background.pdf" "${url}chap2.pdf" | |
wget -O "03 Number-Theoretic Reference Problems.pdf" "${url}chap3.pdf" |
// ==UserScript== | |
// @name RCS sane rankings | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Show full rankings on RCS websites | |
// @author @rcastellotti | |
// @match https://www.milanosanremo.it/* | |
// @match https://www.ilombardia.it/* | |
// @match https://www.strade-bianche.it/* | |
// @match https://www.tirrenoadriatico.it/* |
@app.route("/orders", methods=["GET", "POST"]) | |
def orders(): | |
orders = Order.query.all() | |
return render_template("orders.html", orders=orders) |
from urllib.request import urlopen | |
import subprocess | |
import json | |
import argparse | |
def download(url): | |
with urlopen(url.replace(".html", ".json")) as response: | |
body = response.read() | |
payload = json.loads(body) |
import subprocess | |
def run_fio_test(machine, filename, iodepth, rw, bs, numjobs): | |
name = f"{machine}-{rw}-{bs}-{numjobs}-{iodepth}" | |
command = [ | |
"fio", | |
"--name=" + name, | |
"--filename=" + filename, | |
"--iodepth=" + str(iodepth), | |
"--rw=" + rw, |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>rcastellotti - boilerplate</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.9.1/font/bootstrap-icons.css" /> | |
<script src="https://cdn.tailwindcss.com?plugins=forms,typography,aspect-ratio"></script> | |
<script> |