Skip to content

Instantly share code, notes, and snippets.

View antopj's full-sized avatar
🎯
Focusing

Anto P Joseph antopj

🎯
Focusing
View GitHub Profile
@antopj
antopj / ssh_jump.py
Created October 7, 2022 07:53 — forked from tintoy/ssh_jump.py
SSH via jump-hosts using Paramiko
#!/usr/bin/env python3
import os
import paramiko
ssh_key_filename = os.getenv('HOME') + '/.ssh/id_rsa'
jumpbox_public_addr = '168.128.52.199'
jumpbox_private_addr = '10.0.5.10'
target_addr = '10.0.5.20'
@antopj
antopj / gtb
Created August 2, 2022 10:32 — forked from dschuetz/gtb
Hackish script to compute Google Authenticator tokencodes and launch a Tunnelblick VPN with the appropriate computed password+tokencode
#!/usr/bin/python
import hmac, struct, time, base64, hashlib # for totp generation
import re, sys, subprocess # for general stuff
from getopt import getopt, GetoptError # pretending to be easy-to-use
#
# gtb - Google(auth) + Tunnelblick
#
@antopj
antopj / keybase.md
Created May 4, 2017 11:48
Keybase_Proof

Keybase proof

I hereby claim:

  • I am antopj on github.
  • I am antopjoseph (https://keybase.io/antopjoseph) on keybase.
  • I have a public key whose fingerprint is B076 65CF 2C97 A45D EE3F C3CF E821 959B 29A4 9CA5

To claim this, I am signing this object:

@antopj
antopj / env-generate.sh
Last active June 26, 2017 11:07
generate .env file from wp-config.php RUN THIS >> wget -qO genv https://goo.gl/uKJNSd && sudo bash genv && rm genv
#!/usr/bin/bash
######### created by Anto ##########
#!IMPORTANT
#execute this script from same directory where wp-config.php exists
#considering current working directory name as site name /var/www/example.com/
#SITENAME=${PWD##*/}
echo -e "Enter Your domain name"
@antopj
antopj / keybase.md
Created November 3, 2016 03:27
keybase.md

Keybase proof

I hereby claim:

  • I am antopjoseph on github.
  • I am antopjoseph (https://keybase.io/antopjoseph) on keybase.
  • I have a public key whose fingerprint is AE89 23AD 22E6 B8B7 AE04 BF87 FC35 AF20 4A98 78DD

To claim this, I am signing this object: