Skip to content

Instantly share code, notes, and snippets.

@Koenvh1
Koenvh1 / FlitsLogic.php
Last active December 11, 2017 12:33
The logic behind Flitsmelder (https://koenvh.nl/flitsmelder), a system that notifies you when a mobile radar is on your route. This is just the logic to check whether a radar is in range.
<?php
/**
* Class FlitsLogic
*
* Class to get radars from flitsservice.nl, and parse the points to check whether they are within a certain distance.
*
* @author Koen van Hove
* @license MIT
* (Though it would be really nice if you left a message if you decided to use this, and perhaps even credited me)
*/
@markvds
markvds / ExcelWriter.php
Created September 3, 2014 13:44
Excel Writer
<?php
/**
* Simple excel generating from PHP5
*
* @package Utilities
* @license http://www.opensource.org/licenses/mit-license.php
* @author Oliver Schwarz <oliver.schwarz@gmail.com>
* @version 1.0
*/
@soarez
soarez / ca.md
Last active April 22, 2024 03:01
How to setup your own CA with OpenSSL

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.

@peterjaap
peterjaap / quickmodman
Created January 16, 2013 10:52
Quickly generate modman file for Magento extensions
for i in `find . -type f | grep -v \.git | grep -v "^.$" | grep -v "modman" | sed 's/\.\///'`; do echo ${i} ${i}; done > modman
@GUI
GUI / install_vagrant_sudoers.sh
Created June 3, 2012 19:13 — forked from beddari/install_vagrant_sudoers.sh
Allow Vagrant sudo-access without password for NFS-setup (for OS X)
#!/bin/bash
# Script for placing sudoers.d files with syntax-checking
# Making a temporary file to contain the sudoers-changes to be pre-checked
TMP=$(mktemp -t vagrant_sudoers)
cat /etc/sudoers > $TMP
cat >> $TMP <<EOF
# Allow passwordless startup of Vagrant when using NFS.
Cmnd_Alias VAGRANT_EXPORTS_ADD = /usr/bin/su root -c echo '*' >> /etc/exports