Skip to content

Instantly share code, notes, and snippets.

@bitmonkey
bitmonkey / gist:6f91351c83b292d2bd537c1add3c41f2
Last active October 10, 2025 13:00
Veracrypt + pia install on parrot 6
pushd /tmp && \
curl -L -O https://launchpad.net/veracrypt/trunk/1.26.24/+download/veracrypt-1.26.24-Debian-12-amd64.deb && \
curl -L -O https://installers.privateinternetaccess.com/download/pia-linux-3.7-08412.run && \
sudo dpkg --install veracrypt-1.26.24-Debian-12-amd64.deb && \
chmod +x pia-linux-3.7-08412.run && \
./pia-linux-3.7-08412.run && \
popd
Mon May 23 10:19:11 UTC 2022
@bitmonkey
bitmonkey / check_hadoop_version.py
Created September 20, 2021 09:54
Check what hadoop version is installed.
from pyspark.sql import SparkSession
spark = SparkSession.builder.getOrCreate()
sc = spark.sparkContext
print(f"Hadoop version = {sc._jvm.org.apache.hadoop.util.VersionInfo.getVersion()}")
@bitmonkey
bitmonkey / gist:da823bfa85d4875146ec96dc02b90f56
Created April 19, 2018 15:26
Get SSL cert info from terminal
openssl s_client -showcerts -servername mydomain.com -connect mydomain.com:443 2>/dev/null | openssl x509 -inform pem -noout -text | le
ss
@bitmonkey
bitmonkey / gist:574457d05596f365a00a5f32c52d16d0
Created February 8, 2017 09:48
Secure DJANGO_SECRET generation
import random
import string
print ''.join([random.SystemRandom().choice("{}{}{}".format(string.ascii_letters, string.digits, string.punctuation)) for i in range(63)])"
@bitmonkey
bitmonkey / gist:cd867a152f2d92a9c033
Created February 29, 2016 14:27
Jenkins failing to start - jenkins log file + failed boot log
FILE: /var/log/jenkins.log
------------------------------
Feb 29, 2016 1:17:34 PM winstone.Logger logInternal
INFO: JVM is terminating. Shutting down Winstone
Running from: /usr/share/jenkins/jenkins.war
Feb 29, 2016 1:18:04 PM winstone.Logger logInternal
INFO: Beginning extraction from war file
Feb 29, 2016 1:18:05 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: jetty-winstone-2.9
Feb 29, 2016 1:18:06 PM org.eclipse.jetty.util.log.JavaUtilLog info
@bitmonkey
bitmonkey / gist:6ed074dde9d3b3e5acce
Last active August 29, 2015 14:19
Convert Issue to Pull request
import json
import requests
TOKEN='XXX'
ISSUE = 3
REPO_OWNER='someone'
REPO = 'aproject'
TARGET_BRANCH = 'master'
FORKED_BRANCH = 'task/fix-tests'
FORK_OWNER = 'me'
@bitmonkey
bitmonkey / gist:5541396
Created May 8, 2013 15:51
Pinned version omnibus install using wget
wget -qO- http://www.opscode.com/chef/install.sh | sudo bash -s -- -v 11.4.4-2