Skip to content

Instantly share code, notes, and snippets.

@carepack
carepack / mount.sh
Created March 24, 2020 21:57 — forked from gtato/mount.sh
Mounting and unmounting raw disk images which have one partition
#/dev/loop0 and /dev/loop1 are assumed to be free, otherwise use 'losetup -f' and store the result
losetup /dev/loop0 disk.img
kpartx -as /dev/loop0
losetup /dev/loop1 /dev/mapper/loop0p1
mkdir disk
mount /dev/loop1 disk
@carepack
carepack / .gitignore
Created March 23, 2020 23:54 — forked from atoponce/.gitignore
Simple Compression Benchmarks
cantrbry.tar
cantrbry.tar.*.*
.*.swp
@carepack
carepack / freebsd-bluetooth-mouse.txt
Created March 20, 2020 18:50
Configure FreeBSD Bluetooth Mouse
Add to /boot/loader.conf:
ng_ubt_load="YES"
Add to /etc/rc.conf:
hcsecd_enable="YES"
sdpd_enable="YES"
bthidd_enable="YES"
Reboot, or run:
@carepack
carepack / freebsd-bluetooth-mouse.txt
Created March 20, 2020 18:50
Configure FreeBSD Bluetooth Mouse
Add to /boot/loader.conf:
ng_ubt_load="YES"
Add to /etc/rc.conf:
hcsecd_enable="YES"
sdpd_enable="YES"
bthidd_enable="YES"
Reboot, or run:
@carepack
carepack / PolicyKit.conf
Created March 16, 2020 11:40 — forked from priyadarshan/PolicyKit.conf
FreeBSD 11 notebook installation cheat-sheet
# /usr/local/etc/PolicyKit/PolicyKit.conf
# Allow normal users to mount removable media automatically
<config version="0.1">
<match action="org.freedesktop.hal.storage.mount-removable">
<return result="yes"/>
</match>
<match action="org.freedesktop.hal.storage.mount-fixed">
<return result="yes"/>
</match>
@carepack
carepack / py
Created November 15, 2019 13:18
exercise14
# 15.11.2019
# deduplicate with sets. refactor exercise 5 with sets
import random
# begin function -----------------------------
def list_gen():
get_out = ""
new_list = []
while get_out != "exit":
@COLLECTION{transcript,
editor={Fabo, S. and Kurz, M.},
booktitle={Vielen Dank f{\"u}r Ihren Einkauf},
booksubtitle={Konsumkultur aus Sicht von Design, Kunst und Medien}
}
@INCOLLECTION{dankeeinkauf,
author={Hellmann, K.-U.},
year={2012},
crossref={transcript},
title={Vergemeinschaftung durch Konsum},
### Keybase proof
I hereby claim:
* I am carepack on github.
* I am em_prv (https://keybase.io/em_prv) on keybase.
* I have a public key whose fingerprint is ED02 3D43 0BA3 2ADA 1F2D AC8C E4F1 13E2 99AE 0D32
To claim this, I am signing this object: