//my approach für +null@domain.de
if envelope :detail :matches "to" "null" { discard; stop; }
if not envelope :detail :matches "to" "?*"
unzip -n $1 | |
rm -r Pictures | |
mv BACKUP tmp.db | |
sqlite3 -header -csv tmp.db "SELECT datetime(date, 'unixepoch', 'localtime'), amount*1.0/100, comment, label, name FROM transactions INNER JOIN accounts on accounts._id = transactions.account_id INNER JOIN payee ON payee._id = transactions.payee_id;" > out.csv |
#!/usr/bin/expect -f | |
proc log {msg} { | |
puts $::fh "[timestamp -format {%Y-%m-%d %H:%M:%S}]: $msg" | |
} | |
set ssh_host [lindex $argv 0] | |
set ::fh [open "sshlog.$ssh_host" a] | |
log "{session starts}" |
//my approach für +null@domain.de
if envelope :detail :matches "to" "null" { discard; stop; }
if not envelope :detail :matches "to" "?*"
Lecture 1: Introduction to Research — [📝Lecture Notebooks] [
Lecture 2: Introduction to Python — [📝Lecture Notebooks] [
Lecture 3: Introduction to NumPy — [📝Lecture Notebooks] [
Lecture 4: Introduction to pandas — [📝Lecture Notebooks] [
Lecture 5: Plotting Data — [📝Lecture Notebooks] [[
# The following line will extract every possible `perf` event | |
perf list | grep -i "^ [[:blank:]][[:alnum:]]" | sed -e 's/^[ \t]*//' | sed 's/ .*//' |
#include <iostream> | |
#include <assert.h> | |
#include <cuda.h> | |
#include <cuda_runtime.h> | |
#include <helper_cuda.h> | |
#include <device_launch_parameters.h> | |
#include <curand.h> | |
#include <curand_kernel.h> |
#!/usr/bin/python3 | |
import re | |
from subprocess import Popen, PIPE, STDOUT | |
import argparse | |
test_data = """ptxas info : 218048 bytes gmem, 88 bytes cmem[3] | |
ptxas info : Compiling entry function '_Z12test_fp_zeroIjLj2EEvPT_j' for 'sm_61' | |
ptxas info : Function properties for _Z12test_fp_zeroIjLj2EEvPT_j | |
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads | |
ptxas info : Used 5 registers, 332 bytes cmem[0] |
#ifndef ASSERT | |
#define ASSERT(x) assert(x) | |
#endif | |
/// returns a permutation that shuffles down a mask on 32bit limbs | |
/// e.g INPUT: 0b10000001 | |
/// <- 256 -> | |
/// OUTPUT: [ 0 ,..., 7, 0] | |
/// MSB <-32-> | |
/// <- 8 limbs -> |
#!/usr/bin/env bash | |
if git rev-parse --verify HEAD >/dev/null 2>&1 | |
then | |
against=HEAD | |
else | |
# Initial commit: diff against an empty tree object | |
against=$(git hash-object -t tree /dev/null) | |
fi |
with import <nixpkgs> {}; | |
let | |
riscv = (import <nixpkgs> { | |
crossSystem = { system = "riscv64-linux"; }; | |
}); | |
in | |
stdenv.mkDerivation { | |
name = "dukek"; | |
src = ./.; | |
buildInputs = [ |