Skip to content

Instantly share code, notes, and snippets.

View anistark's full-sized avatar
💻
Open Innovation and Development

Ani anistark

💻
Open Innovation and Development
View GitHub Profile
@anistark
anistark / request post node.js
Last active August 29, 2015 14:26 — forked from alessioalex/request post node.js
request post node.js
var request = require('request'), default_headers, site_root = 'http://localhost:3000';;
default_headers = {
'User-Agent': 'Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20100101 Firefox/7.0.1',
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'Accept-Language': 'en-us,en;q=0.5',
'Accept-Encoding': 'gzip, deflate',
'Accept-Charset': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
// 'Connection': 'keep-alive',
'Cache-Control': 'max-age=0'
@anistark
anistark / services.json
Created October 9, 2015 11:04
Laravel Meta file Services.json Sample
{
"providers": [
"Illuminate\\Foundation\\Providers\\ArtisanServiceProvider",
"Illuminate\\Auth\\AuthServiceProvider",
"Illuminate\\Cache\\CacheServiceProvider",
"Illuminate\\Session\\CommandsServiceProvider",
"Illuminate\\Foundation\\Providers\\ConsoleSupportServiceProvider",
"Illuminate\\Routing\\ControllerServiceProvider",
"Illuminate\\Cookie\\CookieServiceProvider",
"Illuminate\\Database\\DatabaseServiceProvider",
@anistark
anistark / express_new_project.md
Last active October 10, 2015 17:03
Creating new project in nodejs and express

express -c stylus <project_name>

cd <project_name>

npm install

npm start

@anistark
anistark / LampSetup.md
Last active September 20, 2016 07:24
LAMP Setup

Install Apache

sudo apt-get update
sudo apt-get install apache2

Install Mysql

@anistark
anistark / nodeErrors.md
Created October 14, 2015 07:43
Common Node Errors

watch ENOSPC error

cause :

The system has a limit to how many files can be watched by a user. You can run out of watches pretty quickly if you have Grunt running with other programs like Dropbox. This command increases the maximum amount of watches a user can have.

Solution :

@anistark
anistark / sublimeText.md
Last active February 19, 2016 07:57
Setup Sublime Text

Install via the Package Manager(apt-get):

Simply add to your packages:

For Sublime-Text-2:

sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get update
sudo apt-get install sublime-text
@anistark
anistark / .bashrc
Last active January 20, 2025 20:35
Tmux Conf
# Tmux Config
tm() { tmux new -s "$1" ;}
ta() { tmux attach -t "$1"; }
tl() { tmux list-sessions; }
tn() { tmux new-window; }
@anistark
anistark / objectOrientedProgramming.md
Created October 26, 2015 08:44
What is Object Oriented Programming?

In an excerpt from a 1994 Rolling Stone interview, Jobs explains what object-oriented programming is.

Jeff Goodell: Would you explain, in simple terms, exactly what object-oriented software is?

Steve Jobs: Objects are like people. They’re living, breathing things that have knowledge inside them about how to do things and have memory inside them so they can remember things. And rather than interacting with them at a very low level, you interact with them at a very high level of abstraction, like we’re doing right here. Here’s an example: If I’m your laundry object, you can give me your dirty clothes and send me a message that says, “Can you get my clothes laundered, please.” I happen to know where the best laundry place in San Francisco is. And I speak English, and I have dollars in my pockets. So I go out and hail a taxicab and tell the driver to take me to this place in San Francisco. I go get your clothes laundered, I jump back in the cab, I get back here. I give you your clean clothes and say,

@anistark
anistark / git-tricks.md
Last active June 22, 2017 13:19
Git Tips and Tricks

Git Tips and Tricks

Collection of most used git commands

Everyday Git in twenty commands or so

git help everyday

Overwrite pull

@anistark
anistark / slackforubuntu.sh
Created November 9, 2015 13:46
Slack For Ubuntu Install Script
sudo apt-get update;sudo apt-add-repository -y ppa:rael-gc/scudcloud;sudo apt-get update;sudo apt-get install scudcloud;sudo apt-get install hunspell-en-us;sudo dpkg-divert --add --rename --divert /opt/scudcloud/resources/scudcloud.png.real /opt/scudcloud/resources/scudcloud.png;sudo cp ~/Downloads/scudcloud.png /opt/scudcloud/resources/;sudo chmod +r /opt/scudcloud/resources/scudcloud.png