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
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add – | |
sudo curl -o /etc/apt/sources.list.d/microsoft.list https://packages.microsoft.com/config/ubuntu/18.04/prod.list | |
sudo apt-get update | |
sudo apt-get install powershell | |
pwsh | |
pwsh> Install-Module -Name VMware.PowerCLI |
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
// Stolen from https://www.gaggl.com/2015/07/chromeos-removing-ssh-known_hosts-from-chromebook/ | |
CTRL + Shift + J | |
term_.command.removeAllKnownHosts(); |
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
# Sample conf to remove NET_RAW access from k8s pods | |
# Prevent ARP spoofing clusters | |
# https://blog.aquasec.com/dns-spoofing-kubernetes-clusters | |
apiVersion: v1 kind: Pod metadata: | |
name: security-context-demo | |
spec: | |
containers: | |
- name: test | |
image: alpine |
This will NOT set up a 'proper' CA.
This will NOT be a trusted CA.
But it will give you a cert to use as your 'trusted CA' if needed.
First, we need to create a new cert and key. This will be your new CA cert, so change the -subj
values to something more appropriate.
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
export GPG_TTY=$(tty) | |
gpg-connect-agent updatestartuptty /bye | |
unset SSH_AGENT_PID | |
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) |
Continuing in the series of posts about lesser-known bash features, here I take you through seven variables that bash makes available that you may not have known about.
PROMPT_COMMAND
You might already know that you can manipulate your prompt to show all sorts of useful information, but what fewer people know is that you can run a shell command every time your prompt is displayed.
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
### Notes and stuffs for ssh config | |
### Basics | |
# IdentityFile ~/.ssh/default | |
# ServerAliveInterval 240 | |
# Include configs/* | |
### Port forwarding | |
# Host server |
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
#! /usr/bin/env bash | |
#-- Dave Wallraff | |
# First things first, I'm the realest... | |
shopt -s extglob | |
mkdir -p working_dir | |
# https://gist.github.com/oneohthree/f528c7ae1e701ad990e6 | |
function slugify { |