View tunnel
# .ssh/config | |
Host tunnel-notflip | |
Hostname tunnel.notflip.be | |
User root | |
IdentityFile ~/.ssh/id_rsa | |
RemoteForward 20000 localhost:8000 | |
ServerAliveInterval 30 | |
ServerAliveCountMax 3 | |
# .zshrc (or .bashrc) |
View Dockerfile
FROM php:7.4-fpm-alpine | |
ADD https://raw.githubusercontent.com/mlocati/docker-php-extension-installer/master/install-php-extensions /usr/local/bin/ | |
RUN chmod uga+x /usr/local/bin/install-php-extensions && sync && \ | |
install-php-extensions imagick | |
RUN cd | |
RUN wget https://github.com/google/fonts/archive/master.zip | |
RUN unzip master.zip | |
RUN cp -rvf fonts-master /usr/share/fonts |
View resume.json
{ | |
"basics": { | |
"name": "Miguel Stevens", | |
"label": "Developer", | |
"email": "miguel@notflip.be", | |
"phone": "+32 483 02 99 47", | |
"summary": " ", | |
"location": { | |
"city": "Gent", | |
"countryCode": "BE", |
View gist:fb50e87ce8a670da767d9db805343e06
"content_scripts": [ | |
{ | |
"matches": [ | |
"https://read.amazon.com/*", | |
"file:///*" | |
], | |
"js": [ | |
"js/content.js" | |
], | |
"run_at": "document_start" |
View fizz.php
<?php | |
interface rule | |
{ | |
public function validates(int $number): bool; | |
public function replace(): string; | |
} | |
class IsEvenRule implements Rule | |
{ |
View mouse.py
#!/usr/bin/env python3 | |
import spidev | |
import time | |
import struct | |
spi = spidev.SpiDev() | |
spi.open(0,0) | |
spi.max_speed_hz=100000 | |
deadzone = 20 |
View wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev | |
update_config=1 | |
country=BE | |
network={ | |
ssid="Ssid" | |
psk="Password" | |
key_mgmt=WPA-PSK | |
} |
View data.js
"users": [ | |
"user1": { | |
"id": "user1", | |
"username": "Notflip" | |
} | |
] | |
"categories": [ | |
"category1": { | |
"name": "Productivity", |
View spacing.scss
$grid-breakpoints: ( | |
xs: 0, | |
sm: 576px, | |
md: 768px, | |
lg: 992px, | |
xl: 1200px | |
) !default; | |
$spacer: 20px !default; | |
$spacers: ( |
View run.sh
cat ~/.ssh/id_rsa.pub | ssh -i "#DOMAIN#.pem" ubuntu@ec2-#DOMAIN-IP#.eu-central-1.compute.amazonaws.com "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys" | |
# SSH into the instance | |
ssh -i "#DOMAIN#.pem" ubuntu@ec2-#DOMAIN-IP#.eu-central-1.compute.amazonaws.com | |
# Update Packages and install Nginx | |
sudo apt-get update | |
sudo apt-get install -y nginx composer git | |
# Install and setup MySQL |
NewerOlder