Skip to content

Instantly share code, notes, and snippets.

View soham2008xyz's full-sized avatar
👨‍💻
Sprint-mode ON!

Soham Banerjee soham2008xyz

👨‍💻
Sprint-mode ON!
View GitHub Profile
@soham2008xyz
soham2008xyz / 0_reuse_code.js
Last active August 29, 2015 14:20
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@soham2008xyz
soham2008xyz / 1_ubuntu_terminal_command
Last active September 29, 2015 04:57 — forked from lucasdavila/1_ubuntu_terminal_command
Installing Source Code Pro fonts in ubuntu
# to execute this gist, run the line bellow in terminal
\curl -L https://gist.githubusercontent.com/soham2008xyz/3f6f27f533dfc9c324e0/raw/install_source_code_pro.sh | sh
@soham2008xyz
soham2008xyz / git-feature-workflow.md
Created December 24, 2016 13:23 — forked from blackfalcon/git-feature-workflow.md
Git basics - a general workflow

There are many Git workflows out there, I heavily suggest also reading the atlassian.com [Git Workflow][article] article as there is more detail then presented here.

The two prevailing workflows are [Gitflow][gitflow] and [feature branches][feature]. IMHO, being more of a subscriber to continuous integration, I feel that the feature branch workflow is better suited.

When using Bash in the command line, it leaves a bit to be desired when it comes to awareness of state. I would suggest following these instructions on [setting up GIT Bash autocompletion][git-auto].

Basic branching

When working with a centralized workflow the concepts are simple, master represented the official history and is always deployable. With each now scope of work, aka feature, the developer is to create a new branch. For clarity, make sure to use descriptive names like transaction-fail-message or github-oauth for your branches.

@soham2008xyz
soham2008xyz / WordPress & ECS.md
Created February 1, 2017 08:57
WordPress & ECS

#How to dockerize an existing WordPress and deploy it on AWS ECS ###Place this Dockerfile in the root of your app repo

FROM php:5.6-apache

RUN a2enmod rewrite

# install the PHP extensions we need
RUN apt-get update && apt-get install -y libpng12-dev libjpeg-dev && rm -rf /var/lib/apt/lists/* \
  && docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
@soham2008xyz
soham2008xyz / index.html
Created February 3, 2017 05:04 — forked from anonymous/index.html
Bootstrap 3 transparent and fullscreen modals Bootstrap 3 transparent and fullscreen modals // source http://jsbin.com/dinuzeh
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Bootstrap 3 transparent and fullscreen modals</title>
<meta name="description" content="Bootstrap 3 transparent and fullscreen modals">
<!-- include bootstrap -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
<style id="jsbin-css">
body {
@soham2008xyz
soham2008xyz / README.md
Created February 9, 2017 16:00 — forked from magnetikonline/README.md
Using Dnsmasq with Ubuntu 16.04LTS/14.04LTS/12.04LTS for virtual machine web application testing.

Using Dnsmasq with Ubuntu for VM web application testing

When running virtual machines under a Linux host system for testing web apps in various browsers (e.g. Internet Explorer), I found it rather tedious having to continually tweak the hosts file within each VM for the purpose of adding entries pointing back to the host machine's development web server address.

Instead the steps below will setup Dnsmasq on a Ubuntu 16.04LTS, 14.04LTS or 12.04LTS host machine for the purpose of serving both it's own DNS queries and that of virtual machine guests. Dnsmasq will parse the /etc/hosts file on your host machine where we will keep a single set of DNS entires to our test web application(s).

/**
* Retrieves all the rows in the active spreadsheet that contain data and logs the
* values for each row.
* For more information on using the Spreadsheet API, see
* https://developers.google.com/apps-script/service_spreadsheet
*/
function readRows() {
var sheet = SpreadsheetApp.getActiveSheet();
var rows = sheet.getDataRange();
var numRows = rows.getNumRows();

Does the garbage contain any of the following substances?

Name Photo Present in Garbage?
Cardboard/Paper Cardboard/Paper
  • Yes
Glasses Glasses
  • Yes
Metals Metals
  • Yes
Plastics Plastics
  • Yes
Batteries/Bulbs Batteries/Bulbs
  • Yes
Electronics Electronics [ ] Yes
@soham2008xyz
soham2008xyz / Contract Killer 3.md
Created August 1, 2017 10:10
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Original post