Skip to content

Instantly share code, notes, and snippets.

View ishahid's full-sized avatar

Imran Shahid ishahid

View GitHub Profile
@ishahid
ishahid / viscosity-to-ovpn.py
Last active June 15, 2024 18:45
Convert all of your Viscosity connections into OVPN configuration files for OpenVPN
#!/usr/bin/python
"""Convert all of your Viscosity connections into OVPN configuration files for OpenVPN
https://gist.github.com/ishahid/693c2c97b3236a3c2416fc09ab170244
"""
import re
import glob
from os.path import expanduser, dirname
@ishahid
ishahid / exif.py
Last active October 22, 2017 11:15
Read EXIF data from an image
#!/usr/local/bin/python
"""Read EXIF data from an image
https://gist.github.com/ishahid/137f8724d8cff2304dffd69f3ade26d7
"""
try:
import os, sys
# import json
from PIL import Image
++++++++++ initialize counter (cell #0) to 10
[ use loop to set the next six cells to 70/80/90/100/30/10
> +++++ ++ add 7 to cell #1
> +++++ +++ add 8 to cell #2
> +++++ ++++ add 9 to cell #3
> +++++ +++++ add 10 to cell #4
> +++ add 3 to cell #5
> + add 1 to cell #6
<<<<<< - decrement counter (cell #0)
]
BEGIN MESSAGE.
YuaAvHnRzG4pMlH dhrWYKoH9t4CaVi rQ2SWhIWfRKTwKU A7R0KU5hQBIv6TE
2CbHw9YaVVzGVVP amXtHJ9uhwTTCKq 6Xr2MZHgg72yGkH euFyt4tXabbaAzG
LgE6AwGi2PikFh1 w8haQA8HRxOHPmU S6oqiYfYTaBFTjb vDyySRuCQgFXgO1
hwMMkVtJVrK0CCM 3JNWMFo8ryoEghZ dILic2IP.
END MESSAGE.