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
@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

@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 / 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

{
"env": {
"browser": true,
"es6": true
},
"extends": "eslint:recommended",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
@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
// 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 / TimerActivity.java
Created July 14, 2018 22:40 — forked from mjohnsullivan/TimerActivity.java
Example of how to create a long running timer service that survives activity destruction by moving to the foreground, and back to the background when a new activity bind to it.
//
// Copyright 2015 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
@AwsafAlam
AwsafAlam / simple-usart-commands.c
Created May 29, 2018 21:38 — forked from adnbr/simple-usart-commands.c
Parsing simple USART commands on an AVR
/* Parsing simple USART commands
* -----------------------------
* For more information see
* http://www.adnbr.co.uk/articles/parsing-simple-usart-commands
*
* 996 bytes - ATmega168 - 16MHz
*/
#define F_CPU 16000000UL
#define BAUD 19200
1. Download latest apktool version.
2. Download the batch file and aapt.exe.
3. Create a folder anywhere in the PC and put all the apktool.jar, aapt.exe and the batch script in that folder.
4. Open command prompt.
5. Navigate to the folder where you placed apktool.jar, batch script and the aapt.exe.
6. Now, you need to install the file using the " IF " command.
7. Type the following command.
apktool if name-of-the-app.apk