Skip to content

Instantly share code, notes, and snippets.

View cfstras's full-sized avatar

Claus F. Strasburger cfstras

  • Düsseldorf, Germany
  • 09:41 (UTC +02:00)
View GitHub Profile
@cfstras
cfstras / _Notes for M1 Mac.md
Last active January 19, 2022 15:25
Notes for ARM

Notes for OSX on ARM M1 Macs

Here are some notes I am keeping on how I set up a development environment on my M1 mac.

Note: All of these should not be necessary anymore!

Rosetta

softwareupdate --install-rosetta
@cfstras
cfstras / _Styling for Tree Style Tab.md
Last active January 30, 2024 17:13
My Firefox styling for Tree Style Tab
@cfstras
cfstras / Installing tcpdump on an arm device without package manager.md
Last active May 14, 2024 19:29
Installing tcpdump on an arm device without package manager
DEVICE=1.2.3.4
MIRROR=http://archives.fedoraproject.org/pub/archive/fedora/linux/releases
FEDORA=29
FILE=tcpdump-4.9.2-6.fc29.armv7hl.rpm  
PACKAGE=Everything/armhfp/os/Packages/t/$FILE

wget $MIRROR/$FEDORA/$PACKAGE

# see https://gist.github.com/cfstras/4856e48fd4d68eb7debaa20d5e63c6de
@cfstras
cfstras / Git Config Helpers.md
Last active April 29, 2020 21:51
Git config helpers

Some config helpers for git

~/.gitconfig:

[alias]

# my lazyness
	git = !git # git git git checkout
	ad = add
	ada = add
@cfstras
cfstras / _Setting up your own DynDns server for Fritz!Box.md
Last active December 19, 2020 15:17
Setting up your own DynDns server for Fritz!Box
@cfstras
cfstras / setup_vpn_pi.md
Last active June 16, 2021 21:12
Setting up an OpenVPN Raspberry Pi for client devices
@cfstras
cfstras / shoot
Last active July 22, 2019 11:55
screenshot script
#!/bin/bash
#
# By Sirupsen @ http://sirupsen.dk
# Small changes by cfstras <c@cfs.im>
#
# Description: Very simple script to make you
# select a region of your screen, which will be captured, and
# then uploaded. The URL will then be injected into your clipboard.
#
# Dependencies:
@cfstras
cfstras / .bashrc
Last active July 3, 2019 11:52
Bash configuration for better history archive
# first, install fzf
# https://github.com/junegunn/fzf
# Windows:
# choco install fzf
# Arch:
# sudo pacman -S fzf
# Mac:
# brew install fzf
# $(brew --prefix)/opt/fzf/install
@cfstras
cfstras / Windows Docker on Mac.md
Last active June 5, 2019 12:25
Installing a Windows based Docker host in a Vagrant VM

For mac and linux

  • install vagrant docker-machine with windows
# Mac:
brew cask install vagrant
# Linux (Debian):
apt-get install vagrant
@cfstras
cfstras / watch-output.sh
Last active March 26, 2019 17:39
Simple bash function to watch the output of a command and show it when the output changes
function watch_change() {
local stat
local oldstat
local lasttime
lasttime=$SECONDS
while true; do
stat="$(eval "$@")"
if [[ "$stat" != "$oldstat" ]]; then
oldstat="$stat"
diff=$((SECONDS-lasttime))