Skip to content

Instantly share code, notes, and snippets.

@vadikgo
vadikgo / LUKS_and_TPM2_with_Fedora.md
Last active September 7, 2023 10:27 — forked from jdoss/LUKS_and_TPM2_with_Fedora.md
Decrypt LUKS volumes with a TPM on Fedora 35+

Decrypt LUKS volumes with a TPM on Fedora 35+

This guide allows you to use the TPM on your computer to decrypt your LUKS encrypted volumes. If you are worried about a cold boot attack on your hardware please DO NOT use this guide with your root volume!

Preflight Checks

Verify that you have a TPM in your computer:

# systemd-cryptenroll --tpm2-device=list
PATH DEVICE DRIVER
@vadikgo
vadikgo / ffmpeg.md
Created April 25, 2021 08:07 — forked from steven2358/ffmpeg.md
FFmpeg cheat sheet
@vadikgo
vadikgo / guide.text
Created April 11, 2021 17:47 — forked from sled/guide.text
Guid to cross compile transmission 2.82 for Western Digital MyCloud
########################################################
## CROSS COMPILING TRANSMISSION 2.82 FOR WD MY CLOUD ##
########################################################
This is a guide to compile transmission 2.82 for the WD MyCloud 2/3/4 TB.
Because I didn't want to install the build tools and dependencies on my NAS I chose to
setup a cross-compiler toolchain on my x86_64 Ubuntu 12.04 machine and create a .deb package
that can be installed on the NAS. Furthermore the cross compiler can be used to compile anything for the My Cloud (printer drivers, etc.)
@vadikgo
vadikgo / fedora.citrix.workspace.sh
Created February 2, 2021 07:27 — forked from Thermionix/fedora.citrix.workspace.sh
Install Citrix Workspace App on Fedora 32
#!/bin/sh
#Install Citrix Workspace App on Fedora 32
#Download Client From https://www.citrix.com/en-au/downloads/workspace-app/linux/workspace-app-for-linux-latest.html
sudo dnf install -y ICAClientWeb-rhel-20.04.0.21-0.x86_64.rpm
sudo dnf install -y compat-openssl10.x86_64
# Update libcrypto reference in desktop file
sudo sed -i '/Exec=/d' /usr/share/applications/wfica.desktop
@vadikgo
vadikgo / disableSSL.groovy
Created March 6, 2020 11:21 — forked from thomastaylor312/disableSSL.groovy
Disable SSL validation in Groovy
def nullTrustManager = [
checkClientTrusted: { chain, authType -> },
checkServerTrusted: { chain, authType -> },
getAcceptedIssuers: { null }
]
def nullHostnameVerifier = [
verify: { hostname, session -> true }
]
@vadikgo
vadikgo / gem-fetch-dependencies.rb
Created April 12, 2018 12:40 — forked from drhuffman12/gem-fetch-dependencies.rb
Extend 'gem fetch' command. Fetch all dependencies. Handles OS (Windows vs non-Windows) and Ruby Platform (JRuby vs Ruby).
#!/usr/bin/ruby
=begin
## USAGE:
# Ruby:
ruby gem-fetch-dependencies.rb fetch <gem_name> --dependencies
# JRuby:
jruby gem-fetch-dependencies.rb fetch <gem_name> --dependencies
@vadikgo
vadikgo / web-servers.md
Created March 19, 2018 22:19 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@vadikgo
vadikgo / README.md
Created November 27, 2017 16:18 — forked from Tenzer/README.md
Docker Registry S3 cleanup script

Docker Registry S3 cleanup script

This simply requires you to install the boto3 package and set the DOCKER_BUCKET variable to point at the bucket you would like to clean up, and the rest should be handled automatically. That's is presuming you have credentials to manage the S3 bucket in one of the default locations where Boto go to look for them.

Since the script more or less traverses through your entire S3 bucket, it probably makes sense to only run it infrequently, like daily or weekly, depending on the amount of repositories and layers you have and the amount of updates on the registry in total.

@vadikgo
vadikgo / openvpn-docker.sh
Created October 30, 2017 19:00 — forked from ofstudio/openvpn-docker.sh
Run OpenVPN Server in Docker container
#!/usr/bin/env bash
# https://hub.docker.com/r/kylemanna/openvpn/
OVPN_DATA="openvpn_data" # Docker volume name
OVPN_HOST="vpn.hostname.org" # Server hostname
OVPN_USER="peter_the_pig" # Client username
# init
docker volume create --name $OVPN_DATA
# Based on a modified script from here: http://tmont.com/blargh/2014/1/uploading-to-s3-in-bash
S3KEY="YOUR-ACCESSKEY"
S3SECRET="YOUR-SECRETKEY"
function putS3
{
path=$1
file=$2
aws_path=$3