Skip to content

Instantly share code, notes, and snippets.

Avatar

Simon Herbert simonherbert

  • Muenster, Germany
View GitHub Profile
@simonherbert
simonherbert / arch_setup.sh
Created Apr 9, 2017
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
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 / 1_install_bind9_ubuntu
Last active Jan 23, 2018
Example file for bind9 with domain shop.example.com
View 1_install_bind9_ubuntu
apt update
apt install bind9 -y
View unlock_unitymedia_wifispot_bullshit
#!/bin/bash
curl 'http://172.29.81.102/index.php?client_mac=[YOUR_CLIENT_MAC]&ap=[YOUR_CONNECTBOX_MAC]' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Connection: keep-alive' -H 'Cookie: PHPSESSID=shu13cvtsdiotbhutos101ao74' -H 'Upgrade-Insecure-Requests: 1'
curl 'http://172.29.81.102/index.php?acceptTOC=1' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: http://172.29.81.102/index.php?client_mac=08:00:27:3A:8F:D3&ap=38:43:7D:DA:4F:1B' -H 'Connection: keep-alive' -H 'Cookie: PHPSESSID=shu13cvtsdiotbhutos101ao74' -H 'Upgrade-Insecure-Requests: 1' -H 'Pragma: no-cache' -H 'Cache-Control: no-cache'
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
You can’t perform that action at this time.