Skip to content

Instantly share code, notes, and snippets.

View Metacinnabar's full-sized avatar
🟢

Charlie Metacinnabar

🟢
  • /home/metacinnabar/
View GitHub Profile
@not-ivy
not-ivy / Nibble.md
Last active October 26, 2021 11:16
Nibble Assembly Parts

Nibble 65% Build

Base:

Amazon - $70 Waiting for restock...

Mechboards - £75.00($103.04)


What are mixins?

Mixins are a way to inject code or change the minecraft source code directly and should be use with caution. If you can do a PR to Forge or use an event, try those first. If all else fails, then mixins may be a good option to look into. Here are some resources for mixins:

Now, I'll be honest, the official mixin doc is kind of terrible to learn from for most people. It's extremely dense and and really only helps people who already knows in-depth bytecode and stuff. But most modders aren't like that and just wants to do small stuff lol. But I'll give you the run-down here. There's a few kinds of mixins that you will encounter quite often.

@kll
kll / TypeMemberLayout.xaml
Last active May 25, 2024 05:46
ReSharper/Rider StyleCop file layout
<?xml version="1.0" encoding="utf-16"?>
<Patterns xmlns="urn:schemas-jetbrains-com:member-reordering-patterns">
<TypePattern DisplayName="Non-reorderable types">
<TypePattern.Match>
<Or>
<And>
<Kind Is="Interface" />
<Or>
<HasAttribute Name="System.Runtime.InteropServices.InterfaceTypeAttribute" />
<HasAttribute Name="System.Runtime.InteropServices.ComImport" />
@matthewzring
matthewzring / markdown-text-101.md
Last active July 1, 2024 12:18
A guide to Markdown on Discord.

Markdown Text 101

Want to inject some flavor into your everyday text chat? You're in luck! Discord uses Markdown, a simple plain text formatting system that'll help you make your sentences stand out. Here's how to do it! Just add a few characters before & after your desired text to change your text! I'll show you some examples...

What this guide covers:

@xDefcon
xDefcon / config.yml
Last active February 28, 2024 18:03
KnockbackMaster configuration file
####################################################
# KnockbackMaster by xDefcon <luigi@xdefcon.com>
# www.spigotmc.org/resources/knockbackmaster.42721/
# Configuration File
####################################################
# Should the plugin notify OPs when a new update is released? (SUGGESTED VALUE IS "true")
update-notify: true
# Toggle debug mode (leave it as false if not requested by the developer).
@relyky
relyky / SplitList.cs
Created March 16, 2017 05:59
c#, Split List, Split a List into smaller lists of N size
///
/// Split a List into smaller lists of N size
/// ref → http://stackoverflow.com/questions/11463734/split-a-list-into-smaller-lists-of-n-size
///
public static IEnumerable<List<T>> SplitList<T>(List<T> bigList, int nSize = 3)
{
for (int i = 0; i < bigList.Count; i += nSize)
{
yield return bigList.GetRange(i, Math.Min(nSize, bigList.Count - i));
@benscabbia
benscabbia / Instructions
Created March 3, 2017 21:23
Cloudflare + Dynamic DNS (ddclient) = Super Awesome
# This guide will show you how to configure ddclient to dynamically update your DNS at Cloudflare.
# This cookbook makes use of a number of online guides - all of which I will reference at the end.
# Cloudflare requires ddclient to be version 3.8.2 or you will get a 'cloudflare protocol didn't exist'.
# Unfortunately, the package manager at this time makes use of 3.8.1
# My suggestion is to follow the semi-autonomous process, by downloading the out of date package
# and then manually update a few files. If you prefer, you can go down the fully manual route manual route.
# Installation - Manual (Not Tested: https://www.cloudflare.com/technical-resources/#ddclient)
# Installation - Semi-Autonomous (Recommended, follow below)
@christopher-baek
christopher-baek / .Configure ddclient with Namecheap.md
Last active April 20, 2023 21:21
Configure ddclient withNamecheap

Configure ddclient with Namecheap

Namecheap Configuration

  1. Click the Manage button next to the domain in the Domain List view
  2. In the Domain tab, scroll down and remove any entries in the Redirect Domain list
  3. In the Advanced DNS tab...
  4. Turn on Dynamic DNS and make a note of the password
  5. Add an A Record for @ pointing to 127.0.0.1
@Dbof
Dbof / ntpspoof.py
Last active August 16, 2022 14:11
NTP spoofer to change the date of any victim to the year 2035
import os
import sys
import time
from subprocess import Popen, DEVNULL
import datetime
from scapy.all import IP, UDP, NTP
from netfilterqueue import NetfilterQueue
def get_switch_ip():
@jagrosh
jagrosh / Github Webhook Tutorial.md
Last active July 1, 2024 09:24
Simple Github -> Discord webhook

Step 1 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send commits and other updates

  2. In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe! WebhookDiscord

Step 2 - Set up the webhook on Github

  1. Navigate to your repository on Github, and open the Settings Settings