Skip to content

Instantly share code, notes, and snippets.

View sarthaksavvy's full-sized avatar
🏠
Working from home

Sarthak Shrivastava sarthaksavvy

🏠
Working from home
View GitHub Profile
@sarthaksavvy
sarthaksavvy / # Follow Unfollow Javascript Script
Last active September 27, 2023 07:29
Automate Unfollow/Follow
Check files inside this gist
# Set python as python3 on mac
ln -s -f /usr/local/bin/python[version] /usr/local/bin/python
syntax on
@sarthaksavvy
sarthaksavvy / .phpcsfixer
Last active April 10, 2023 23:22
PHP CS Fixer
<?php
return PhpCsFixer\Config::create()
->setRules(array(
'@PSR2' => true,
'array_indentation' => true,
'array_syntax' => array('syntax' => 'short'),
'combine_consecutive_unsets' => true,
'method_separation' => true,
'no_multiline_whitespace_before_semicolons' => true,
@sarthaksavvy
sarthaksavvy / .gitconfig
Last active September 15, 2021 19:21
Git configuration
[alias]
acm = "!f() { git add . && git commit -m \"$(echo $@)\"; }; f";
com = checkout master
cob = checkout -b
b = branch
p = push
pl = pull
s = status
@sarthaksavvy
sarthaksavvy / cloudSettings
Last active April 9, 2024 13:38
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-09-04T18:49:47.910Z","extensionVersion":"v3.4.3"}
@sarthaksavvy
sarthaksavvy / Zsh
Last active March 17, 2023 18:37
Terminal Alias
export DEFAULT_USER="$(whoami)"
export PATH=~/.composer/vendor/bin:$PATH
# Alias for pythons
alias py=python
# Alias for composer
alias cr=composer
alias cri="composer install"
alias crd="composer dump-autoload"