-
In
~/.ssh/config, include the lines:Host * ControlPath ~/.ssh/sockets/%r@%h-%p
| #!/bin/bash | |
| # Execute commands on a different repository and | |
| # come back to where we have been ! | |
| _cdex(){ | |
| commandToBeExecuted="${@:2}" | |
| echo "Executing => '$commandToBeExecuted' in \"$1\"" | |
| # Using zoxide i can navigate to a directory just |
| import time | |
| from functools import lru_cache, wraps | |
| from datetime import datetime, timedelta | |
| def timed_lru_cache(seconds: int, maxsize: int = None): | |
| def wrapper_cache(func): | |
| print('I will use lru_cache') |
| import time | |
| from contextlib import suppress | |
| from subprocess import Popen, PIPE | |
| HISTORY = [] | |
| def _execute_ls(given_args: list = []): | |
| final_args = ['ls'].extend(given_args) | |
| output = Popen(args=final_args or ['ls'], stdout=PIPE).communicate()[0] |
| #!/bin/bash | |
| cpd(){ | |
| mkdir "$(dirname ${@: -1})" | |
| cp -r $@ | |
| } |
| .PHONY: run | |
| run: ## This is a comment that will appear on the "make help" | |
| .PHONY: help | |
| help: ## print this help | |
| @awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z0-9_-]+:.*?## / {gsub("\\\\n",sprintf("\n%22c",""), $$2);printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) |
| try: | |
| import cv2 | |
| except ImportError: | |
| from cv2 import cv2 | |
| import numpy as np | |
| def toASCII(frame, cols=120, rows=35): |
| [user] | |
| email = [email protected] | |
| name = sanix-darker | |
| [filter "lfs"] | |
| clean = git-lfs clean -- %f | |
| smudge = git-lfs smudge -- %f | |
| process = git-lfs filter-process | |
| required = true | |
| [core] |
git remote add upstream https://github.com/original-repo/goes-here.git
git fetch upstream
git rebase upstream/master
git push origin master --force
| #/bin/bash | |
| _help(){ | |
| curl -s -L cheat.sh/$@ | less -R | |
| } | |
| alias h='_help' |