Skip to content

Instantly share code, notes, and snippets.

{
"basics": {
"name": "Thomas Edison",
"label": "Inventor and Businessman",
"picture": "https://example.com/photo.jpg",
"email": "[email protected]",
"phone": "(123) 456-7890",
"website": "https://thomasedison.com",
"summary": "Prolific inventor and businessman known for developing many devices that greatly influenced life around the world, including the phonograph, the motion picture camera, and the electric light bulb.",
"location": {
{
"basics": {
"name": "Thomas Edison",
"label": "Inventor and Businessman",
"picture": "https://example.com/photo.jpg",
"email": "[email protected]",
"phone": "(123) 456-7890",
"website": "https://thomasedison.com",
"summary": "Prolific inventor and businessman known for developing many devices that greatly influenced life around the world, including the phonograph, the motion picture camera, and the electric light bulb.",
"location": {
@hijak
hijak / rotate.sh
Last active February 20, 2020 10:22
Vault Password Rotation - Linux User
#!/bin/bash
source /home/$USER/.bashrc
echo "Renew lease for"
curl -sS --fail -X POST -H "X-Vault-Token: $VAULT_TOKEN" ${VAULT_ADDR}/v1/auth/token/renew-self | jq .auth.lease_duration
retval=$?
if [[ $retval -ne 0 ]]; then
echo "Error renewing Vault token lease."
@hijak
hijak / config.yaml
Last active January 11, 2020 23:55
k3s
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6fxvW8VLHJrEj8v7WHLjNkootX+WGquz8ARqTWcnkLYueJZq4i9YsVf1wUIyIt2dqA1bfLPc3B+ulOs7MACICvayumCOzz5NVW5xEWG8tTbQGTN0RD9uXDEx1EmcCvsZ9gKwibLNGxcwiHzVPmOmKdbp3CT4615JJHdmLtdhHcEhiJhxNc8D+Etv929VOIH95Or9cpzn+aSKs4BX6f+R5TWY6cjuLgvR5f5i9hVxwmNp1zbzhMPijKpbUH56dyl2NPlPlcMU1FLwlBWZCx5hG+tBsY2wFyyp5JZATQsJQ+t7uGzmhZbqxa1VaAJivgfWRQglP8iTz3MhlKy4g4yYd
hostname: k3.k8.tf

Keybase proof

I hereby claim:

  • I am hijak on github.
  • I am hijak (https://keybase.io/hijak) on keybase.
  • I have a public key ASCzMj5bqiYUdXrRk7D8yRGXUHyT-AO6VTosorK29Olvygo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am hijak on github.
  • I am hijak (https://keybase.io/hijak) on keybase.
  • I have a public key ASBftrLW4ZY5ceOH7KPM5u0mwVHy1ZjHItW0vXWREVPc1wo

To claim this, I am signing this object:

@hijak
hijak / aws.sh
Last active November 18, 2020 04:50
[aws] #bash #aws
#!/bin/bash
_usage() {
echo "Usage: $0 CHECKNAME PROFILE"
echo "Checks: infra, os, keys, vol"
echo "you might want to output stdout to a .tsv file"
}
_infra () {
@hijak
hijak / eztv
Last active August 29, 2015 14:18
eztv rproxy
var startingPort = 2011
var neoProxy = require('neo-proxy')
var customHTML = '<center><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script><ins class="adsbygoogle" style="display:inline-block;width:728px;height:90px" data-ad-client="ca-pub-9374665233285997" data-ad-slot="9625600444"></ins><script>(adsbygoogle = window.adsbygoogle || []).push({});</script></center></br>'
var batman = neoProxy({
port: startingPort,
target: 'https://eztv.ch',
needle: '<div id="line"></div>',
@hijak
hijak / zzz_disablev3.conf
Created December 11, 2014 08:22
disable sslv3
<IfModule mod_ssl.c>
SSLProtocol All -SSLv2 -SSLv3
SSLCipherSuite ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:!LOW:!SSLv2:!EXP
</IfModule>
print ip of eth0
ip a s eth0 | sed -nr 's!.*inet ([^/]+)/.*!\1!p'
print groups
cut -d: -f1 /etc/group | sort
find external ip address
curl http://canihazip.com/s && echo
load of server/mem/disk