This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# m h dom mon dow command | |
*/1 * * * * /home/alex/connectivity.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="jg-widget-ksbcycles100miles-327"></div> | |
<script> | |
(function() { | |
var id = "jg-widget-ksbcycles100miles-327", | |
doc = document, | |
pfx = (window.location.toString().indexOf("https") == 0) ? "https" : "http"; | |
var el = doc.getElementById(id); | |
if (el) { | |
var js = doc.createElement('script'); | |
js.src = pfx + "://widgets.justgiving.com/fundraisingpage/ksbcycles100miles?enc=ZT1qZy13aWRnZXQta3NiY3ljbGVzMTAwbWlsZXMtMzI3Jnc9NDAwJmI9aW1hZ2UsZG9uYXRlLGZ1bmRyYWlzZSZpYj10aXRsZSxzdW1tYXJ5LHByb2dyZXNzLHJhaXNlZCx0YXJnZXQ%3D"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var rewriteRulesSnippet = require("grunt-connect-rewrite/lib/utils").rewriteRequest; | |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
uglify: { | |
options: { | |
banner: '/*! <%= pkg.name %> <%= grunt.template.today("dd-mm-yyyy") %> */\n' | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// =============================================================== [ Logging ] ==== | |
var colors = require('colors'); | |
var moment = require('moment'); | |
log = { | |
level: 3, | |
console : function(level, prefix, title, message) { | |
var timestamp = moment().format('HH:MM:ss'); | |
if(level <= log.level && process.env.NODE_ENV !== "test" && title !== '') return console.log(prefix + ' ' + timestamp.grey + ' : ' + title.bold + ' ' + message); | |
if(level <= log.level && process.env.NODE_ENV !== "test") return console.log(prefix + ' ' + timestamp.grey + ' : ' + message); | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Create a plain request - Working | |
$request = Request::create('{API_ENDPOINT}', 'GET'); | |
$response = Route::dispatch($request)->getContent(); | |
// Create a request with secret in header | |
$request = Request::create('{API_ENDPOINT}', 'GET'); | |
$headers = new Symfony\Component\HttpFoundation\HeaderBag(array('secret' => 'A_LONG_SECRET_KEY')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
www() { | |
bold=`tput bold` | |
normal=`tput sgr0` | |
if [ ! $1 ] ; then | |
print "Usage: \n$ www url" | |
return 1 | |
elif [ $1 ] ; then | |
username=$(id -un)@$(hostname) | |
echo "${bold}Creating www directories in /var/www/$1/${normal}" |
NewerOlder