Skip to content

Instantly share code, notes, and snippets.

View sohhamm's full-sized avatar
🎯
Focusing

Soham Sarkar sohhamm

🎯
Focusing
View GitHub Profile
@sohhamm
sohhamm / stitches.config.ts
Created January 23, 2022 09:42
Stitches React Utils
{
utils: {
mx: value => ({marginLeft: value, marginRight: value}),
my: value => ({marginTop: value, marginBottom: value}),
mt: value => ({marginTop: value}),
mb: value => ({marginBottom: value}),
mr: value => ({marginRight: value}),
ml: value => ({marginLeft: value}),
px: value => ({paddingLeft: value, paddingRight: value}),
py: value => ({paddingTop: value, paddingBottom: value}),
@sohhamm
sohhamm / git-commit-history-author-change.sh
Created January 18, 2022 16:12
Shell script to change your name and email in git commit history
#!/bin/sh
git filter-branch --env-filter '
OLD_EMAIL="old-email@test.com"
OLD_NAME="old name"
CORRECT_EMAIL="new-email@test.com"
CORRECT_NAME="new name"
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
then