Skip to content

Instantly share code, notes, and snippets.

View kevydotvinu's full-sized avatar
🏠
Working from home

Vinu Kochukuttan kevydotvinu

🏠
Working from home
View GitHub Profile
@kevydotvinu
kevydotvinu / 00-core.bu
Last active June 9, 2022 08:20
Butane config for github.com/kevydotvinu/ocp-ipi-baremetal-lab
variant: fcos
version: 1.0.0
passwd:
users:
- name: core
gecos: CoreOS Admin
groups:
- sudo
- wheel
- adm
[Unit]
Description=Setup a secure tunnel to %I
After=network-online.target
PartOf=vpn.service
[Service]
User=kevy
ExecStart=/usr/bin/polipo -c /etc/polipo/polipo.conf
RestartSec=5
Restart=always
[Unit]
Description=Setup a secure tunnel to %I
After=network-online.target
[Service]
User=kevy
EnvironmentFile=/etc/default/ssht@%i
ExecStart=/usr/bin/ssh -i /key.pem -NT -o ForwardX11=yes -o ServerAliveInterval=60 -o ExitOnForwardFailure=yes -R ${REMOTE_PORT}:127.0.0.1:${LOCAL_PORT} ubuntu@${TARGET}
# Restart every >2 seconds to avoid StartLimitInterval failure
@kevydotvinu
kevydotvinu / GPG Cheat Sheet
Created January 2, 2018 06:50
Useful Commands
to create a key:
gpg --gen-key
to export a public key into file public.key:
gpg --export -a "User Name" > public.key
to export a private key:
gpg --export-secret-key -a "User Name" > private.key
to import a public key:
@kevydotvinu
kevydotvinu / RunAProxyOnAmazonEC2VPC.md
Created October 10, 2017 06:34 — forked from webinista/RunAProxyOnAmazonEC2VPC.md
Create a proxy server on an Amazon EC2 (VPC) instance

This will create a proxy server in whatever your availability zone your VPC is in. For me, that's us-east-1b. For you, that may be something different. Steps 10+ should more or less work regardless of your provider since those steps cover the setup and configuration of TinyProxy.

  1. Click the Launch Instance button.
  2. Choose Ubuntu Server 14.04 LTS (HVM), SSD Volume Type. This isn't strictly necessary. If you choose another OS, check its documentation for how to install new packages.
  3. On the Choose an Instance Type screen, select t2.micro. It's Free Tier eligible.
  4. Click the Next: ... buttons until you reach the Configure Security Group screen.
    • You may wish to reduce the amount of storage on the Add Storage screen. This is optional.
    • You may wish to add a tag on the Tag Instance screen. This is also optional.
  5. On the Configure Security Group screen:
  • Select Create a new security group.

Keybase proof

I hereby claim:

  • I am kevydotvinu on github.
  • I am kevydotvinu (https://keybase.io/kevydotvinu) on keybase.
  • I have a public key whose fingerprint is 14D8 B939 7A8F 10DA 44B0 0FE3 B5CC F2B7 D917 627C

To claim this, I am signing this object: