Skip to content

Instantly share code, notes, and snippets.


Fabian Offert zentralwerkstatt

View GitHub Profile
zentralwerkstatt /
Last active Aug 7, 2017
Blender, Unreal Engine, Touch Designer

Shortcuts (Blender):

  • Shift + A: New object
  • E: Extrude face, edge, or vertice
  • F: Create face or edge between selected vertices
  • Tab: Edit mode/object mode
  • Ctrl + Tab: Mesh mode
  • S: Scale
  • G: Move
  • R: Rotate
  • Middle button: Rotate view
zentralwerkstatt /
Last active Apr 13, 2018
"The following packes have been kept back..."

sudo apt install packages

zentralwerkstatt /
Created Nov 1, 2018
Update Anaconda environment
  • source activate environment
  • conda update --all
  • df -h: Show disk space for humans
  • scp file user@server:path/file: Transfer file over SSH
  • whereis command: Path to command
  • ssh user@server: Start SSH session (exit with exit)
  • lshw -short: Hardware information for humans
  • ls -lah dir: Show content of directory for humans, including hidden files
  • cd dir: Change directory
  • mkdir: Create directory
  • rm -rf dir: Delete full directory
  • rm file: Delete file
zentralwerkstatt /
Last active Apr 14, 2020
Set up a "GitHub Pages"-style repository on a server
  • On the server:
sudo apt-get install git-core
cd ~
mkdir repo.git
cd repo.git
git init --bare
nano hooks/post-receive
  git --git-dir /home/user/repo/.git --work-tree /home/user/repo pull origin master
chmod +x hooks/post-receive
  • Add user with home directory: sudo useradd -m username
  • As user, change default shell: chsh -s /bin/bash
  • Set temp. password: sudo passwd username
  • Create group: sudo groupadd groupname
  • Add users: usermod -a -G groupname username
  • Make shared directory: sudo mkdir /home/groupname
  • Set group for shared directory: sudo chgrp groupname /home/groupname
  • Add write access for group: sudo chmod g+w /home/groupname
  • "Set GID" for group (all files created owned by group): sudo chmod 2775 /home/groupname
  • Change to different user to test: su - username
  • On the client: ssh-copy-id user@server
  • On the server, in etc/ssh/sshd_config: PasswordAuthentication no
  • sudo apt-get install ufw
  • sudo ufw allow ssh
  • sudo ufw enable
  • sudo apt install fail2ban
zentralwerkstatt /
Last active Aug 20, 2020
Change git history comprehensively
  • On a Mac, we might need to run first: git config --global core.trustctime false
  • Rebase: git rebase -i --root
  • Edit according to instructions
  • Set commit date as author date: git filter-branch -f --env-filter 'GIT_COMMITTER_DATE=$GIT_AUTHOR_DATE; export GIT_COMMITTER_DATE'
  • Force push: git push origin +master
  • In case of errors: git rebase --abort
zentralwerkstatt /
Created Oct 29, 2020
Get contents of S3 bucket
zentralwerkstatt /
Last active Dec 15, 2020
Adapt KDE Plasma scaling to 4K monitor