Skip to content

Instantly share code, notes, and snippets.

View vnykmshr's full-sized avatar

Vinayak Mishra vnykmshr

View GitHub Profile
@vnykmshr
vnykmshr / install-node.sh [version]
Created December 3, 2015 10:14
Node Linux Installer
#!/bin/bash
echo "Node Linux Installer by github.com/taaem, minute updates from github.com/vnykmshr"
echo "Usage ./install-node.sh [version] or latest"
echo "Need Root for installing NodeJS"
sudo sh -c 'echo "Got Root!"'
VERSION=${1:-latest}
echo "Get Version Number..." $VERSION
@vnykmshr
vnykmshr / linkedin.js
Created September 1, 2015 09:56
People You May Know
var a = setInterval(function () {
window.scrollTo(0, document.body.scrollHeight);
$('.bt-request-buffed').click();
}, 5000);
@vnykmshr
vnykmshr / dropbox-uploader.sh
Created May 9, 2014 18:35
Dropbox Uploader Script
#!/usr/bin/env bash
#
# Dropbox Uploader
#
# Copyright (C) 2010-2014 Andrea Fabrizi <andrea.fabrizi@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
@vnykmshr
vnykmshr / pure-ftpd-setup.sh
Created March 28, 2014 12:08
Pure-ftpd server on EC2 Ubuntu Server
apt-get update
apt-get install pure-ftpd
# Ensure
# File /etc/inetd.conf has `ftp` commented out
# File /etc/default/pure-ftpd-common STANDALONE_OR_INETD=standalone
# Add ftp users group
groupadd ftpusers
@vnykmshr
vnykmshr / nginx-site-config.conf
Created March 25, 2014 17:24
Nginx config for a sample magento setup
## nginx.conf
#######################################################################
#
# This is the main Nginx configuration file.
#
# More information about the configuration options is available on
# * the English wiki - http://wiki.nginx.org/Main
#
#######################################################################
@vnykmshr
vnykmshr / latest-nginx.sh
Last active August 29, 2015 13:57
Install latest nginx
# install the Nginx team’s package signing key
curl http://nginx.org/keys/nginx_signing.key | apt-key add -
# Add the repo to apt sources:
echo -e "deb http://nginx.org/packages/ubuntu/ `lsb_release -cs` nginx\ndeb-src http://nginx.org/packages/ubuntu/ `lsb_release -cs` nginx" > /etc/apt/sources.list.d/nginx.list
# Resynchronize the package index files from their sources:
apt-get update
# install nginx
@vnykmshr
vnykmshr / phabricator.sh
Last active February 22, 2016 20:41
Ubuntu phabricator setup
#!/bin/bash
confirm() {
echo "Press RETURN to continue, or ^C to cancel.";
read -e ignored
}
GIT='git'
LTS="Ubuntu 10.04"
@vnykmshr
vnykmshr / magento-setup.steps
Last active March 9, 2016 08:36
Magento: Nginx + Varnish + Mysql stack
apt-get update
apt-get upgrade
apt-get install mysql-server
mysql_secure_installation
apt-get install nginx
apt-get install git-core
@vnykmshr
vnykmshr / magento.vnykmshr.com
Created March 12, 2014 14:00
Nginx server configuration for Magento
server {
listen 8080;
server_name magento.vnykmshr.com;
root /var/www/magento/releases/current;
index index.html index.php;
access_log /var/log/nginx/magento.access.log;
error_log /var/log/nginx/magento.error.log;
location / {
@vnykmshr
vnykmshr / magento-varnish-3.0.config
Created March 12, 2014 13:53
Magento varnish 3.0 config
# This configuration is what is provided by PageCache by Varnish for Magento module:
# http://www.magentocommerce.com/magento-connect/pagecache-powered-by-varnish.html
# default backend definition. Set this to point to your content server.
backend default {
.host = "127.0.0.1";
.port = "8080";
.connect_timeout = 5s;
.first_byte_timeout = 10s;