Skip to content

Instantly share code, notes, and snippets.

View jaedle's full-sized avatar

Dennis Wielepsky jaedle

  • Germany
  • 19:47 (UTC +01:00)
View GitHub Profile
wget http://fars-robotics.net/install-wifi
mv install-wifi /usr/local/sbin/install-wifi
chmod +x /usr/local/sbin/install-wifi
install-wifi
@jaedle
jaedle / hub example
Created September 8, 2018 06:01
Create pull request and merge through cli
# Create branch
git create-branch feature/123456 -r
# do stuff
git touch 1
git commit -m 'Finished feature'
git push
# merge master to branch
git pull
@jaedle
jaedle / install_pivpn.sh
Created October 9, 2018 12:33 — forked from EWouters/install_pivpn.sh
Example unattended pivpn install
do_install_pivpn() {
#curl -L https://install.pivpn.io | bash
setupVars=/etc/pivpn/setupVars.conf
if [ -e "${setupVars}" ]; then
sed -i.update.bak '/pivpnUser/d;/UNATTUPG/d;/pivpnInterface/d;/IPv4dns/d;/IPv4addr/d;/IPv4gw/d;/pivpnProto/d;/PORT/d;/ENCRYPT/d;/DOWNLOAD_DH_PARAM/d;/PUBLICDNS/d;/OVPNDNS1/d;/OVPNDNS2/d;/SERVER_NAME/d;' "${setupVars}"
else
mkdir -p /etc/pivpn
touch "${setupVars}"
fi
@jaedle
jaedle / raspberry-pi-vpn-router.md
Last active October 10, 2018 02:43 — forked from superjamie/raspberry-pi-vpn-router.md
Raspberry Pi VPN Router

Raspberry Pi VPN Router

This is a quick-and-dirty guide to setting up a Raspberry Pi as a "router on a stick" to PrivateInternetAccess VPN.

Requirements

Install Raspbian Jessie (2016-05-27-raspbian-jessie.img) to your Pi's sdcard.

Use the Raspberry Pi Configuration tool or sudo raspi-config to:

@jaedle
jaedle / CMakeLists.txt
Created October 24, 2018 03:41 — forked from adrien-f/CMakeLists.txt
CLion and Arduino via Platform.io
cmake_minimum_required(VERSION 3.2)
project(YourProject)
add_subdirectory(src)
add_subdirectory(lib)
@jaedle
jaedle / homebridge
Created October 28, 2018 13:31 — forked from johannrichard/homebridge
Systemd Service for homebridge (http://github.com/nfarina/homebridge)
# Defaults / Configuration options for homebridge
# The following settings tells homebridge where to find the config.json file and where to persist the data (i.e. pairing and others)
HOMEBRIDGE_OPTS=-U /var/lib/homebridge
# If you uncomment the following line, homebridge will log more
# You can display this via systemd's journalctl: journalctl -f -u homebridge
# DEBUG=*
@jaedle
jaedle / docker-compose.yml
Created November 17, 2018 13:17 — forked from garycrawford/docker-compose.yml
MongoDB Replica Set docker-compose.yml
primary:
image: mongo:3.0
volumes:
- ./p:/data
ports:
- "27017:27017"
# Our current version of docker-compose doesn't allow extra_hosts which would be the best way
# to add curcular dependency container links in this case. We cant upgrade docker-compose
# without upgrading docker to 1.7, and we can't do that without upgrading the kernel on our
# CentOS VM's. As such we are using the hostname hask below to allow primary and secondary
@jaedle
jaedle / Setup
Last active May 1, 2019 20:25
Homeaudio setup
Homeaudio setup draft
Rooms:
in ASC order im importance: (x for proof of concept)
x Kitchen
- Living room
x Upper level
- Bath
- Sleeping room
@jaedle
jaedle / start-homebridge.sh
Last active December 29, 2019 16:18
start homebridge docker container
#!/usr/bin/env bash
SCRIPT="$(readlink -f "$0")"
SERVICE_PATH="$(dirname "$SCRIPT")"
docker container run \
--name homebridge \
--restart always \
--mount type=bind,source="$SERVICE_PATH/config",target=/homebridge/config \
-d \