Skip to content

Instantly share code, notes, and snippets.

View fakabbir's full-sized avatar
🎯
Focusing

Fakabbir Amin fakabbir

🎯
Focusing
View GitHub Profile
@fakabbir
fakabbir / GitHub-Forking.md
Created June 4, 2017 11:58 — forked from Chaser324/GitHub-Forking.md
GitHub Standard Fork & Pull Request Workflow

Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.

In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.

Creating a Fork

Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j

@fakabbir
fakabbir / gist:f2516fa9162d4624be8c888f25462c8f
Last active August 25, 2022 16:00 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
support@viva64.com
Blog
Checked Projects 297
Collected Errors 13 059
42 tips on C++
PVS-Studio Analyzer
Download PVS-Studio
Buy PVS-Studio
@fakabbir
fakabbir / APIHub
Last active January 12, 2018 15:30
This ccontains all the data points that I have visited in the past and may be usefull in the comming future.
- Monitoring Tools
- BigPanda
- DataDog
- WSO2
set -e
sudo true
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo sh -c 'echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" > /etc/apt/sources.list.d/docker.list'
sudo apt-get update
sudo apt-get purge lxc-docker
sudo apt-cache policy docker-engine
@fakabbir
fakabbir / python_decorator_guide.md
Created July 12, 2019 00:18 — forked from Zearin/python_decorator_guide.md
The best explanation of Python decorators I’ve ever seen. (An archived answer from StackOverflow.)

NOTE: This is a question I found on StackOverflow which I’ve archived here, because the answer is so effing phenomenal.


Q: How can I make a chain of function decorators in Python?


If you are not into long explanations, see [Paolo Bergantino’s answer][2].

@fakabbir
fakabbir / App.css
Created April 19, 2020 17:57
Uploading Files Using React Hooks
.Dropzone {
height: 200px;
width: 200px;
background-color: #fff;
border: 2px dashed rgb(187, 186, 186);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
@fakabbir
fakabbir / dict_to_dynamodb_item.py
Created April 26, 2020 12:23 — forked from JamieCressey/dict_to_dynamodb_item.py
Coverts a standard Python dictionary to a Boto3 DynamoDB item
def dict_to_item(raw):
if type(raw) is dict:
resp = {}
for k,v in raw.iteritems():
if type(v) is str:
resp[k] = {
'S': v
}
elif type(v) is int:
resp[k] = {
@fakabbir
fakabbir / dict_to_dynamodb_item.py
Created April 26, 2020 12:23 — forked from JamieCressey/dict_to_dynamodb_item.py
Coverts a standard Python dictionary to a Boto3 DynamoDB item
def dict_to_item(raw):
if type(raw) is dict:
resp = {}
for k,v in raw.iteritems():
if type(v) is str:
resp[k] = {
'S': v
}
elif type(v) is int:
resp[k] = {
@fakabbir
fakabbir / index.html
Created April 29, 2021 08:21
render mock ui with tailwind
<div class="flex flex-row">
<div class="bg-light-blue-900 h-screen flex flex-col justify-between">
<div class="border-b border-gray-400">
<div class="flex flex-row space-x-3 m-4 pr-14">
<img class="w-7" src="https://dashboard.render.com/static/media/logo-redesign-02-icon.42687791.svg" />
<p class="text-white text-3xl font-norma">render</p>
</div>
</div>
<div class="flex flex-col space-y-3 ml-4 flex-auto mt-8">