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
# vim: set ft=systemd: | |
# bpftrace script to monitor access to a file, and delete the file if it's not | |
# used by anyting. Helpful for files that contain credentials. | |
# To use, create a drop-in file with `systemctl edit useitorloseit@<name>` | |
# and define a [Service] block with Environment= lines for at last FILENAME | |
# and FILENAME_LEN. | |
# TODO: find better way to set filename length |
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/env python3 | |
import socket | |
import threading | |
import time | |
STATUS = None | |
def prompt_for_status(): | |
global STATUS |
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
use std::collections::HashMap; | |
#[derive(Debug)] | |
struct Item { | |
name: String, | |
value: i64, | |
} | |
impl Item { | |
fn new(n: &str, v: i64) -> Self { |
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/env python3.7 | |
# take a bunch of Medium URLs, download them, remove the crap and bundle them up into something for your e-reader | |
import lxml | |
import lxml.etree | |
import lxml.builder | |
import requests | |
import io |
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/bash -x | |
${PY:-python3} -m pip download --no-binary :all: $* | |
${PY:-python3} -m pip download $* | |
${PY:-python3} -m pip wheel $* |
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/bash | |
... |
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
*.swp |
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
*.swp | |
*.o | |
*.hi | |
*.txt | |
rwh?? |
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
[Event "Menno vs Joost"] | |
[Site "Cyberspace"] | |
[Date "2016"] | |
[White "Dokter, Menno"] | |
[Black "Molenaar, Joost"] | |
1.e4 d5 2.exd5 Qxd5 3.Nc3 Qa5 4.d4 e6 5.Bd3 Nf6 6.Nf3 Nd5 7.Bd2 Bb4 8.O-O Nxc3 9.bxc3 Bxc3 10.Rb1 Bxd2 11.Qxd2 Qd5 12.c4 Qd7 13.c5 b6 14.Qc3 Bb7 15.Ne5 Qd5 | |
* |
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, os.path | |
import sys | |
SOURCE_DIR = r'c:\users\joost\documents\capella\voorbeelden' | |
# a few useful functions | |
output = lambda s, t='': messageBox(t, str(s)) | |
change_ext = lambda fn, ext: os.path.splitext(fn)[0] + ext | |
copy_mtime = lambda src, tgt: os.utime(tgt, os.stat(src)[7:9]) |
NewerOlder