Skip to content

Instantly share code, notes, and snippets.


Hari K T harikt

View GitHub Profile
zaydek-old / log (example)
Last active Jul 2, 2019
Example of some source code: this quotes the stock market (e.g. <2k stocks) at one-second intervals for all unique quotes throughout the day
View log (example)
$ head AAPL
09:30:00.000 166.6400
09:30:02.000 166.3000
09:30:03.000 166.2400
09:30:04.000 166.2050
09:30:05.000 166.2900
09:30:06.000 166.1500
09:30:07.000 166.2450
09:30:08.000 166.0675
09:30:09.000 166.0200
7php / APACHE_content-security-policy.conf
Last active Apr 18, 2017
APACHE to NGINX | content-security-policy.conf
View APACHE_content-security-policy.conf
# REF:
<IfModule mod_headers.c>
Header set Content-Security-Policy "script-src 'self'; object-src 'self'"
<FilesMatch "\.(appcache|atom|bbaw|bmp|crx|css|cur|eot|f4[abpv]|flv|geojson|gif|htc|ico|jpe?g|js|json(ld)?|m4[av]|manifest|map|mp4|oex|og[agv]|opus|otf|pdf|png|rdf|rss|safariextz|svgz?|swf|topojson|tt[cf]|txt|vcard|vcf|vtt|webapp|web[mp]|webmanifest|woff2?|xloc|xml|xpi)$">
Header unset Content-Security-Policy

Candidates Standing for Election

Brief descriptions are just designed to help jog memory, not provide comprehensive descriptions. Please read nomination topics.

Name Proposer Twitter Handle Brief Description of Projects/Companies Link to nomination topic
Beau Simensen Chris Tankersley simensen Sculpin, Silex, SensioLabs US Link
Cees-Jan Kiewiet Michiel Rook wyrihaximus ReactPHP, Async Interop Link
Chris Tankersley Korvin Szanto           [dragon
nibrahim / ep
Created Oct 18, 2016
Pipe output of commands into Emacs
View ep
#!/usr/bin/env python
import sys
import subprocess
def execute_command(c):
cmd = ["/usr/bin/emacsclient", "-n", "-e", c]
p = subprocess.Popen(cmd, stdout=subprocess.DEVNULL)
shadowhand / .gitconfig
Created Mar 9, 2016
You just need a bigger hammer!
View .gitconfig
fixlock = ! git reset HEAD -- composer.lock && git co -- composer.lock && composer update --no-scripts && git add composer.lock
renshuki /
Last active Sep 24, 2020
Ubuntu 16.04 + Terminator + Oh My ZSH with Agnoster Theme

Install Terminator (shell)

sudo add-apt-repository ppa:gnome-terminator
sudo apt-get update
sudo apt-get install terminator

Terminator should be setup as default now. Restart your terminal (shortcut: "Ctrl+Alt+T").

Install ZSH

View laravel-docs-scraper.php
// composer require fabpot/goutte
Route::get('docs', function(){
$host = '';
$base = '/docs/5.1/';
$client = new Goutte\Client();
$crawler = $client->request('GET', $host.$base);
alexanderschnitzler /
Last active Aug 16, 2018
An open letter to the Neos development team

An open letter to the Neos development team

Dear members of the development team, CU a few days ago I commented the announcement, that Neos and Flow get rid of "TYPO3" as part of their names, as follows:

Removing "TYPO3" from Neos and Flow makes it easier to quietly abandon these products. \o/

Additionally to this tweet I had a small twitter conversation resulting in this tweet:

Ocramius / SimpleFixtureLoader.php
Created Mar 3, 2015
Simple array-based fixture loader for Doctrine ORM
View SimpleFixtureLoader.php
namespace FixtureLoader;
use Doctrine\Common\Persistence\Mapping\ClassMetadata;
use Doctrine\Common\Persistence\ObjectManager;
use Doctrine\Instantiator\Instantiator;
class SimpleFixtureLoader
iansltx / FastForwarder.php
Last active Aug 29, 2015
Calculate due dates, taking business days into account
View FastForwarder.php
class FastForwarder
protected $skipWhen = [];
protected $numDays = 0;
public static function createWithDays($num_days)
$ff = new static;
You can’t perform that action at this time.