Here are some notes I am keeping on how I set up a development environment on my M1 mac.
softwareupdate --install-rosetta
See https://superuser.com/a/1424494/118213 for finding where to put this file.
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
Some config helpers for git
~/.gitconfig
:
[alias]
# my lazyness
git = !git # git git git checkout
ad = add
ada = add
Based on https://controlc.de/2013/09/10/debian-selbstgehosteter-dyndns-dienst/ and https://github.com/Josef-Friedrich/dyndns
For debian 10
apt install -y bind9 bind9-host bind9utils dnsutils unattended-upgrades vim
echo unattended-upgrades unattended-upgrades/enable_auto_updates boolean true | debconf-set-selections
dpkg-reconfigure -f noninteractive unattended-upgrades
So you can find your host via NetBIOS later on:
smbutil lookup my-pi
ping my-pi
apt-get install libnss-windbind
, also https://serverfault.com/questions/352305/why-can-windows-machines-resolve-local-names-when-linux-cantping my-pi
#!/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: |
# 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 |
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)) |