Skip to content

Instantly share code, notes, and snippets.

View it-can's full-sized avatar

M. Vugteveen it-can

View GitHub Profile
@it-can
it-can / README.md
Created March 6, 2014 15:05 — forked from sj26/README.md

Place me.mailcatcher.plist into ~/Library/LaunchAgents, then run launchctl load ~/Library/LaunchAgents/me.mailcatcher.plist.

If you use pow, echo 1080 > ~/.pow/mailcatcher and go to http://mailcatcher.dev, otherwise use http://localhost:1080.

Currently pow doesn't seem to pass websockets through correctly. Looking into this.

master_process on;
worker_processes 4;
worker_cpu_affinity 0001 0010 0100 1000;
worker_priority 0;
worker_rlimit_nofile 8192;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
<?php
/**
*
* This file contains a class which can be used to connect with the Exact Online API
*/
namespace ExactOnlineApi;
use \ExactOnlineApi\ApiException;
@it-can
it-can / concat_ssl_comodo
Last active August 29, 2015 14:06
Concat Comodo PositiveSSL certificate NEW
cat www_example_com.crt COMODORSADomainValidationSecureServerCA.crt COMODORSAAddTrustCA.crt > bundle.crt
chmod 600 *.key *.csr *.crt
#!/bin/bash
#
# Queue manager script, to make sure the required number of worker instances
# are running. Schedule this in cron to make sure any crashed workers will
# be restarted.
#
# Get the full path to ourselfs
SCRIPTPATH="$( dirname "$( which "$0" )" )"

The Laracasts PHPStorm theme - modified.

This is a slightly modified version of the great Laracasts PHPStorm theme. I've added some styles for Verions Control (add, modified, deleted line...) and fixed some missing things like warnings.

Download

image

Mac: Add to ~/Library/Preferences/WebIde80/colors

@it-can
it-can / Dnstransip.php
Last active August 29, 2015 14:26 — forked from lennartvdd/transip-dyndns.php
TransIP API DynDNS
<?php
// SETTINGS
// The domain to edit
define('DOMAIN', 'example.com');
// The authentication key
define('KEY', '69l67Le20e819360d3YHO1175');
// The DNS entries to update (name => content)
// This script will NOT add new entries
@it-can
it-can / CacheRepository.php
Last active September 13, 2015 21:10 — forked from tillkruss/Database.php
[Laravel 5.1] Use Redis PECL/HHVM extension
<?php
namespace App\Repositories;
use Illuminate\Cache\Repository;
class CacheRepository extends Repository
{
public function has($key)
{
@it-can
it-can / gist:3952269
Created October 25, 2012 12:18
CODA2 - Premium theme colors
comment {
color:#646465;
font-style:italic;
}
constant.numeric {
color:#6f87a8;
font-weight:normal;
}
#!/bin/sh
#
# chkconfig: 35 99 99
# description: Node.js /home/nodejs/sample/app.js
#
. /etc/rc.d/init.d/functions
USER="nodejs"