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
#jenkins-home-link { | |
display: block; | |
background: url("https://i.imgur.com/SCpSc0e.png") 0 0 no-repeat; | |
float: right; | |
top: 2px; | |
height: 38px; | |
width: 220px; | |
} | |
#jenkins-head-icon { |
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
from bottle import route, run | |
import subprocess, socket, os, glob, yaml | |
# load config | |
with open('config.yml', 'r') as config_file: | |
config = yaml.load(config_file) | |
base_path = config['base-path'] | |
bind_addr = config['bind-addr'].split(':') | |
bind_host = bind_addr[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
Field listenerMap; | |
Runnable relogRunnable; | |
ErrorHandler errorHandler; | |
public void loadSkype() { | |
try { | |
listenerMap = SkypeEventDispatcher.class.getDeclaredField("listeners"); | |
listenerMap.setAccessible(true); | |
} catch (NoSuchFieldException e) { | |
e.printStackTrace(); |
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 org.arkhamnnetwork.libs.item; | |
import net.minecraft.server.v1_8_R3.NBTTagCompound; | |
import net.minecraft.server.v1_8_R3.NBTTagList; | |
import org.bukkit.craftbukkit.v1_8_R3.inventory.CraftItemStack; | |
import org.bukkit.inventory.ItemStack; | |
public class Glow { | |
public static ItemStack addGlow(ItemStack item){ | |
net.minecraft.server.v1_8_R3.ItemStack nmsStack = CraftItemStack.asNMSCopy(item); |
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
private static Method getHandleMethod; | |
private static Field pingField; | |
private static int getPing(Player player) { | |
try { | |
if (getHandleMethod == null) { | |
getHandleMethod = player.getClass().getDeclaredMethod("getHandle"); | |
getHandleMethod.setAccessible(true); | |
} | |
Object entityPlayer = getHandleMethod.invoke(player); |
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 org.bukkit.Bukkit; | |
import org.bukkit.entity.LivingEntity; | |
import java.lang.reflect.Field; | |
import java.lang.reflect.InvocationTargetException; | |
import java.lang.reflect.Method; | |
public class AIUtils { | |
private static Field fromMobSpawner; | |
private static Method getHandle; |
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 net.thechunk.mark2bungee; | |
import com.google.common.base.Joiner; | |
import net.md_5.bungee.api.CommandSender; | |
import net.md_5.bungee.api.connection.ProxiedPlayer; | |
import net.md_5.bungee.api.connection.Server; | |
import net.md_5.bungee.api.event.PlayerDisconnectEvent; | |
import net.md_5.bungee.api.event.PluginMessageEvent; | |
import net.md_5.bungee.api.event.ServerConnectedEvent; | |
import net.md_5.bungee.api.plugin.Command; |
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
$status = get-service -name "XTU3SERVICE" | Select-Object {$_.status} | format-wide | |
if ($status -ne "Running") { start-service -name "XTU3SERVICE"} | |
& 'C:\Program Files (x86)\Intel\Intel(R) Extreme Tuning Utility\Client\XTUCli.exe' -t -id 34 -v -100.58593750000 | |
sleep 3 | |
& 'C:\Program Files (x86)\Intel\Intel(R) Extreme Tuning Utility\Client\XTUCli.exe' -t -id 83 -v -100.58593750000 | |
sleep 4 | |
stop-process -id $PID -force |
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
#!/bin/bash | |
echo Instacraft for Ubuntu 12.04 by vemacs | |
echo THIS SCRIPT IS NOT SUPPORTED, AND IF IT BREAKS, TOO BAD | |
echo Please use the guide instead: https://gist.github.com/vemacs/5663144 | |
currentuser=$UID | |
if [ $currentuser != 0 ] | |
then | |
echo "You need to be root to run this. " | |
echo "Try running sudo -i first, and then download this script again." | |
exit |
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
java.cli.X.ms=1024M | |
java.cli.X.mx=1024M | |
# Use whatever mark2 saved the JAR as here | |
mark2.jar-path=spigot*.jar | |
# Saving notifications aren't really useful | |
plugin.save.warn-message= | |
plugin.save.message= | |
# This helps stop GC hangs | |
java.cli.XX.UseConcMarkSweepGC=true |