Skip to content

Instantly share code, notes, and snippets.

View ckoepp's full-sized avatar

Christian Koepp ckoepp

View GitHub Profile
@ckoepp
ckoepp / i3lock
Created January 1, 2018 11:27
custom wrapper for i3lock with blurry screenshot
#!/bin/bash
TEMP_DIR=$(mktemp -d)
ORIG_SCREENSHOT_PATH="$TEMP_DIR/orig.png"
import -window root -display :0 $ORIG_SCREENSHOT_PATH
convert $ORIG_SCREENSHOT_PATH -filter Gaussian -resize 50% -define filter:sigma=1.6 -resize 200% $ORIG_SCREENSHOT_PATH
i3lock -i $ORIG_SCREENSHOT_PATH -t -f -e -p win -c 000000
rm -rf $TEMP_DIR
@ckoepp
ckoepp / change_mac_address
Last active March 16, 2023 23:34
A small bash script to change a mac address - includes one line of Python to generate random numbers.
#!/bin/bash
# The MIT License (MIT)
#
# Copyright (c) 2014 Christian Koepp <christian.koepp@tum.de>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the 'Software'), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@ckoepp
ckoepp / isso
Created December 29, 2016 15:51
FreeBSD rc.d script for isso
#!/bin/sh
#
# PROVIDE: isso
# REQUIRE: networking
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable isso:
#
# isso_enable (bool): Set to "NO" by default.