Skip to content

Instantly share code, notes, and snippets.

View harikt's full-sized avatar
⛱️
Tanvish Technologies

Hari K T harikt

⛱️
Tanvish Technologies
View GitHub Profile
@harikt
harikt / ioslocaleidentifiers.csv
Created February 23, 2017 09:38 — forked from jacobbubu/ioslocaleidentifiers.csv
iOS Locale Identifiers
mr Marathi
bs Bosnian
ee_TG Ewe (Togo)
ms Malay
kam_KE Kamba (Kenya)
mt Maltese
ha Hausa
es_HN Spanish (Honduras)
ml_IN Malayalam (India)
ro_MD Romanian (Moldova)
@harikt
harikt / composer.json
Created January 18, 2017 04:44
Discussion : Aura DI lazy function called each time https://groups.google.com/d/msg/auraphp/Ndh4pHM3m_k/PZdhOXtBAgAJ
{
"require": {
"aura/di": "^3.2"
}
}

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
@harikt
harikt / composer.json
Last active May 2, 2017 19:46
Aura.Router version 3 example
{
"require": {
"aura/router": "^3.0",
"zendframework/zend-diactoros": "^1.3"
}
}

Consider I have two domains.

  1. http://app.com/ => /home/app/web
  2. https://images.app.com/ => /home/images/directory/

There is a form in app.com which can upload images to /home/images/directory .

The question is : Is there a way that the bundle can generate the image on the /home/images/directory/ or do we need to write our own cache resolvers ?

@harikt
harikt / python-cheat-sheet-basic.py
Created September 7, 2016 09:41 — forked from filipkral/python-cheat-sheet-basic.py
Basic Python Cheat Sheet
#!/usr/bin/env python
"""Basic Python Cheat Sheet by Filip Kral on 2015/02/16"""
"""
Python is a cross-platform, interpreted, object-oriented programming language.
That means you can run it on Linux, Windows, Mac, and other platforms,
you don't need to compile your code to execute it because it is compiled on
the fly, and you can use classes and objects.
@harikt
harikt / centos_python_env_setup
Created August 3, 2016 16:52 — forked from floer32/centos_python_env_setup
CentOS 6: Install Python 2.7.4, pip, virtualenv, and virtualenvwrapper on CentOS (plus some bonus items at the end if you want). You should probably run with `sudo`.
#!/bin/bash
# Source: http://toomuchdata.com/2012/06/25/how-to-install-python-2-7-3-on-centos-6-2/
# Install stuff #
#################
# Install development tools and some misc. necessary packages
yum -y groupinstall "Development tools"
yum -y install zlib-devel # gen'l reqs
@harikt
harikt / Caddyfile
Last active August 2, 2016 06:29
Caddyfile for almost any php projects . Works for Zendexpressive, not tested with other frameworks.
localhost:8000
gzip
tls off
root /path/to/public
fastcgi / /var/run/php/php7.0-fpm.sock php
rewrite {
to {path} {path} /index.php?{query}
}
@harikt
harikt / .bashrc
Created July 26, 2016 07:12 — forked from miraculixx/.bashrc
add and remove pip install/uninstall from requirements.txt automatically
# add pip install/uninstall to requirements.txt automatically
pipr() {
if [ "$1" == "install" ]; then
pip $1 $2
pip freeze | grep -i $2 >> requirements.txt
echo ok, added $2 as:
tail -n1 requirements.txt
fi
if [ "$1" == "uninstall" ]; then
echo y | pip $1 $2 >> .pipremoved
@harikt
harikt / golang_emails.go
Created June 23, 2016 08:17 — forked from rmulley/golang_emails.go
Sends an email in Go with text/HTML and an attachment.
package main
import (
"bytes"
"encoding/base64"
"fmt"
"io/ioutil"
"log"
"net/smtp"
) //import