I always forgot tmux command, here a simple list of commands and shortcut keys.
Another good cheatsheet online
# create a session
I always forgot tmux command, here a simple list of commands and shortcut keys.
Another good cheatsheet online
# create a session
if [ ! -f .env ] | |
then | |
export $(cat .env | xargs) | |
fi |
#### My personal zsh minimal standard config #### | |
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="$HOME/.oh-my-zsh" | |
# Configure language | |
export LC_ALL=en_US.UTF-8 | |
export LANG=en_US.UTF-8 |
# set environment vars from an .env file | |
export $(grep -v '^#' .myenvfile | xargs) | |
# unset environment vars from an .env file | |
unset $(grep -v '^#' .myenvfile | awk 'BEGIN { FS = "=" } ; { print $1 }') |
#!/bin/bash | |
# generate new personal ed25519 ssh key | |
ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_ed25519 -C "rob thijssen <rthijssen@gmail.com>" | |
# generate new host cert authority (host_ca) ed25519 ssh key | |
# used for signing host keys and creating host certs | |
ssh-keygen -t ed25519 -f manta_host_ca -C manta.network | |
eval "$(ssh-agent -s)" |
If you see Access denied
, or other error messages when trying to access a git repository or SSH server, here are some steps you can take to resolve the problem.
When in doubt, run ssh -vvv <other options...>
to enable more verbose logging.
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"blocks": [ | |
{ | |
"type": "prompt", | |
"alignment": "left", | |
"segments": [ | |
{ | |
"type": "session", | |
"style": "plain", |
## Numpy Cheatsheet and useful operations | |
## Reference: | |
# https://gist.github.com/flyudvik/ffc5f949d9da4aec7bc3ed96cf0038d6 | |
# https://towardsdatascience.com/numpy-cheat-sheet-4e3858d0ff0e | |
#Import numpy | |
import numpy as np | |
##################### | |
### ARRAY METHODS ### |
# From SQL to Python Pandas Cheatsheet | |
# many thanks to: https://medium.com/jbennetcodes/how-to-rewrite-your-sql-queries-in-pandas-and-more-149d341fc53e | |
# Using airports data example: https://ourairports.com/data/ | |
import pandas as pd | |
# Reset Pandas Index | |
df.reset_index(drop=True, inplace=True) | |
# Simply add a columns with an easy calculation |