Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* An helper file for Laravel 4, to provide autocomplete information to your IDE
* Generated with https://github.com/barryvdh/laravel-ide-helper
* Updated for Laravel 4.1.8 (2013-12-13)
*
* @author Barry vd. Heuvel <[email protected]>
*/
exit('Only to be used as an helper for your IDE');
@allebb
allebb / pdns.conf
Last active May 1, 2019 01:28
An example of my master PowerDNS configuration file.
# Autogenerated configuration file template
#################################
# allow-axfr-ips If enabled, restrict zonetransfers to originate from these
# IP addresses
#
allow-axfr-ips=10.0.0.2
#################################
# allow-recursion List of netmasks that are allowed to recurse
#
@allebb
allebb / pdns.conf
Created February 16, 2014 16:02
An example of one of the slave PDNS configuration files found in /etc/powerdns/pdns.conf
# Autogenerated configuration file template
#################################
# allow-axfr-ips If enabled, restrict zonetransfers to originate from these
# IP addresses
#
# allow-axfr-ips=
#################################
# allow-recursion List of netmasks that are allowed to recurse
#
@allebb
allebb / supportly.sh
Last active August 29, 2015 13:56
Bash Script for auto provisioning of the Supportly Applicaiton.
#!/usr/bin/env bash
echo ">>> Installing Supportly Customisations..."
laravel_root_folder="/vagrant"
# Test if Composer is installed
composer --version > /dev/null 2>&1
COMPOSER_IS_INSTALLED=$?
@allebb
allebb / gist:9375034
Created March 5, 2014 19:45
BindHub specific configuration.
#!/usr/bin/env bash
echo ">>> Installing BindHub specific customisations..."
laravel_root_folder="/vagrant"
# Test if Composer is installed
composer --version > /dev/null 2>&1
COMPOSER_IS_INSTALLED=$?
@allebb
allebb / web.config
Last active March 10, 2022 05:26
Laravel 5.x web.config file for Windows Azure hosting
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<urlCompression doDynamicCompression="true" doStaticCompression="true" dynamicCompressionBeforeCache="true"/>
<staticContent>
<remove fileExtension=".svg" />
<mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
<mimeMap fileExtension=".woff" mimeType="application/font-woff" />
<clientCache httpExpires="Sun, 29 Mar 2020 00:00:00 GMT" cacheControlMode="UseExpires" />
</staticContent>
@allebb
allebb / compass-cardinal
Created August 16, 2016 15:21 — forked from adrianstevens/compass-cardinal
Compass heading to cardinal direction in c#
public static string DegreesToCardinal(double degrees)
{
string[] caridnals = { "N", "NE", "E", "SE", "S", "SW", "W", "NW", "N" };
return caridnals[ (int)Math.Round(((double)degrees % 360) / 45) ];
}
public static string DegreesToCardinalDetailed(double degrees)
{
string[] caridnals = { "N", "NNE", "NE", "ENE", "E", "ESE", "SE", "SSE", "S", "SSW", "SW", "WSW", "W", "WNW", "NW", "NNW", "N" };
return caridnals[ (int)Math.Round(((double)degrees*10 % 3600) / 225) ];
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.