Skip to content

Instantly share code, notes, and snippets.

@phortuin
phortuin / signing-git-commits.md
Last active January 1, 2025 05:22
Set up a GPG key for signing Git commits on MacOS (M1)

Based on this blogpost.

To sign Git commits, you need a gpg key. GPG stands for GNU Privacy Guard and is the de facto implementation of the OpenPGP message format. PGP stands for ‘Pretty Good Privacy’ and is a standard to sign and encrypt messages.

Setting up

Install with Homebrew:

$ brew install gpg

Building a Minecraft Plugin from it's source code on GitHub

This tutorial will explain from nothing how to build/create a Minecraft Bukkit/Spigot/Paper Plugin for it's source code on GitHub.

I am assuming you don't know anything and don't have anything installed and are using a Windows device.

Prerequisites

Watch these tutorial videos (very short).

  • Install Maven on Windows 11
@pansachin
pansachin / gophercon-india-2k24-takeaways.md
Last active January 1, 2025 05:14
GopgerCon India 2k24 Takeaways

Polling to Pushing

  1. Propeller
  2. Features
    • Frontend Client can create a persistent channel with the backend.
    • Backend services can send events to the frontend clients.
    • Support for multiple devices for a client.
    • Support for custom topics between frontend and backend.
    • Easy integration with legacy REST based services.
@xHacka
xHacka / SolarPuttyDecrypt.py
Last active January 1, 2025 05:11
SolarPuTTYDecrypt: A post-exploitation tool to decrypt SolarPutty's sessions files, rewritten in Python. Original Author: Paolo Stagno (@Void_Sec - voidsec.com)
import base64
import sys
from Crypto.Cipher import DES3
from Crypto.Protocol.KDF import PBKDF2
def decrypt(passphrase, ciphertext):
data = ''
try:
# Decode the base64 encoded ciphertext
array = base64.b64decode(ciphertext)
@mcattarinussi
mcattarinussi / gpg-ssh-setup.md
Last active January 1, 2025 05:08
A setup guide to use a personal gpg key for ssh authentication

GPG - SSH setup

Generating the master key

Here we create the master key. We want only Certify capability: we use the master key only to create the subkeys, Sign - Encrypt - Authenticate capabilities will be assigned to the subkeys.

Run the following command to start the master key generation process. Select the set your own capabilities creation process (type 8)

  ▶ gpg --full-generate-key --expert

gpg (GnuPG) 2.2.9; Copyright (C) 2018 Free Software Foundation, Inc.

@karenpayneoregon
karenpayneoregon / Params.cs
Last active January 1, 2025 04:59
C# 13 parms
using System.Diagnostics;
using NewStuffApp.Models;
namespace NewStuffApp.Classes;
/// <summary>
/// Provides a set of static methods for iterating over collections of various types
/// (e.g., strings, integers, and Person) and performing operations on them.
/// </summary>
internal class Params
@LearnCocos2D
LearnCocos2D / gist:77f0ced228292676689f
Last active January 1, 2025 04:57
Overview of Entity Component System (ECS) variations with pseudo-code

For background and further references see: Entity Component Systems on Wikipedia

ECS by Scott Bilas (GDC 2002)

Entity->Components->Update
  • entity = class: no logic + no data OR at most small set of frequently used data (ie position)
  • component = class: logic + data
foreach entity in allEntities do
    foreach component in entity.components do
@consbalishiq5
consbalishiq5 / Serato DJ Pro Keygen
Created October 2, 2024 10:52
Serato DJ Pro 3.2.1 Crack + License Key Free Download [2024]
Serato DJ Pro License Key