Skip to content

Instantly share code, notes, and snippets.

View sibinx7's full-sized avatar
🏠
Working from home

Sibin Xavier sibinx7

🏠
Working from home
View GitHub Profile
@sibinx7
sibinx7 / database.md
Last active October 10, 2017 17:59
Database helpers

Postgres

Permission issues

  • Goto etc/postgres/postgresql-version/pg_hba.config
  • Change peer/md5/anything to trust

Dump postgresql Database

pg_dump -Fc -U <username> -d <database> > /<path><filename>
@sibinx7
sibinx7 / development.md
Last active June 15, 2018 05:13
Development Setup

LAMP Setup

Install PHP, Apache, MySQL on Linux machine

Apache

sudo apt-get update
sudo apt-get install apache2
@sibinx7
sibinx7 / angular-4-learning.md
Last active December 27, 2017 05:43
Angular 4 learning snippets, codes

Angular JS 4(2)

  • Angular 4 Basic
  • Angular 4 Routing ( Child, Guards, Events )
  • Angular 4 Template, Component
  • Angular 4 Service/Directive
  • Implementation with Rails, Laravel
  • Angular 4 Advanced
  • Angular 4 Sample applications
  • Profile using Angular 4 Sample
@sibinx7
sibinx7 / ember-js-learning.md
Last active July 24, 2017 14:35
Learn ember js

Ember JS

Deployment on heroku

heroku buildpacks:set https://codon-buildpacks.s3.amazonaws.com/buildpacks/heroku/emberjs.tgz
@sibinx7
sibinx7 / heroku.md
Last active August 31, 2017 14:28
Heroku tips

Node Application

Heroku won't install devdependencies in production mode

heroku config:set NPM_CONFIG_PRODUCTION=false

Set env variables

heroku config:set GITHUB_USERNAME=joesmith
@sibinx7
sibinx7 / hapi-js.md
Last active October 11, 2017 11:22
Hapi JS Learning

Hapi Js Learning

Hapi JS is a node server framework like Express JS.

Introduction to Hapi JS

var Hapi = require('hapijs');
server = new Hapi.Server();

server.connection({ port: 9090, host: 'localhost'})
@sibinx7
sibinx7 / webpack-learning.md
Created July 28, 2017 10:57
Learn more about webpack 3

Webpack 3 is now available

Scope hoisting. Enable this feature

plugins:[ new webpack.optimize.ModuleConcatenationPlugin() ]

@sibinx7
sibinx7 / javascript-plugins.md
Last active July 16, 2020 19:15
Javascript Libraries/Plugins
@sibinx7
sibinx7 / static-website-g.md
Last active September 17, 2017 15:49
Static Website Generators

Static Websites Generators

As a frontend Developer, i need to use to build many static websites as prototypes or as full website templates. Usually i use middleman and jekyll. I use middleman more than Jekyl because i need a static website more than a blog or more advanced static websites.

Later i found some issues in using Middleman, after a long use, i usually repear most of the components, so i feel, react will be a good choise, so i can reduce my time. Also there are many issues in middleman, i need to use gulp for javascript contents, they removed some features from middleman. Middleman livereload is very slow also. Last point, Middleman is mature but use almost old features, i use the same for last 2 year, there're no mind blowing features. So i started to search for a good static website generator, modern and feature rich.

Here are some list of Static Websites

Jekyll

Mature and most popular static websites, written using Ruby. Most of the git-hub pages use this framework. You can ev