Skip to content

Instantly share code, notes, and snippets.

* Downloaded or downloading
=============================
**http://kickass.to/infiniteskills-learning-jquery-mobile-working-files-t7967156.html
**http://kickass.to/lynda-bootstrap-3-advanced-web-development-2013-eng-t8167587.html
**http://kickass.to/lynda-css-advanced-typographic-techniques-t7928210.html
**http://kickass.to/lynda-html5-projects-interactive-charts-2013-eng-t8167670.html
**http://kickass.to/vtc-html5-css3-responsive-web-design-course-t7922533.html
*http://kickass.to/10gen-m101js-mongodb-for-node-js-developers-2013-eng-t8165205.html
*http://kickass.to/cbt-nuggets-amazon-web-services-aws-foundations-t7839734.html
<?php
/**
* @return array
*/
function brokerWebMailCredentials(){
$credentials = [
'server'=>'#####################',
'login'=>'######################',
<?php
//TO run from command line > php csv2sql airbnb.csv airbnb_data
$file = $argv[1];
$table = $argv[2];
$ls = file($file);
$out = "";
foreach ($ls as $l) {
@sany2k8
sany2k8 / promise.txt
Created August 22, 2017 16:01
Understanding_Promise
A Promise is a way to reason about data that doesn't yet exist, but you know it will. Kyle Simpson, author of You Don't Know JS series,
is well known for giving async JavaScript talks.
His explanation of promises from this talk is spot on: It's like ordering food a fast-food restaurant.
1. Order your food.
2. Pay for your food and receive a ticket with an order number.
3. Wait for your food.
4. When your food is ready, they call your ticket number.
5. Receive the food.

Tell something about PHP that you know.

It should be the interviewees answer :)

Some Generic question like - combination (a)/(b)/(c) will be single question.

a) What is the PHP?

PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML.

@sany2k8
sany2k8 / elasticsearch-cheatsheet.txt
Created December 13, 2017 05:22 — forked from stephen-puiszis/elasticsearch-cheatsheet.txt
Elasticsearch Cheatsheet - An Overview of Commonly Used Elasticsearch API Endpoints and What They Do
# Elasticsearch Cheatsheet - an overview of commonly used Elasticsearch API commands
# cat paths
/_cat/allocation
/_cat/shards
/_cat/shards/{index}
/_cat/master
/_cat/nodes
/_cat/indices
/_cat/indices/{index}
@sany2k8
sany2k8 / pg_to_es.py
Created December 22, 2017 11:05
Postgres to Elasticsearch conversor script. It will assumes: - Database is equivalent as an index - Tables are equivalent as a mapping types You must pass a query for retreive data.
#!/usr/bin/python
import psycopg2
import psycopg2.extras
from pyes import *
import argparse
import traceback
import math
def ResultIter(cursor, arraysize=100):
# An iterator that uses fetchmany to keep memory usage down
@sany2k8
sany2k8 / xdebug-php.md
Created January 4, 2018 04:24 — forked from ankurk91/xdebug-mac.md
php xDebug on Ubuntu/Mac and phpStorm 2017

🪲 Install and Configure xDebug on Ubuntu/Mac and PhpStorm 🐘

  • Assuming that you have already installed php and apache
  • Install xDebug php extension
# Ubuntu 16.04, php 7.0
sudo apt-get install php-xdebug

# Ubuntu 14.04, php 5.6 
sudo apt-get install php5-xdebug
@sany2k8
sany2k8 / gist:df86fd6a377e02a60b2d8a25bc1ec2d3
Created January 24, 2018 10:53 — forked from bhurlow/gist:3043629
Linux Screen Cheat Sheets
–ctrl a c -> cre­ate new win­dow
–ctrl a A -> set win­dow name
–ctrl a w -> show all win­dow
–ctrl a 1|2|3|… -> switch to win­dow n
–ctrl a ” -> choose win­dow
–ctrl a ctrl a -> switch between win­dow
–ctrl a d -> detach win­dow
–ctrl a ? -> help
–ctrl a [ -> start copy, move cur­sor to the copy loca­tion, press ENTER, select the chars, press ENTER to copy the selected char­ac­ters to the buffer
–ctrl a ] -> paste from buffer
############ Cluster Health Check ###############
## Overall Cluster Health
GET /_cat/health?v
## Node Health
GET /_cat/nodes?v
## List Indices
GET /_cat/indices?v