Skip to content

Instantly share code, notes, and snippets.

View viral32111's full-sized avatar
🏳️‍⚧️
Creating awesome projects!

viral32111 viral32111

🏳️‍⚧️
Creating awesome projects!
View GitHub Profile
@viral32111
viral32111 / ArchLinux.md
Last active December 28, 2025 15:41
Setup Arch Linux

0. Set keyboard & console font

loadkeys uk
setfont ter-118n

1. Set timezone

@viral32111
viral32111 / GnuPG.md
Last active December 25, 2023 19:51
GnuPG

Generate Key

$ gpg --expert --full-generate-key
  1. Select (9) ECC (sign and encrypt) to use an elliptic curve with digital signing & encryption capabilities.
  2. Select (1) Curve 25519 to use the recommended curve.
  3. Enter an expiry date 5 years from now (e.g., 2028-01-01).
  4. Enter your name & email address. This is public and CANNOT be changed later.
@viral32111
viral32111 / RAID.md
Created July 27, 2022 11:59
Linux RAID reference

RAID

Setup

Create GPT on with a single Linux RAID partition for each disk that will be in the array.

Create Array

--level is the RAID level (e.g. 0, 1, 5, etc.)

@viral32111
viral32111 / Cryptsetup.md
Last active August 27, 2023 10:04
Cryptsetup Reference

Cryptsetup

Benchmark Ciphers

cryptsetup benchmark

Setup

@viral32111
viral32111 / recovery.sh
Last active June 18, 2022 09:34
A script to securely backup to, and recover from Backblaze's Cloud infrastructure.
#!/bin/sh
# Created by viral32111 (https://viral32111.com) in May 2022.
# This is free and unencumbered software released into the public domain.
# For more information, please refer to http://unlicense.org.
# This script is for compressing, encrypting and uploading huge amounts of data to Backblaze's Cloud infrastructure.
# To use it, generate keys and configure the parameters below, then run './recovery.sh upload' to begin uploading files.
# To later redownload your files, ensure the same keys are present then run './recovery.sh download' to begin downloading.
@viral32111
viral32111 / Request.txt
Last active April 24, 2022 09:58
GDPR "Right to be forgotten" request template, based on https://www.datarequests.org/blog/sample-letter-gdpr-erasure-request/
To whom it may concern,
I am hereby requesting immediate erasure of personal data concerning me according to Article 17 GDPR.
Please erase all data concerning me as defined by Article 4(1) GDPR.
I am of the opinion that the requirements set forth in Article 17(1) GDPR are fulfilled. You cannot claim an exception based on Article 17(3) GDPR either, particularly as I am not a public figure.
If I have given consent to the processing of my personal data (e.g. according to Article 6(1) or Article 9(2) GDPR), I am hereby withdrawing said consent for the entire process.
In addition, I am objecting to the processing of personal data concerning me (which includes profiling), according to Article 21 GDPR. I request that you restrict the processing of the data concerning me pending the verification whether your legitimate grounds override mine, pursuant to Art. 18(1)(d) GDPR.
@viral32111
viral32111 / OpenSSL.md
Last active April 3, 2023 11:09
OpenSSL Reference

OpenSSL SSL/TLS Certificate Reference

This is not meant to be a comprehensive guide, it is just notes for personal note.

Subject Fields (subj parameter)

Short Name Long Name Description
CN commonName The primary domain name (or anything for a CA certificate).
C The country.
@viral32111
viral32111 / MySQL.md
Last active March 2, 2022 22:51
MySQL Reference

MySQL Reference

Create User

Adds a new user for connecting to the database server.

CREATE USER 'name'@'host' IDENTIFIED BY 'password';

Use a different authentication plugin for compatibility with some applications.

@viral32111
viral32111 / dockerfile.nanorc
Last active January 9, 2022 10:59
Nano syntax highlighting for Dockerfiles
# Slightly modified version of github.com/mbentley/Dockerfile.nanorc
# Syntax highlighting for Dockerfiles
syntax "Dockerfile" "[D|d]ockerfile[^/]*$"
# Instructions
icolor red "^(FROM|MAINTAINER|RUN|CMD|LABEL|EXPOSE|ENV|ADD|COPY|ENTRYPOINT|VOLUME|USER|WORKDIR|ONBUILD|ARG|STOPSIGNAL)[[:space:]]"
# Brackets
color brightgreen "(\(|\)|\[|\])"
hook.Add("PopulatePropMenu", "SciFiPropsMegapackSpawnlist", function()
local propList = {
-- Furniture
{type = "header", text = "Furniture"},
{type = "model", model = "models/lt_c/desk_officer.mdl"},
{type = "model", model = "models/lt_c/flagpole.mdl"},
{type = "model", model = "models/lt_c/holo_wall_unit.mdl"},
{type = "model", model = "models/lt_c/sci_fi/bed_bunk.mdl"},
{type = "model", model = "models/lt_c/sci_fi/am_container.mdl"},
{type = "model", model = "models/lt_c/sci_fi/box_crate.mdl"},