Skip to content

Instantly share code, notes, and snippets.

View saxenap's full-sized avatar

Praveen Saxena saxenap

  • West Lafayette, IN
View GitHub Profile
@saxenap
saxenap / helper_functions_for_bash
Last active August 29, 2015 14:15
Some bash helper functions for help with server initialization.
#!/bin/bash
#
# Copyright (c) 2014-2017 Praveen Saxena <>
# License: BSD-3-Clause
#
# To get:
# 1. rm -rf helper_functions_for_bash
# 2. wget -O helper_functions_for_bash https://gist.githubusercontent.com/saxenap/073049d1ead105417837/raw
BASENAME=${0##*/}
@saxenap
saxenap / server_initialization
Last active August 29, 2015 14:15
Server Initialization script. Needs helper functions.
#!/bin/bash
# rm -rf server_initialization
# wget -O server_initialization https://gist.githubusercontent.com/saxenap/4189df60f22d827583e8/raw/
# chmod 777 server_initialization
# ./server_initialization
loadHelpersFromUrl()
{
rm -rf helpers
@saxenap
saxenap / server_config
Last active August 29, 2015 14:15
Contains configuration parameters for Server.
; Section keys, if used for iteration, must:
; 1. Begin with 1
; 2. Be sequential
[Server]
Timezone=US/Eastern
[PackagesToInstall]
1=gcc
2=gcc-c++
@saxenap
saxenap / IniParserToParameterAdapter
Last active August 29, 2015 14:15
This script acts as an adapter to the Bash_INI_Parser.
#!/bin/bash
#
# Copyright (c) 2014-2017 Praveen Saxena <>
# License: BSD-3-Clause
#
# To Use:
# wget -O IniParserToParameterAdapter https://gist.githubusercontent.com/saxenap/fd1328c6e6cfa0b2b08a/raw
#
# Requires:
# 1. Common Functions from https://gist.githubusercontent.com/saxenap/073049d1ead105417837/raw

(This is the text of the keynote I gave at Startup Riot 2009. Will update when video becomes available.)

Hi everyone, I'm Chris Wanstrath, and I'm one of the co-founders of GitHub.

GitHub, if you haven't heard of it, has been described as "Facebook for developers." Which is great when talking about GitHub as a website, but not so great when describing GitHub as a business. In fact, I think we're the polar opposite of Facebook as a business: we're small, never took investment, and actually make money. Some have even called us successful.

Which I've always wondered about. Success is very vague, right? Probably even relative. How do you define it?

After thinking for a while I came up with two criteria. The first is profitability. We employ four people full time, one person part time, have thousands of paying customers, and are still growing. In fact, our rate of growth is increasing - which means January was our best month so far, and February is looking pretty damn good.

@saxenap
saxenap / Apache-PHP56 Environment
Last active March 16, 2016 12:41
Sets up Apache and Php-56 Environment with folder permissions.
#!/bin/bash
#
# Copyright (c) 2014-2017 Praveen Saxena <>
# License: BSD-3-Clause
#
# To get:
# rm -rf apache-php56-environment && wget -O apache-php56-environment https://gist.githubusercontent.com/saxenap/03064bd5d805ee0c0675/raw && chmod 777 apache-php56-environment && ./apache-php56-environment
sudo ln -sf /usr/share/zoneinfo/EST /etc/localtime
echo " Timezone modified to EST."
@saxenap
saxenap / Install-Ruby
Last active August 29, 2015 14:19
Install Ruby and RubyGems
#!/bin/bash
#
# To run:
# rm -rf install-ruby && wget -O install-ruby https://gist.githubusercontent.com/saxenap/90122a9bfb7ae6928870/raw && chmod 777 install-ruby && ./install-ruby
sudo yum -y update
sudo yum -y install ruby22-devel
sudo yum -y install rubygems22
@saxenap
saxenap / Install-Nodejs
Last active August 29, 2015 14:19
Install Node.JS and NPM
#!/bin/bash
#
# To run:
# rm -rf install-nodejs && wget -O install-nodejs https://gist.githubusercontent.com/saxenap/a11c32c94b66319047d4/raw && chmod 777 install-nodejs && ./install-nodejs
sudo yum -y install nodejs npm --enablerepo=epel
echo "Node.js and NPM Installed."
@saxenap
saxenap / Install-Jekyll
Last active August 29, 2015 14:19
Install Jekyll
#!/bin/bash
#
# To run:
# rm -rf install-jekyll && wget -O install-jekyll https://gist.githubusercontent.com/saxenap/3df6305113a640743485/raw && chmod 777 install-jekyll && ./install-jekyll
set -o errexit
function exit_if_not_installed
{
RED='\033[01;31m'
@saxenap
saxenap / Wordpress Install
Last active August 29, 2015 14:22
Wordpress Install
#!/bin/bash
#
# Copyright (c) 2014-2017 Praveen Saxena <>
# License: BSD-3-Clause
#
# To get:
# 1. rm -rf wordpress-install https://gist.githubusercontent.com/saxenap/4ab30aa020fa240de3a1/raw
# 2. wget -O wordpress-install https://gist.githubusercontent.com/saxenap/4ab30aa020fa240de3a1/raw
# 3. chmod 777 wordpress-install
# 4. ./wordpress-install