This file contains 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 |
This file contains 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
# List of Python tricks from Dan Bader's (realpython.com) newsletter | |
# ===================================== # | |
# How to merge two dictionaries (3.5+) | |
x = {'a': 1, 'b': 2} | |
y = {'b': 3, 'c': 4} | |
z = {**x, **y} | |
print(z) | |
# {'c': 4, 'a': 1, 'b': 3} |
This file contains 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
# CURSOR | |
"\033[<N>A" # Move cursor up N lines (defaults to 1) | |
"\033[<N>B" # Move cursor down N lines (defaults to 1) | |
"\033[<N>C" # Move cursor right N lines (defaults to 1) | |
"\033[<N>D" # Move cursor left N lines (defaults to 1) | |
"\033[K" # Clear contents of line | |
# COLORS | |
"\033[90m" # light grey | |
"\033[91m" # red |
This file contains 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 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
import os | |
import sys | |
import pickle | |
import base64 | |
from googleapiclient.discovery import build | |
from google_auth_oauthlib.flow import InstalledAppFlow | |
from google.auth.transport.requests import Request | |
from email.mime.text import MIMEText | |
def get_gmail_api_instance(): |
This file contains 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 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 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
FROM ubuntu:18.04 | |
RUN apt-get update | |
RUN apt-get install -y octave | |
WORKDIR / | |
ENV SCRIPT="" | |
COPY octave_runner / | |
RUN chmod +x /octave_runner |
This file contains 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
# Initialize Git LFS and start tracking files with it | |
## Install Git LFS (MacOS) | |
brew install git-lfs | |
## Change to repository | |
cd $PROJECT_REPO | |
## If you've already added or committed the file(s) you'd like to track with LFS, | |
## you'll need to edit them out of the Git history. See: |
NewerOlder