Skip to content

Instantly share code, notes, and snippets.

View orgcontrib's full-sized avatar
:octocat:
contributing

Org Contrib orgcontrib

:octocat:
contributing
View GitHub Profile
@CHSuworatrai
CHSuworatrai / VMware vSphere 6.x Licence Keys
Created April 8, 2021 09:20 — forked from DVSB/VMware vSphere 6.x Licence Keys
VMware vSphere 6 and 7 Licence Keys
VMware vSphere 6 Enterprise Plus
1C20K-4Z214-H84U1-T92EP-92838
1A2JU-DEH12-48460-CT956-AC84D
MC28R-4L006-484D1-VV8NK-C7R58
5C6TK-4C39J-48E00-PH0XH-828Q4
4A4X0-69HE3-M8548-6L1QK-1Y240
VMware vSphere with Operations Management 6 Enterprise
4Y2NU-4Z301-085C8-M18EP-2K8M8
1Y48R-0EJEK-084R0-GK9XM-23R52
@alexg0
alexg0 / enable_sudo_with_apple_watch_and_touch_id.sh
Last active October 1, 2025 16:11 — forked from carlosonunez/auto_sudo_via_watch_and_tid.sh
Enable support for sudo via Apple Watch and Touch ID
#! /usr/bin/zsh
# https://gist.github.com/alexg0/39eb038c704962bcf832c74a8c2cecd4
enable_sudo_with_apple_watch_and_touch_id() {
PAMD_SUDO_PATH=/etc/pam.d/sudo
APPLE_WATCH_PAMID_LIBPATH=/usr/local/lib/pam/pam_watchid.so.2
# APPLE_WATCH_PAMID_URL=https://github.com/biscuitehh/pam-watchid
APPLE_WATCH_PAMID_URL=https://github.com/msanders/pam-watchid
APPLE_WATCH_PAMID_PATH=$HOME/src/pamid-applewatch
preserve_pamd_sudo() {
@edwintorok
edwintorok / rdrand.c
Created January 11, 2021 23:13
gcc rdrand.c -O2 -o rdrand -fopenmp -Wall
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#if defined(__i386__) || defined(__x86_64__)
#include <cpuid.h>
#endif
#include <errno.h>
#include <limits.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#!/bin/bash
set -eu
# Based on:
# https://gist.githubusercontent.com/bboozzoo/d4b142229b1915ef7cc0cf8593599ad9/raw/367f593d7ef61a3659951f42c699e86820a8db75/reproduce.sh
export LC_ALL=C
LOOPS=40
COUNT="${COUNT-20}"
@jc-torresp
jc-torresp / raspberry-pi-plex-server.md
Last active October 3, 2025 21:21
Setup a Raspberry Pi Plex Media Server (Including external storage media and Windows to Raspbian migration)

Raspberry Pi Plex Server

Installation

Ensure our operating system is entirely up to date:

sudo apt-get update
sudo apt-get upgrade
@oseme-techguy
oseme-techguy / Correct_GnuPG_Permission.sh
Last active September 30, 2025 04:22
This fixes the " gpg: WARNING: unsafe permissions on homedir '/home/path/to/user/.gnupg' " error while using Gnupg .
#!/usr/bin/env bash
# To fix the " gpg: WARNING: unsafe permissions on homedir '/home/path/to/user/.gnupg' " error
# Make sure that the .gnupg directory and its contents is accessibile by your user.
chown -R $(whoami) ~/.gnupg/
# Also correct the permissions and access rights on the directory
chmod 600 ~/.gnupg/*
chmod 700 ~/.gnupg
@orgcontrib
orgcontrib / pgp-gpg-notes.md
Last active December 5, 2024 20:30 — forked from dacbarbos/pgp-gpg-help.md
PGP & GPG notes
@LM1LC3N7
LM1LC3N7 / README.md
Last active August 27, 2024 09:54
SSH PAM module - Telegram Alert on connect and disconnect, with IP exceptions.

SSH Telegram configuration

telegram

Bot creation

  1. Open your app and search for @BotFather, or open this link: https://telegram.me/botfather.
  2. Type /newbot
  3. Name your new bot (this is the contact name, like "Bot My server")
  4. Give it a unique Telegram name, ending with bot(like "my_server_bot")
  5. Now, you should see a token: keep it safe!
@jaredrummler
jaredrummler / COPYRIGHT_NOTICE_TEMPLATES.md
Last active February 3, 2025 15:19
Copyright templates for Intellij IDEA
@krisleech
krisleech / renew-gpgkey.md
Last active October 6, 2025 20:21
Renew Expired GPG key

Renew GPG key

Given that your key has expired.

$ gpg --list-keys
$ gpg --edit-key KEYID

Use the expire command to set a new expire date: