I hereby claim:
- I am vimkp on github.
- I am vimkp (https://keybase.io/vimkp) on keybase.
- I have a public key whose fingerprint is 71AD 2979 BF74 B423 2AF7 3F70 6D9C 7A96 545F A5EE
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
This guide will demonstrate the steps required to encrypt and decrypt files using OpenSSL on Mac OS X. The working assumption is that by demonstrating how to encrypt a file with your own public key, you'll also be able to encrypt a file you plan to send to somebody else using their private key, though you may wish to use this approach to keep archived data safe from prying eyes.
Assuming you've already done the setup described later in this document, that id_rsa.pub.pcks8 is the public key you want to use, that id_rsa is the private key the recipient will use, and secret.txt is the data you want to transmit…
$ openssl rand 192 -out key
$ openssl aes-256-cbc -in secret.txt -out secret.txt.enc -pass file:key
https://dev.to/mmphego/how-to-sign-your-commits-on-github-with-gpg-37nj | |
TL;DR | |
This post details how to set-up GPG to sign your commits/tags, as well as adding your GPG public keys to your GitHub account. | |
The Story | |
In this blog post, I will detail how you can set-up their system such that they can use a GPG key to sign their git commits/tags and why you need to. | |
Judging from the title of this post you are probably wondering, why should I even sign my commits or what is GPG and what difference does this make. You would also probably be like, I have been pushing code to GitHub for ages and why do I need to sign my commits now... |
This post details how to set-up GPG to sign your commits/tags, as well as adding your GPG public keys to your GitHub account.
In this blog post, I will detail how you can set-up their system such that they can use a GPG key to sign their git commits/tags and why you need to.
Judging from the title of this post you are probably wondering, why should I even sign my commits or what is GPG and what difference does this make. You would also probably be like, I have been pushing code to GitHub for ages and why do I need to sign my commits now...
This is a step by step document to help you setup unlocking LUKS partition with Clevis. However, Arch Linux Wiki details the built in support for unlocking LUCS without requiring Clevis but the steps are not entirely cleaar. | |
Step 1: Install Clevis packages and refresh the TPM permissions | |
``` | |
$ sudo -i | |
# apt install clevis clevis-tpm2 clevis-luks clevis-udisks2 clevis-systemd clevis-initramfs -y | |
# udevadm trigger | |
``` |
# Python3 program to print all li tag values for a supplied website | |
import requests | |
import argparse | |
from bs4 import BeautifulSoup | |
print(help) | |
parser = argparse.ArgumentParser(description='This is a program to print all li tags') | |
parser.add_argument("-url", help="enter the URL you want to parse. eg. https://www.mirraw.com/") |
This is a step by step document to help you setup unlocking LUKS partition with Clevis. However, Arch Linux Wiki details the built in support for unlocking LUCS without requiring Clevis but the steps are not entirely cleaar.
Step 1: Install Clevis packages and refresh the TPM permissions
$ sudo -i
# apt install clevis clevis-tpm2 clevis-luks clevis-udisks2 clevis-systemd clevis-initramfs -y
# udevadm trigger
Background
I've a home lab running Proxmox and I often forget to shut the host, wasting power even when there's no containers or virtual machines running.
This script is setup on cron to run every 5 mins, it checks, if there are no containers & Virtual machines running then it will shut down the host in 30 mins or 1800 sec.
#! /bin/bash
if [[ $(/usr/sbin/pct list | /usr/bin/grep -i running | /usr/bin/wc -l) == 0 && $(/usr/sbin/qm list | /usr/bin/grep running | /usr/bin/wc -l) == 0 ]]; then
/usr/bin/sleep 1800
if [[ $(/usr/sbin/pct list | /usr/bin/grep -i running | /usr/bin/wc -l) == 0 && $(/usr/sbin/qm list | /usr/bin/grep running | /usr/bin/wc -l) == 0 ]]; then
The below are the commands you can run on a new proxmox setup
sed -i 's/^/#/' /etc/apt/sources.list.d/pve-enterprise.list
sed -i 's/.data.status.toLowerCase() !== '\''active'\''/.data.status.toLowerCase() == '\''active'\''/g' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
sed -i.backup -z "s/res === null || res === undefined || \!res || res\n\t\t\t.data.status.toLowerCase() \!== 'active'/false/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && systemctl restart pveproxy.service