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 / 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 / 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 / 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 / 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 / material_design
Last active March 23, 2018 14:03
Material Design Quick Presentation
Slide 1
Title: Introduction
Content: Material Design (codenamed Quantum Paper) is a design language developed by Google.
Slide 2
Title: For Mobile
Content: Google Android Material design
https://developer.android.com/design/material/index.html for android
https://github.com/nghialv/MaterialKit for ios
@anistark
anistark / phabricator
Created July 4, 2015 11:53
Getting started with phabricator
0) git status; git diff - review, then git diff with the file names that you have changed for this commit.
~ git status
~ git diff
~ git diff file1 file2 file3 > featurename.patch
1) Login to phabricator, go to differential, create diff.
2) Upload the patch file, type your repository name, continue
@anistark
anistark / Node Notes
Last active December 2, 2015 08:56
npm throws error without sudo
sudo chown -R $(whoami) ~/.npm
sudo chown -R `whoami` /usr/local/lib/node_modules
sudo sysctl fs.inotify.max_user_watches=524288
@anistark
anistark / index.js
Last active August 29, 2015 14:16 — forked from jfensign/index.js
//index.js
var express = require('express'),
app = module.exports = express.createServer(),
mongoose = require('mongoose');
mongoose.connect('mongodb://localhost/nodeAuth');
//configure app
app.configure(function() {
app.set('views', __dirname + '/views');
@anistark
anistark / ssh file commands
Last active August 29, 2015 14:13
ssh file commands
Copy from server to local:
scp [email protected]:foobar.txt /some/local/directory
scp local/file [email protected]:/var/www
@anistark
anistark / laravel-package
Last active February 4, 2017 07:53
Packaging of Laravel website
So, you're done making the website or web-app and now you would wanna distribute it to your clients. Awesome. Let's go ahead and create a package for the same.
There are two types of packaging that can be done in laravel:
1. VPS
2. Shared
VPS
VPS version is for their own use and local testing. So, you would wanna keep it as close to your local system settings as possible.
1. Delete all the files from app/storage/ in the following folders:
cache