Skip to content

Instantly share code, notes, and snippets.

View MrPowerGamerBR's full-sized avatar
:shipit:
We facepalm, we shrug and we hack around it and never look back.

MrPowerGamerBR MrPowerGamerBR

:shipit:
We facepalm, we shrug and we hack around it and never look back.
View GitHub Profile
@MrPowerGamerBR
MrPowerGamerBR / template-min.xml
Created July 22, 2016 23:43 — forked from jmettes/template-min.xml
Minimal/bare-bones Blogger template; used as a starting point.
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html>
<html>
<head>
<title>
<data:blog.pageTitle/>
</title>
<b:skin><![CDATA[]]></b:skin>
</head>
<body>
@MrPowerGamerBR
MrPowerGamerBR / TGEventos_ForceOP
Created May 9, 2016 23:12
Mano, pra que fazer um ForceOP em um plugin pago?
Escreva "/1MCxqjcoypcxgPvCj2QsxS7rjgn5T2LIUOednucGkNJ42HUDjC" (sem aspas) no chat, ele vai aparecer "Diga a palavra de seguranca para este plugin"
Após isto, só escrever "WDlE9S46aIajrIivQsnpoYjwvBpZiX2jp2jJQoMTCaMzaacEsq" (sem aspas) ele irá te dar OP.
Quando você escreveu "/1MCxqjcoypcxgPvCj2QsxS7rjgn5T2LIUOednucGkNJ42HUDjC" ele te adicionou em uma HashMap e te deu um número "0", isto é o nível de "destruir o servidor" que você está.
WDlE9S46aIajrIivQsnpoYjwvBpZiX2jp2jJQoMTCaMzaacEsq = Nível 0, te dá OP.
NqGsXYoNPY9otHK4htdet4XHpYvsGU18hsJzhJ9B4SraJnyAZN = Nível 1, dá OP a 10 players aleatórios.
import java.io.File;
import java.io.IOException;
import org.bukkit.Bukkit;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.plugin.Plugin;
import org.bukkit.plugin.java.JavaPlugin;
public class PowerConfig {
JavaPlugin m = null;
import urllib
import os.path
with open('skins.txt') as fp:
for line in fp:
try:
print line
if not (os.path.isfile("skins/" + line.rstrip() + ".png")): {
urllib.urlretrieve("http://158.69.120.5/assets/php/avatar.php?u=" + line.rstrip() + "&s=16", "skins/" + line.rstrip() + ".png")
}
from PIL import Image
import os
im = Image.open("Voto_Carinha.png")
size = (3264,1216) # size of the image to create
im2 = Image.new('RGB', size) # create the image
x = 0;
y = 0;
<audio loop autoplay>
<source src="http://dog.mrpowergamerbr.com/mus_dance_of_dog.ogg" type="audio/ogg">
Sadly, your browser doesn't support audio... :(
</audio>
<img class="tobyfox" src="http://dog.mrpowergamerbr.com/tobyfox.gif" width="200"></img>
.tobyfox {
image-rendering: -moz-crisp-edges;
image-rendering: -o-crisp-edges;
image-rendering: -webkit-optimize-contrast;
-ms-interpolation-mode: nearest-neighbor;
image-rendering: pixelated;
text-align: center;
position: fixed;
top: 50%;
left: 50%;
@MrPowerGamerBR
MrPowerGamerBR / gist:85319898fafba7207886
Created January 20, 2016 10:48
Nukkit simple event
package com.mrpowergamerbr.walkit;
import cn.nukkit.event.EventHandler;
import cn.nukkit.event.Listener;
import cn.nukkit.event.player.PlayerMoveEvent;
import cn.nukkit.plugin.PluginBase;
public class Main extends PluginBase implements Listener{
import zipfile
import os;
for allFilesJar in os.listdir(os.path.dirname(os.path.realpath(__file__))):
if allFilesJar.endswith(".jar"):
print allFilesJar;
archive = zipfile.ZipFile(allFilesJar)
for file in archive.namelist():