This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Completely remove a file from git history | |
| # Remove file from all commits | |
| # $path_to_file supports wildcards: path/to/directory/* | |
| git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch $path_to_file" HEAD | |
| # Prune branch | |
| git reflog expire --expire=now --all && git gc --prune=now --aggressive | |
| # Rewrite history in remote |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # list all custom BASH functions | |
| lsf() { | |
| if [[ ! -d ~/.bash_functions ]] ; then | |
| if [[ ! -f ~/.bashrc ]] ; then | |
| echo "lsf: err: no such directory ~/.bash_functions, no such file ~/.bashrc" | |
| return 1 | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # test port knocking using nmap | |
| for port in 7151 10888 8899 ; do nmap -Pn --host_timeout 201 --max-retries 0 -p $port ipaddress ; done && ssh root@ipaddress | |
| # test port knocking using knock | |
| sudo apt-get update | |
| sudo apt-get install knockd | |
| knock ipaddress 7151 10888 8899 && ssh root@ipaddress |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Taco Bell Programming: http://widgetsandshit.com/teddziuba/2010/10/taco-bell-programming.html | |
| AWS Services explained: https://adayinthelifeof.nl/2020/05/20/aws.html | |
| Hypermodern Python: https://cjolowicz.github.io/posts/hypermodern-python-01-setup/ | |
| A Bootstrapped SaaS Journey to 10K MRR: https://www.bannerbear.com/journey-to-10k-mrr/ | |
| No Meetings, No Deadlines, No Full-Time Employees: https://sahillavingia.com/work | |
| Facebook senior software engineer interview: https://daqo.medium.com/facebook-senior-software-engineer-interview-the-only-post-youll-need-to-read-e4604ff2336d | |
| The Architecture Behind A One-Person Tech Startup: https://anthonynsimon.com/blog/one-man-saas-architecture/ | |
| What I wish I knew before building a Shopify App: https://ma.ttias.ch/what-i-wish-i-knew-before-building-a-shopify-app.html | |
| Hire me and pay what you want, just give me interesting work: https://truzzi.me/hire-me-pay-what-you-want-interesting-work/ | |
| How to make an ineffective 404 page: https://ericwbailey.design/writing/how-to-make-an-ine |
OlderNewer