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 / preprocessing_contrastive_learning_toxicr_bert-v2.ipynb
Last active August 19, 2023 06:49
Contrastive_Learning_ToxiCR_BERT-Basic.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
@AwsafAlam
AwsafAlam / airwrk_interview_awsaf
Created January 23, 2023 17:10
airwrk_problems
# Problem - 1
def maximizeReturn(prices):
max_profit = 0
for i in range(len(prices)):
for j in range(len(prices)):
profit = prices[j] - prices[i]
if profit > max_profit and j > i:
max_profit = profit
return max_profit
@AwsafAlam
AwsafAlam / docker_startup.sh
Last active April 26, 2021 12:10
docker installation script on instance startup
#!/bin/bash
# install latest version of docker the lazy way
curl -sSL https://get.docker.com | sh
# make it so you don't need to sudo to run docker commands
usermod -aG docker ubuntu
# install docker-compose
curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
@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 / .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 / 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

module.exports = {
"root": true,
"env": {
"node": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 9
{
"env": {
"browser": true,
"es6": true
},
"extends": "eslint:recommended",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},