Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Koen Hendriks koenhendriks

🏠
Working from home
Block or report user

Report or block koenhendriks

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@koenhendriks
koenhendriks / iptables.sh
Created Mar 19, 2019
Snippet openvpn iptables
View iptables.sh
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o venet0 -j MASQUERADE
View keybase.md

Keybase proof

I hereby claim:

  • I am koenhendriks on github.
  • I am koen_hendriks (https://keybase.io/koen_hendriks) on keybase.
  • I have a public key whose fingerprint is 0A1F 0F95 47D3 3CBC E705 673E 85ED 85A6 2630 CCCF

To claim this, I am signing this object:

View .bash_aliases
alias ..="cd .."
alias ...="cd ../.."
alias routes='artisan route:list'
alias h='cd ~'
alias c='clear'
alias art=artisan
alias dump='composer dump-autoload'
alias ide='php artisan clear-compiled && php artisan ide-helper:generate && php artisan optimize'
alias phpspec='vendor/bin/phpspec'
alias phpunit='vendor/bin/phpunit'
@koenhendriks
koenhendriks / Laravel Docroot IspConfig 3.1 Nginx
Last active Mar 26, 2019
Laravel Docroot IspConfig 3.1 Nginx
View Laravel Docroot IspConfig 3.1 Nginx
location / {
root {DOCROOT}public
if ($scheme != "https") {
rewrite ^ https://$http_host$request_uri? permanent;
}
try_files /public/$uri /public/$uri/ /public/index.php?$query_string;
}
@koenhendriks
koenhendriks / TempLCD.ino
Last active Dec 23, 2016
Arduino file for reading temperature and displaying on LCD
View TempLCD.ino
/*
TempLcd.ino
2017 Copyright (c) Koen Hendriks. All right reserved.
Connect LCD:
VCC : 5v
GND : GND
SDA : A4 Arduino
SCL : A5 Arduino
@koenhendriks
koenhendriks / gnomeShot.sh
Last active Sep 21, 2016
Screenshot and upload script
View gnomeShot.sh
!/bin/sh
FILE="$(date +%F_%H-%M-%S)-scrot.png"
gnome-screenshot -f $FILE -a && ~/Documents/screenshot.sh ~/$FILE | xclip -selection clipboard && mv ~/$FILE ~/shots/
View query.sql
create or replace FUNCTION F_MEDIA
(
P_DATE IN VARCHAR2 DEFAULT 24-1-2013
, P_INFLUENCE IN VARCHAR2 DEFAULT 'p'
, P_MEDIATYPE IN VARCHAR2 DEFAULT 'tv'
) RETURN NUMBER AS
CURSOR input is SELECT COUNT(CONTRACTS.CONTRACTDATE)
FROM CONTRACTS, MEDIA
WHERE
@koenhendriks
koenhendriks / countries.json
Created Mar 15, 2016
List of countries with code in JSON format
View countries.json
[
{
"name": "Afghanistan",
"code": "AF"
},
{
"name": "Åland Islands",
"code": "AX"
},
{
View shake.js
javascript:(function(){function c(){var e=document.createElement("link");e.setAttribute("type","text/css");e.setAttribute("rel","stylesheet");e.setAttribute("href",f);e.setAttribute("class",l);document.body.appendChild(e)}function h(){var e=document.getElementsByClassName(l);for(var t=0;t<e.length;t++){document.body.removeChild(e[t])}}function p(){var e=document.createElement("div");e.setAttribute("class",a);document.body.appendChild(e);setTimeout(function(){document.body.removeChild(e)},100)}function d(e){return{height:e.offsetHeight,width:e.offsetWidth}}function v(i){var s=d(i);return s.height>e&&s.height<n&&s.width>t&&s.width<r}function m(e){var t=e;var n=0;while(!!t){n+=t.offsetTop;t=t.offsetParent}return n}function g(){var e=document.documentElement;if(!!window.innerWidth){return window.innerHeight}else if(e&&!isNaN(e.clientHeight)){return e.clientHeight}return 0}function y(){if(window.pageYOffset){return window.pageYOffset}return Math.max(document.documentElement.scrollTop,document.body.scrollTop)}funct
@koenhendriks
koenhendriks / scrap.php
Created Dec 9, 2015
Simple scrapper for deep in radio
View scrap.php
<?php
/**
* Radio Scanner
* Created by: koen
* Date: 12/9/15
* Time: 12:44 PM
*/
require_once('simple_html_dom.php');
You can’t perform that action at this time.