Skip to content

Instantly share code, notes, and snippets.


Hari K T harikt

View GitHub Profile
harikt /
Created Oct 3, 2011
Import Geonames Database

First up, thanks to everyone in this thread… what i post is what took me a while to figure out (character set in load data and some other errors in the original script (like capital I in countryInfo etc).

Original Post Over :

save as import.sql (update)

Code: CREATE DATABASE geonames; USE geonames;


Set the base image to Ubuntu must be first instruction - use docker search to find images

FROM ubuntu # <image>
FROM ubuntu:latest # - <image>:<tag>
FROM ubuntu:precise (LTS)

Set the maintainer info

View gist:c149f7d52e57a73b1e7adbf5af36e920
Originall From: Posted 2015-05-29
This is the complete list that’s outputted by ffmpeg when running ffmpeg -h full.
usage: ffmpeg [options] [[infile options] -i infile]… {[outfile options] outfile}…
Getting help:
-h — print basic options
-h long — print more options
-h full — print all options (including all format and codec specific options, very long)
harikt /
Created Oct 13, 2020 — forked from kalharbi/
Setting up an external Zookeeper Solr Cluster

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
    • mkdir /opt/solr
harikt /
Created Jul 13, 2020 — forked from mankyKitty/
The documentation around the basics of the Solr query syntax is terrible, this is an attempt to alleviate the doc-shock associated with trying to learn some fundamentals.

Solr Query Syntax Basics

This is a super basic beginners guide to Solr Lucene query syntax. We're going to cover running a straightforward query, as well as some of the more useful functionality such as filtering and creating facets. We'll point out some things you can't do and generally give you enough instruction so that you can get yourself into trouble.

For testing you need a REST client capable of sending requests to your Solr instance. Either RESTClient for Firefox or Postman for Chrome are good choices.


Request Specific Fields

To specify a list of fields to return instead of the default Solr response use fl and provide a comma delimited list of fields:

harikt / router-middleware.php
Created Jan 21, 2015
Conduit router middleware example
View router-middleware.php
require dirname(__DIR__) . '/vendor/autoload.php';
use Phly\Conduit\Middleware;
use Phly\Http\Server;
$app = new Middleware();
$router = new \Aura\Router\Router(
new \Aura\Router\RouteCollection(new \Aura\Router\RouteFactory),
new \Aura\Router\Generator
harikt / composer.json
Last active Dec 27, 2019
Aura.Router and Aura.Dispatcher
View composer.json
"require": {
"aura/router": "^3.0",
"aura/dispatcher": "^2.0",
"zendframework/zend-diactoros": "^2.2"
harikt / gist:7963895ee5e94fc1edf5deaeaa7ea778
Last active Nov 29, 2019
PHP code highlighting not working for hugo
View gist:7963895ee5e94fc1edf5deaeaa7ea778
pygmentsuseclasses: false
pygmentsCodeFences: true
pygmentsCodeFencesGuessSyntax: true
codeFences: true
hl_Lines: ""
lineNoStart: 1
lineNos: true
harikt /
Created Oct 22, 2019 — forked from renshuki/
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

harikt /
Created Jan 5, 2012
Compile and Install PHP 5.4 from Source
#Download Apache and extract it
$ ./configure --help
#You will get a list of options, run with enable-so
$ ./configure --enable-so
$ make