Skip to content

Instantly share code, notes, and snippets.

View AwsafAlam's full-sized avatar
👨‍💻
Eat. Sleep. Code.

Md Awsaf Alam AwsafAlam

👨‍💻
Eat. Sleep. Code.
View GitHub Profile
https://codepen.io/donnervetter/pen/VjzLgE
@AwsafAlam
AwsafAlam / ReadMe.md
Last active January 9, 2019 17:31
Create Web App

This is a basic script for initializing any type of web application quickly.

The script will initialize any application chosen by the user, I did this to make my development process easier and faster. There are a total of 5 options

  1. Custom Boilerplate
  2. Express Application
  3. ReactJS Application
  4. Simple Progressive Web App
  5. Flutter App
// Inputs
var sex = "male" // "male" || "female"
var age = 24 // Age in years
var height = 172 // Height in centimeters
var weight = 75 // Weight in kilograms
var activity_scalar = 1.2 // 1 -> 1.9 (1 being motionless, 1.9 being hugely active)
calculateBMR = function(sex, age, weight, height) {
var bMR = 0;
@AwsafAlam
AwsafAlam / tmux-cheatsheet.markdown
Created June 2, 2019 08:04 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
{
"env": {
"browser": true,
"es6": true
},
"extends": "eslint:recommended",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
module.exports = {
"root": true,
"env": {
"node": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 9
@AwsafAlam
AwsafAlam / digitalocean-promo-cupon-code-free-trial.md
Created August 23, 2019 10:06
DigitalOcean Coupon Code $35 / $100 1 Year Free Trial - April 2018

alt text

Digital Ocean Promo Coupon Code $35 / $100 1 Year Free Trial

1) Get $35 / $25 / $20 / $10 free DigitalOcean Credit.

2) Get DigitalOcean 1 Year Free Trial.

3) Get $100 Credit For 60 Days. $100 Free Credits

@AwsafAlam
AwsafAlam / git-deployment.md
Created August 23, 2019 11:59 — forked from noelboss/git-deployment.md
Simple automated GIT Deployment using Hooks

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.

@AwsafAlam
AwsafAlam / .htaccess
Created October 20, 2019 09:00
HTaccess for laravel
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^ ^$1 [N]
@AwsafAlam
AwsafAlam / docker-help.md
Created December 9, 2020 20:18 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info