Skip to content

Instantly share code, notes, and snippets.

View ni-c's full-sized avatar
🐙

Willi Thiel ni-c

🐙
View GitHub Profile

Keybase proof

I hereby claim:

  • I am ni-c on github.
  • I am ni_c (https://keybase.io/ni_c) on keybase.
  • I have a public key ASC7owXUvSOS0XDOzmZ7-rFiMdYiMCEe4H3TgrwCHxq_vQo

To claim this, I am signing this object:

@ni-c
ni-c / install-zsh.sh
Last active April 21, 2024 19:44
Oh my ZSH powerlevel 9000!
#!/bin/sh
sudo apt-get install git zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k
sed -i -- 's/ZSH_THEME="robbyrussell"/plugins=(virtualenv)\nPOWERLEVEL9K_CUSTOM_LIVE="echo -n \\"\\uf525 LIVE \\uf525\\""\nPOWERLEVEL9K_CUSTOM_LIVE_BACKGROUND="red"\nPOWERLEVEL9K_CUSTOM_LIVE_FOREGROUND="white"\nPOWERLEVEL9K_MODE="nerdfont-complete"\nPOWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(custom_live host dir vcs virtualenv)\nPOWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status root_indicator background_jobs load ram disk_usage time)\nZSH_THEME="powerlevel9k\/powerlevel9k"\nDEFAULT_USER=roamsys\n/g' ~/.zshrc
@ni-c
ni-c / keybase.md
Created February 5, 2015 11:07
keybase.md

Keybase proof

I hereby claim:

  • I am ni-c on github.
  • I am ni_c (https://keybase.io/ni_c) on keybase.
  • I have a public key whose fingerprint is A766 F8A8 D909 B5C7 7D52 71E8 863D 4A63 94C1 6B62

To claim this, I am signing this object:

@ni-c
ni-c / git_cheats.sh
Created September 25, 2014 17:12
git cheats
# Set global gitignore to ~/.gitignore
git config --global core.excludesfile '~/.gitignore'
# Git ignore mode chamges
git config --global core.filemode false
# Enable colors
git config --global color.ui true
# Set your user name and email address with the following commands:
@ni-c
ni-c / watchdog.sh
Last active July 24, 2021 16:53
Raspberry PI Watchdog
sudo modprobe bcm2708_wdog
sudo vi /etc/modules # add line "bcm2708_wdog"
sudo apt-get install watchdog chkconfig
sudo chkconfig watchdog on
sudo service watchdog start
sudo vi /etc/watchdog.conf # enable line "watchdog-device = /dev/watchdog"