Skip to content

Instantly share code, notes, and snippets.

### 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:
@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},
@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":
@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 / 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 / .gitignore
Created March 23, 2020 23:54 — forked from atoponce/.gitignore
Simple Compression Benchmarks
cantrbry.tar
cantrbry.tar.*.*
.*.swp
@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 / tmux-cheatsheet.markdown
Created March 26, 2020 08:07 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@carepack
carepack / tmux-cheats.md
Created March 26, 2020 09:53 — forked from Starefossen/tmux-cheats.md
My personal tmux cheat sheet for working with sessions, windows, and panes. `NB` I have remapped the command prefix to `ctrl` + `a`.

Sessions

New Session

  • tmux new [-s name] [cmd] (:new) - new session

Switch Session

  • tmux ls (:ls) - list sessions
  • tmux switch [-t name] (:switch) - switches to an existing session