Skip to content

Instantly share code, notes, and snippets.

View Carlgo11's full-sized avatar
🥰

Carl Carlgo11

🥰
View GitHub Profile
import com.mojang.api.profiles.HttpProfileRepository;
import com.mojang.api.profiles.Profile;
import com.mojang.api.profiles.ProfileCriteria;
public class BasicConverter {
private static final HttpProfileRepository profileRepository = new HttpProfileRepository();
private static final String AGENT = "minecraft";
public static String getUUID(String username) {
package require tdom
proc wolframalpha {nick channel arg} {
if {$arg == ""} {
return "Please provide a search query."
} elseif {[string first "Necrodoom" $arg] != -1} {
return "Did you mean: stop spamming $::botnick?"
}
set xml [wget http://api.wolframalpha.com/v2/query?format=plaintext&appid=APPID&[::http::formatQuery input $arg]]
set document [dom parse $xml]

Keybase proof

I hereby claim:

  • I am Carlgo11 on github.
  • I am carlgo11 (https://keybase.io/carlgo11) on keybase.
  • I have a public key whose fingerprint is 70F7 E347 CB67 89BB D4E7 CC48 641A A0E2 1994 E0C6

To claim this, I am signing this object:

<?php
# Time limit in seconds.
$limit = 2;
# Starting cost. Set higher if you want to skip low cost tests.
$cost = 1;
# Password to hash. It doesn't matter if it's a "secure" one or not.
$password = "password";
echo "<style>table, th, td {border: 1px solid black;border-collapse: collapse;}</style>";
@Carlgo11
Carlgo11 / usr.local.teamspeak3_bot.start.sh
Created May 16, 2017 22:45
Apparmor Configs - TeamSpeak3 Server & JTS3Server Bot
# Last Modified: Thu May 16 00:00:00 2017
#include <tunables/global>
@{bot_dir} = /usr/local/teamspeak3_bot
/usr/local/teamspeak3_bot/start_bot.sh {
#include <abstractions/base>
#include <abstractions/bash>
network inet6 stream,
@Carlgo11
Carlgo11 / tpb.css
Created August 2, 2020 20:23
Custom TPB CSS
@-moz-document url-prefix("https://thepiratebay.org/") {
#browse, body { background: #1c1c1ce6; font-size: 16px; } #browse, a, a:link, a:visited, a:focus { color: #ccc; border-bottom: none; } a:hover, a:focus { color: #fff !important; text-decoration: none; text-outline: none; border-bottom: none; } #logo { display: none; } #torrents span.list-header { border: none; } #torrents li.list-entry span.item-type { text-align: left; } .list-item.item-name.item-title { font-weight: 500; } .list-item, #torrents span.list-header, #torrents { background: #272727; } #torrents span.list-header { height: 5vh; font-size: 1.5em; font-family: 'Arial', 'Helvetica'; } #torrents span.list-header label { margin: auto; } .list-entry { height: 2vh; } footer { display: none !important; } #torrents li.list-entry, #torrents li.list-entry.alt { background: inherit !important; } .list-item.list-header.item-user, .list-item.item-user { display: none !important; } .list-header label { cursor: pointer } #home input[type="search"] { height:
@Carlgo11
Carlgo11 / hook.py
Created January 8, 2023 05:32
Fixed hook.py
#!/usr/bin/env python
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from builtins import str
from future import standard_library
@Carlgo11
Carlgo11 / apk.sh
Last active August 23, 2023 20:51
APK Update cron job with auto-reboot
#!/bin/sh
# This script runs apk (Alpine Package Keeper) upgrade and checks if the installed kernel version differs from the running.
# If the versions differ, the system reboots.
# Script only runs on Alpine Linux.
apk -U upgrade
sync
installed_version=$(apk -I list | grep '^linux-lts' | sed -n 's/.*-\([0-9.]\+\)-r.*/\1/p')
running_version=$(uname -r | sed 's/\([0-9.]\+\)-.*/\1/')
@Carlgo11
Carlgo11 / eu.json
Created November 7, 2023 03:25
eu.json
{
eu = [
"at",
"be",
"bg",
"hr",
"cy",
"cz",
"dk",
"ee",