Skip to content

Instantly share code, notes, and snippets.

View andrew121410's full-sized avatar
🏠
Working from home

Andrew andrew121410

🏠
Working from home
  • 127.0.0.1
View GitHub Profile
@KoalaOnCaffeine
KoalaOnCaffeine / DependencyInjection.java
Last active February 16, 2024 17:16
Constructor dependency injection
public final class CustomCommandPlugin extends JavaPlugin {
@Override
public final void onEnable() {
getCommand("command").setExecutor(new CommandClass(getConfig().getString("Hello-Message")));
// creating a new instance of the command class, passing in the hello message parameter as the String from the command class' constructor.
// getCommand being an inherited method from JavaPlugin.
// setExecutor being a method which every PluginCommand has, defining where it will run to.
// new CommandClass being the constructor of the class below.
// getConfig().getString("Hello-Message"); being a String located in the config, if this string is not there:
@gjreasoner
gjreasoner / README.md
Last active November 10, 2024 14:36
Expand Ubuntu 20 Proxmox Disk
# Resize the file system in UI, under VM -> Hardware -> Click on the disk to resize, click "Resize disk" button

# Confirm increase in disk space (1TB in my case)
$ lsblk
NAME                      MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda                         8:0    0    1T  0 disk
├─sda1                      8:1    0    1M  0 part
├─sda2                      8:2    0    1G  0 part /boot
└─sda3                      8:3    0    1T  0 part
@langerhans
langerhans / README.md
Last active November 15, 2024 08:37
Updating MultiDoge checkpoints

Updating MutliDoge checkpoints

Why?

If you are using MultiDoge and are stuck far behind in syncing, then this guide is for you. Even if you are currently already synced it's worth following this guide to be prepared for future re-syncs, but you can skip some steps. These new checkpoints contain blocks up to Jan 30th 2021. If you are trying to sync a wallet that has been created before around summer 2016, then sadly this won't really help you.

How?

  1. Close MultiDoge completely.
  2. Download this file: multidoge.checkpoints
  3. Copy this file to the MultiDoge data directory. See below for the path. Overwrite the existing file. If you are already synced, you're done at this point, If not, continue.
  4. Start MultiDoge.