apt install g++
apt install make
apt install libssl1.0-dev
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/python | |
import argparse, glob, os | |
from PIL import Image | |
formats = ["BMP", "DIB", "EPS", "GIF", "ICNS", "ICO", "IM", "JPG", "JPEG", | |
"J2K", "J2P", "JPX", "MSP", "PCX", "PNG", "PPM", "SGI", | |
"SPIDER", "TGA", "TIFF", "WebP", "XBM"] | |
parser = argparse.ArgumentParser(description="Pillow example - batch converter.") | |
parser.add_argument('-outdir', default='.', help='Directory to save converted image files') |
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
package sample; | |
import java.io.InputStream; | |
import java.io.PushbackInputStream; | |
import java.io.InputStreamReader; | |
import java.io.Reader; | |
import java.io.BufferedReader; | |
import java.util.List; | |
import java.util.ArrayList; |
This is a simple script for downloading all attachements from all tickets in Trac. I looked around and found nothing to fit my needs so here is a script I whipped up. It uses BeautifulSoup4
to crawl the pages, and requests
to fetch the content.
$ virtualenv venv
$ . venv/bin/activate
$ pip install -r requirements.txt
Following netplan
creates a virtual bridge br0
connected to interface enp2s0
and both have same mac address (as required by hetzner)
network:
version: 2
renderer: networkd
ethernets:
enp2s0:
match: