Skip to content

Instantly share code, notes, and snippets.

View darwin67's full-sized avatar
💻
¯\_(ツ)_/¯

Darwin darwin67

💻
¯\_(ツ)_/¯
View GitHub Profile
@darwin67
darwin67 / async-test-failure.txt
Last active April 17, 2021 08:47
`begin_test_transaction` panic stacktrace in async tests
❯ make test
DATABASE_URL="postgres://postgres:@localhost:5432/async_test" diesel setup
DATABASE_URL="postgres://postgres:@localhost:5432/async_test" cargo test
Finished test [unoptimized + debuginfo] target(s) in 0.05s
Running target/debug/deps/asynctest-351e50735a0fa6ea
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
@darwin67
darwin67 / keybase.md
Created March 26, 2020 18:35
keybase.md

Keybase proof

I hereby claim:

  • I am darwin67 on github.
  • I am darwin67 (https://keybase.io/darwin67) on keybase.
  • I have a public key ASC722UGaOqaUDGHFinYHkT05RNCSntG761x3xYqJEQ4hQo

To claim this, I am signing this object:

@darwin67
darwin67 / arch.md
Last active July 22, 2022 03:08
Arch installation
@darwin67
darwin67 / wait_for_dpkg
Created July 20, 2019 19:11
Simple script to wait for apt upgrade to finish, triggered by apt-daily.timer on server boot
#!/bin/bash
i="0"
while [ $i -lt 10 ]
do
if [ $(fuser /var/lib/dpkg/lock) ]; then
i="0"
fi
sleep 1
@darwin67
darwin67 / vagrant_libvirt.sh
Last active October 13, 2018 07:53
Vagrant + libvirt
#!/bin/bash
#
# Tested on Ubuntu 18.04
sudo apt update -y
sudo apt install libvirt-bin libvirt-dev qemu-utils qemu
# restart libvirt-bin
sudo systemctl restart libvirt-bin.service