Skip to content

Instantly share code, notes, and snippets.

@amadornes
amadornes / 119_auto_remap_guide.md
Last active December 7, 2023 21:27
1.19 client refactor auto-remap guide
View 119_auto_remap_guide.md

Welcome to the 1.19 client refactor auto-remap guide!

Forge 41.0.64 for Minecraft 1.19 introduces several breaking changes to client code and 41.0.94 makes several additional renames.

In this guide we'll set up, configure and run SizableShrimp's automatic remapping tool to go through your code and take care of a large number of changes for you. This will only work if your mod is written in Java, so if it isn't, skip to the manual porting guide.

This guide works regardless of the mappings you're using.

Here's what we'll do:

  1. Ensure the mod compiles
@Joao-Peterson
Joao-Peterson / gmk67-manual.md
Last active December 7, 2023 21:26
GMK67 manual (English)
View gmk67-manual.md
@mkaafi6
mkaafi6 / main.dart
Created December 7, 2023 21:25
yawning-bulb-8801
View main.dart
void main() {
//Exercise: print variables
var firstname = "Andrea";
var lastname = "Bizzoto";
var age = 36;
var height = 1.84;
print(firstname);
@bradtraversy
bradtraversy / tailwind-webpack-setup.md
Last active December 7, 2023 21:23
Setup Webpack with Tailwind CSS
View tailwind-webpack-setup.md

Webpack & Tailwind CSS Setup

Create your package.json

npm init -y

Create your src folder

Create a folder called src and add an empty index.js file. The code that webpack compiles goes in here including any Javascript modules and the main Tailwind file.

@iknowjason
iknowjason / secrets-scanning.sh
Last active December 7, 2023 21:23
Scan for secrets at scale
View secrets-scanning.sh
# Secrets scanning at scale: 3 different tools
# trufflehog
#!/bin/bash
# 1. get all repos: gh repo list <organization> --limit 1000 > repos.txt
# 2. parse repos.txt so each line looks similar to: https://github.com/username/repo-name.git
# Remotely scan the repos using trufflehog without downloading
while IFS= read -r repo
do
@mehranhadidi
mehranhadidi / !NOTE.md
Created August 15, 2017 08:52 — forked from ivanvermeyen/!NOTE.md
Setup a Laravel Storage driver with Google Drive API
View !NOTE.md
@xpn
xpn / azuread_decrypt_msol_v2.ps1
Created April 11, 2020 01:34
Updated method of dumping the MSOL service account (which allows a DCSync) used by Azure AD Connect Sync
View azuread_decrypt_msol_v2.ps1
Write-Host "AD Connect Sync Credential Extract v2 (@_xpn_)"
Write-Host "`t[ Updated to support new cryptokey storage method ]`n"
$client = new-object System.Data.SqlClient.SqlConnection -ArgumentList "Data Source=(localdb)\.\ADSync;Initial Catalog=ADSync"
try {
$client.Open()
} catch {
Write-Host "[!] Could not connect to localdb..."
return
@flpvsk
flpvsk / recorderWorkletProcessor.js
Last active December 7, 2023 21:19
An example of a recorder based on AudioWorklet API.
View recorderWorkletProcessor.js
/*
A worklet for recording in sync with AudioContext.currentTime.
More info about the API:
https://developers.google.com/web/updates/2017/12/audio-worklet
How to use:
1. Serve this file from your server (e.g. put it in the "public" folder) as is.
@Maksimka101
Maksimka101 / fast_equatable.dart
Last active December 7, 2023 21:18
Fast Equatable
View fast_equatable.dart
abstract class FastEquatable extends Equatable {
const FastEquatable();
@override
bool operator ==(Object other) {
return identical(this, other) ||
other is FastEquatable &&
other.runtimeType == runtimeType &&
fastEquals(props, other.props);
}
View Vibrate.swift
import AudioToolbox.AudioServices
extension SystemSoundID {
static let vibrate = SystemSoundID(kSystemSoundID_Vibrate) // 4095
static let peek = SystemSoundID(1519)
static let pop = SystemSoundID(1520)
static let cancelled = SystemSoundID(1521)
static let tryAgain = SystemSoundID(1102)
static let failed = SystemSoundID(1107)
}