by Timo Stankowitz [email protected]
sudo su
apt update -y
apt install openvpn -y
# place the file @ /etc/systemd/system/firewall.service | |
# autostart the firewall with systemctl enable firewall | |
[Unit] | |
Description=Firewall | |
[Service] | |
Type=oneshot | |
ExecStart=/root/firewall.sh start | |
ExecStop=/root/firewall.sh stop |
by Timo Stankowitz [email protected]
sudo su
apt update -y
apt install openvpn -y
FROM ubuntu:18.04 | |
LABEL maintainer="Timo Stankowitz <[email protected]>" | |
# no interaction for tzdata | |
ENV DEBIAN_FRONTEND=noninteractive | |
ENV TZ=Europe/Berlin | |
RUN apt-get update && apt-get upgrade -y | |
RUN apt-get install -y php |
by Timo Stankowitz [email protected]
The latest version of Laravel with Apache webserver in just one Docker container.
If you have any questions of any suggestions just reach out to me.
Don't create an extra directory. Comperser will do this for you. The folder name will be project-name (change to your actual project name).
#!/bin/bash | |
# how to setup GPIO on Raspberry Pi | |
sudo su | |
apt-get install python3-pip | |
pip3 install RPi.GPIO | |
pip3 install requests |
# git stuff | |
alias gs="git status" | |
alias gl="git log" | |
alias gpl="git pull" | |
alias gpu="git push" | |
alias gad="git add" | |
alias gcm="git commit" |
import requests | |
import json | |
def lambda_handler(event, context): | |
url = "https://api.example.com/alexa.php" | |
r = requests.post(url, data=json.dumps(event)) | |
return r.json() | |
Written by Timo Stankowitz [email protected] on 2018-03-19. The installation was tested on a RPI2 running Raspbian 9.
Note: Radius uses UDP and not TCP
sudo su
apt update
apt upgrade -y
#!/bin/bash | |
# author: Timo Stankowitz <[email protected]> | |
# create date: 2017-12-04 | |
# last modify: 2017-12-04 | |
# version: 1 | |
# You can use this script to modify port 22 of your aws security-group. | |
# usage: | |
# first check if port 22 is open for everyone: ./manage-vpn-security-group.sh check-port |