This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is a value (de|en)coder for the github.com/google/uuid UUID type. For best experience, register | |
// mongoRegistry to mongo client instance via options, e.g. | |
// clientOptions := options.Client().SetRegistry(mongoRegistry) | |
// | |
// Only BSON binary subtype 0x04 is supported. | |
// | |
// Use as you please | |
package repository | |
import ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
! length 2 | |
" length 5 | |
# length 6 | |
$ length 6 | |
% length 6 | |
& length 6 | |
' length 3 | |
( length 5 | |
) length 5 | |
* length 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Code by @vmironov on Kotlinlang slack. | |
* | |
* This code uses dynamic proxies in Java to make it easier to access inaccessible classes via an accessible representation. | |
*/ | |
inline fun <reified T : Any> createMirror(value: Any) = createMirror(value, T::class.java) | |
fun <T> createMirror(value: Any, clazz: Class<T>): T { | |
val loader = clazz.classLoader |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.google.common.base.Objects; | |
import com.google.common.base.Preconditions; | |
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; | |
/** | |
* https://gist.github.com/SupaHam/dad1db6406596c5f8e4b221ff473831c | |
* | |
* @author SupaHam (https://github.com/SupaHam) | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
task.players=1 | |
task.servers=1 | |
task.users=1 | |
theme=supa | |
theme.supa.console= dark magenta, default | |
theme.supa.head= light gray, default | |
theme.supa.output= light gray, default | |
theme.supa.mark2= dark red, default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
from bs4 import BeautifulSoup | |
import re, getpass, requests, os, sys | |
ACCOUNT_URL = "https://capitadiscovery.co.uk/port/account" | |
SESSION_URL = "https://capitadiscovery.co.uk/port/sessions" | |
LOANS_URL = "https://capitadiscovery.co.uk/port/account/loans" | |
FAKE_USER_AGENT = "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.supaham.bukkittesting.protolib; | |
import com.comphenix.protocol.PacketType; | |
import com.comphenix.protocol.ProtocolManager; | |
import com.comphenix.protocol.events.PacketContainer; | |
import com.supaham.bukkittesting.BukkitTesting; | |
import org.bukkit.entity.Player; | |
import org.bukkit.event.EventHandler; | |
import org.bukkit.event.block.Action; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import csv | |
import yaml | |
COMMAND_BOOK_FILE = "plugins/CommandBook/warps.csv" | |
ESSENTIALS_OUTPUT_DIR = "plugins/Essentials/warps/" | |
def convertWarp(oldWarp): | |
name = oldWarp[0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
SET sublimePath=C:\Program Files\Sublime Text 3\sublime_text.exe | |
SET nvimPath=C:\Ali\neovim-qt\nvim-qt.exe | |
rem add sublime for all file types | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text" /t REG_SZ /v "" /d "Open with Sublime Text" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text" /t REG_EXPAND_SZ /v "Icon" /d "%sublimePath%,0" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text\command" /t REG_SZ /v "" /d "%sublimePath% \"%%1\"" /f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Gib me all ur credits kthx | |
# - ur pal al | |
import weechat | |
import re | |
from pushbullet.pushbullet import PushBullet | |
SCRIPT_NAME = "weepush" | |
SCRIPT_AUTHOR = "SupaHam <me@supa.me>" | |
SCRIPT_VERSION = "1" | |
SCRIPT_LICENSE = "None" |
NewerOlder