Skip to content

Instantly share code, notes, and snippets.

View aakashrshah's full-sized avatar
🎯
Focusing

Aakash Shah aakashrshah

🎯
Focusing
View GitHub Profile
@bruno-uy
bruno-uy / install_psycopg2_mac_m1.md
Last active March 19, 2024 10:10
Install psycopg2 in Mac M1

Install psycopg2 in Mac M1

Error while installing through pip install psycopg2 looks like this:

Please add the directory containing pg_config to the PATH

or specify the full executable path with the option (...)

Reference to the solution here.

@aakashrshah
aakashrshah / Code.gs
Last active December 23, 2020 21:52
Google App Script to generate Calendar and Habit Tracker in Google Sheets.
// https://bit.ly/2021_habit_tracker
var monthName = [
'January',
'February',
'March',
'April',
'May',
'June',
'July',
@n00neimp0rtant
n00neimp0rtant / gist:9515611
Last active March 14, 2024 06:30
simple squash without rebase
## within current branch, squashes all commits that are ahead of master down into one
## useful if you merged with upstream in the middle of your commits (rebase could get very ugly if this is the case)
## commit any working changes on branch "mybranchname", then...
git checkout master
git checkout -b mybranchname_temp
git merge --squash mybranchname
git commit -am "Message describing all squashed commits"
git branch -m mybranchname mybranchname_unsquashed
git branch -m mybranchname