Skip to content

Instantly share code, notes, and snippets.

View ticklemynausea's full-sized avatar
🫠
this is fine

Mário Carneiro ticklemynausea

🫠
this is fine
View GitHub Profile
<?
#
# Minecraftia! Inquisitor json mapped 'org.bukkit.entity' remover
# v1.0
#
require 'bootstrap.php';
use minecraftia\db\Bitch;
@ticklemynausea
ticklemynausea / led1.py
Last active August 29, 2015 14:04
Rasberry Pi led test
import RPi.GPIO as GPIO
import time
import threading
import signal
import sys
import os
counter = 0
mode = 0
GPIO_num = [11, 12, 13, 15, 16]
mysql> select distinct table_schema, engine, table_name, table_rows from information_schema.tables where table_schema not in ('performance_schema', 'mysql', 'hlstats', 'information_schema') order by table_schema, table_rows desc;
+---------------------------+--------+-------------------------------------------------+------------+
| table_schema | engine | table_name | table_rows |
+---------------------------+--------+-------------------------------------------------+------------+
| esotalk | InnoDB | et_activity | 608 |
| esotalk | InnoDB | et_member_conversation | 539 |
| esotalk | MyISAM | et_post | 456 |
| esotalk | InnoDB | et_like | 234 |
| esotalk | InnoDB | et_member
# xAuth v2.4.4 Language File
# THIS HEADER IS USED AS A SIGNATURE. PLEASE DO NOT REMOVE.
join:
register: '{RED}Não estás registado.{NEWLINE}{RED} Por favor vai a http://www.minecraft.pt/register
e regista-te.'
login: '{RED}Faz login com o comando: /login <password>.{NEWLINE}{RED}Podes também
fazer login em http://www.minecraft.pt'
resume: '{BRIGHTGREEN}Bem-vindo de volta!'
non-premium: Non-premium user '{TARGET}' detected
error:
[01:01:50 ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'l' in plugin xAuth v2.4.4
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot-1.7.10-R0.1-SNAPSHOT.jar:git-Spigot-1573]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:181) ~[spigot-1.7.10-R0.1-SNAPSHOT.jar:git-Spigot-1573]
at org.bukkit.craftbukkit.v1_7_R4.CraftServer.dispatchCommand(CraftServer.java:767) ~[spigot-1.7.10-R0.1-SNAPSHOT.jar:git-Spigot-1573]
at net.minecraft.server.v1_7_R4.PlayerConnection.handleCommand(PlayerConnection.java:1012) [spigot-1.7.10-R0.1-SNAPSHOT.jar:git-Spigot-1573]
at net.minecraft.server.v1_7_R4.PlayerConnection.a(PlayerConnection.java:849) [spigot-1.7.10-R0.1-SNAPSHOT.jar:git-Spigot-1573]
at net.minecraft.server.v1_7_R4.PacketPlayInChat.a(PacketPlayInChat.java:28) [spigot-1.7.10-R0.1-SNAPSHOT.jar:git-Spigot-1573]
at net.minecraft.server.v1_7_R4.PacketPlayInChat.handle(PacketPlayIn
main:
auto-disable: true
check-premium: true
reload-on-join: true
check-for-updates: false
mysql:
enabled: true
host: localhost
port: 3306
user: minecraft
@ticklemynausea
ticklemynausea / assert.prc
Created September 1, 2014 15:13
assert in pl/sql
create or replace procedure assert(
p_condition in boolean
) is
l_caller_owner varchar2(128);
l_caller_name varchar2(128);
l_caller_lineno varchar2(128);
l_caller_caller_t varchar2(128);
begin
if not p_condition then
#!/bin/sh
RCON=/home/minecraft/mcrcon/mcrcon.sh
$RCON say ATENÇÃO! O servidor será automaticamente reiniciado dentro de 5 minutos!
sleep 120
$RCON say ATENÇÃO! O servidor será automaticamente reiniciado dentro de 3 minutos!
sleep 60
$RCON say ATENÇÃO! O servidor será automaticamente reiniciado dentro de 2 minutos!
sleep 60
@ticklemynausea
ticklemynausea / 1602.py
Last active August 29, 2015 14:06
rpi-1602
#!/usr/bin/python
# coding: utf8
import display
import sms
import time
# Main program block
def main():
sleep_time = 0.4
@ticklemynausea
ticklemynausea / ddl_export.fnc
Last active August 29, 2015 14:07
Oracle PL/SQL DDL Export Wrapper (Exports objects using dbms_metadata package and user object tables)
create or replace function ddl_export(
p_type in varchar2,
p_name in varchar2,
p_package in boolean default true
) return clob is
l_result clob;
function use_table_user_source(
p_type in varchar2,