Skip to content

Instantly share code, notes, and snippets.

View simonherbert's full-sized avatar

Simon Herbert simonherbert

  • skillbyte GmbH
  • Cologne, Germany
View GitHub Profile
@simonherbert
simonherbert / gist:ee11c2b6f04d90db471620c52bbc5f09
Created July 25, 2023 18:44
conda-disable-displaying-environment
View gist:ee11c2b6f04d90db471620c52bbc5f09
conda config --set changeps1 False
@simonherbert
simonherbert / gist:8f54cb0692bfccbe3d3fd3b81143a137
Created September 22, 2022 06:25
best macos key repeat settings
View gist:8f54cb0692bfccbe3d3fd3b81143a137
defaults write -g InitialKeyRepeat -int 15
defaults write -g KeyRepeat -int 1
@simonherbert
simonherbert / kubernetes-install.sh
Created December 6, 2019 21:59
Kubernetes-install
View kubernetes-install.sh
#!/bin/bash
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
cat << EOF | sudo tee /etc/apt/sources.list.d/kubernetes.list
deb https://apt.kubernetes.io/ kubernetes-xenial main
EOF
sudo apt-get update
@simonherbert
simonherbert / 1_install_bind9_ubuntu
Last active January 23, 2018 18:20
Example file for bind9 with domain shop.example.com
View 1_install_bind9_ubuntu
apt update
apt install bind9 -y
View cmder.xml
<?xml version="1.0" encoding="utf-8"?>
<key name="Software">
<key name="ConEmu">
<key name=".Vanilla" modified="2017-07-26 21:51:58" build="161206">
<value name="StartType" type="hex" data="02"/>
<value name="CmdLine" type="string" data=""/>
<value name="StartTasksFile" type="string" data=""/>
<value name="StartTasksName" type="string" data="{Shells::cmd}"/>
<value name="StartFarFolders" type="hex" data="00"/>
<value name="StartFarEditors" type="hex" data="00"/>
@simonherbert
simonherbert / arch_setup.sh
Created April 9, 2017 20:35
Small bash script for my post installation of arch linux. Not yet tested;try on your own risk.
View arch_setup.sh
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
echo LANG=de_DE.UTF-8 > /etc/locale.conf
echo LC_COLLATE=C >> /etc/locale.conf
echo LANGUAGE=de_DE >> /etc/locale.conf
echo KEYMAP=de-latin1 > /etc/vconsole.conf
echo FONT=lat9w-16 >> /etc/vconsole.conf
ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime