Skip to content

Instantly share code, notes, and snippets.

Avatar
🙂

Hari K T harikt

🙂
View GitHub Profile
@zaydek-old
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
@schmich
schmich / ducky.md
Last active Aug 4, 2021
Programming media keys on the Ducky One 2 Skyline
View ducky.md

Programming Media Keys on the Ducky One 2 Skyline

To use media keys on the Ducky One 2 Skyline, you must record a macro to bind the media function to a hotkey combination, i.e. Fn plus some key.

Example

Important: In the instructions below, "Press X+Y+Z" means press and hold key X, press and hold key Y, press and hold key Z in that order, and then release all three.

As an example, to bind Fn+PgUp to the play/pause media function:

@wkhayrattee
wkhayrattee / APACHE_content-security-policy.conf
Last active Apr 18, 2017
APACHE to NGINX | content-security-policy.conf
View APACHE_content-security-policy.conf
# REF: https://github.com/h5bp/server-configs-apache/blob/master/src/security/content-security-policy.conf
<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
</FilesMatch>
</IfModule>
View nov16election.md

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
nibrahim / ep
Created Oct 18, 2016
Pipe output of commands into Emacs
View ep
#!/usr/bin/env python
import sys
import subprocess
PIPE_BUFFER_NAME="*piped*"
def execute_command(c):
cmd = ["/usr/bin/emacsclient", "-n", "-e", c]
p = subprocess.Popen(cmd, stdout=subprocess.DEVNULL)
@shadowhand
shadowhand / .gitconfig
Created Mar 9, 2016
You just need a bigger hammer!
View .gitconfig
[alias]
fixlock = ! git reset HEAD -- composer.lock && git co -- composer.lock && composer update --no-scripts && git add composer.lock
@kalharbi
kalharbi / zookeeper-solr-cloud.md
Last active Oct 13, 2020
Setting up an external Zookeeper Solr Cluster
View zookeeper-solr-cloud.md

Setting up an external Zookeeper Solr Cluster

This is a step by step instruction on how to create a cluster that has three Solr nodes running in cloud mode. These instructions should work on both a local cluster (for testing) and a remote cluster where each server runs in its own physical machine. This was tested on Solr version 5.4.1 and Zookeeper version 3.4.6

Installing Solr and Zookeeper

  • Download and extract Solr:
    • curl -O http://archive.apache.org/dist/lucene/solr/5.5.3/solr-5.5.3.tgz
    • mkdir /opt/solr
@renshuki
renshuki / ubuntu_agnoster_install.md
Last active Jul 31, 2021
Ubuntu 16.04 + Terminator + Oh My ZSH with Agnoster Theme
View ubuntu_agnoster_install.md

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
<?php
// composer require fabpot/goutte
Route::get('docs', function(){
$host = 'http://laravel.com';
$base = '/docs/5.1/';
$client = new Goutte\Client();
$crawler = $client->request('GET', $host.$base);
@alexanderschnitzler
alexanderschnitzler / openletter.md
Last active Aug 16, 2018
An open letter to the Neos development team
View openletter.md

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: