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
kits: | |
gold: | |
delay: 172800 | |
items: | |
- 306 1 protection:1 unbreaking:2 | |
- 307 1 protection:1 unbreaking:2 | |
- 308 1 protection:1 unbreaking:2 | |
- 309 1 protection:1 unbreaking:2 | |
- 276 1 sharpness:2 | |
- 256 1 efficiency:3 |
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.discordpvp; | |
import org.bukkit.command.Command; | |
import org.bukkit.command.CommandSender; | |
import org.bukkit.entity.Player; | |
import org.bukkit.plugin.java.JavaPlugin; | |
import org.bukkit.potion.PotionEffect; | |
public class KitchenSink extends JavaPlugin{ | |
@Override | |
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { |
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
Traceback (most recent call last): | |
File "karmadecay.py", line 23, in <module> | |
submission.remove() | |
File "/usr/local/lib/python2.7/dist-packages/praw/decorators.py", line 313, in wrapped | |
if mod and not is_mod_of_all(obj.user, subreddit): | |
File "/usr/local/lib/python2.7/dist-packages/praw/decorators.py", line 276, in is_mod_of_all | |
mod_subs = user.get_cached_moderated_reddits() | |
File "/usr/local/lib/python2.7/dist-packages/praw/objects.py", line 763, in get_cached_moderated_reddits | |
for sub in self.reddit_session.get_my_moderation(limit=None): | |
File "/usr/local/lib/python2.7/dist-packages/praw/__init__.py", line 463, in get_content |
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 void printInstrumentation(Properties properties) { | |
Iterator<Object> keys = properties.keySet().iterator(); | |
while (keys.hasNext()) { | |
String key = (String) keys.next(); | |
String property = properties.getProperty(key); | |
System.out.println(key + " : " + property); | |
} | |
} |
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
FileSystemStatCache.cpp: In static member function 'static bool clang::FileSystemStatCache::get(const char*, stat&, bool, int*, clang::FileSystemStatCache*)': | |
FileSystemStatCache.cpp:63: error: 'OpenFileForRead' is not a member of 'llvm::sys::fs' | |
make[2]: *** [/root/llvm-3.3.src/tools/clang/lib/Basic/Release+Asserts/FileSystemStatCache.o] Error 1 |
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 flask import Flask | |
import cStringIO | |
app = Flask(__name__) | |
import string | |
@app.route('/k/', methods=['POST']) | |
def work_with_data(): | |
print request.form # here's post data in a dict - do what you will... | |
f = open(name, 'w') | |
output = cStringIO.StringIO() |
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
My instructions were written against the Git master branches of all the projects involved, as of a few | |
months ago. They're currently a bit out of date, as I've been caught up with some other work and didn't | |
get a chance to maintain them. For starters, compiling a patched KVM source against the latest currently shipping F18 kernel (3.9.*) doesn't work as well as it used to against the shipping F18 kernel from a few months ago (3.6.*). I meant to dig through the kvm-kmod scripts and try to fix that, and send Jan Kiszka (the owner of kvm-kmod) a patch, but it's sadly still on my to-do list. | |
Building the rest of it (qemu and seabios) should be a bit simpler, but since I had no patched kernel | |
module to test it with, I slacked off, and I wouldn't be surprised if the patches no longer apply to the | |
current Git master branch of qemu and seabios, respectively. | |
I don't have (never did have) a nicely packaged and releasable "image" -- just patches that happened | |
to work against the respective current development branche |
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
cd ~ | |
# check http://nginx.org/en/download.html for the latest version | |
wget http://nginx.org/download/nginx-1.4.1.tar.gz | |
tar -xvzf nginx-1.4.1.tar.gz | |
cd nginx-1.4.1/ | |
./configure --add-module=$HOME/ngx_pagespeed-release-1.6.29.3-beta | |
make | |
sudo make install |
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
cd ~ | |
wget https://github.com/pagespeed/ngx_pagespeed/archive/release-1.6.29.3-beta.zip | |
unzip release-1.6.29.3-beta.zip | |
cd ngx_pagespeed-release-1.6.29.3-beta/ | |
wget https://dl.google.com/dl/page-speed/psol/1.6.29.3.tar.gz | |
tar -xzvf 1.6.29.3.tar.gz # expands to psol/ |
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
sudo find /etc -name "*vboxadd*" -exec rm {} \; | |
sudo find /etc -name "*vboxvfs*" -exec rm {} \; | |
sudo rm -r /usr/src/vboxadd-* | |
sudo rm -r /usr/src/vboxvfs-* | |
sudo rm /usr/sbin/vboxadd-timesync | |
sudo rm /lib/modules/`uname -r`/misc/vboxadd.ko | |
sudo rm /lib/modules/`uname -r`/misc/vboxvfs.ko |