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
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
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
etherpad.createAuthorIfNotExistsFor(author_args, function(error, a) { | |
if (error) console.error('error creating author' + error.message) | |
else { | |
console.log("author created with ID: " + a.authorID) | |
var group_args = { | |
groupMapper: req.user.id | |
} | |
// Create an group if it doesnt exist or get an author from the etherpad instance | |
etherpad.createGroupIfNotExistsFor(group_args, function(error, g) { | |
if (error) console.error('error creating group' + error.message) |
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
#include <stdio.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#include <arpa/inet.h> | |
#include <netdb.h> | |
#include <string.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <stdlib.h> |
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
pid_t pid; | |
pid = fork(); | |
if(pid < 0) { | |
fprintf(stderr,"Fork Failed"); | |
exit(-1); | |
}else if( pid==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
//in file ClassA.cpp | |
#include <stdio.h> | |
class ClassA { | |
public: | |
virtual void f( void ); | |
}; | |
class ClassB : public ClassA{ | |
public: | |
void f( int x = 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
FROM brianherman/devbase | |
RUN apt-get update | |
RUN apt-get -y install openssh-server vim htop screen | |
# For debugging | |
RUN apt-get -y install sudo wget curl telnet tcpdump | |
# For 32-bit experiments | |
RUN apt-get -y install gcc-multilib |
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
You can run System Preparation (Sysprep) on your Windows Server 2008 or Windows Server 2012 VM images before or after they are imported. If you run Sysprep before importing your VM, the importation process adds an answer file (unattend.xml) to the VM that automatically accepts the End User License Agreement (EULA) and sets the locale to EN-US. If you choose to run Sysprep after importation, we recommend that you use the Amazon EC2 Config service to run Sysprep. | |
To include your own answer file instead of the default (unattend.xml): | |
Copy the sample unattend.xml file below and set the processorArchitecture parameter to x86 or amd64, depending on your OS architecture: | |
<?xml version='1.0' encoding='UTF-8'?> | |
<unattend xmlns:wcm='http://schemas.microsoft.com/WMIConfig/2002/State' xmlns='urn:schemas-microsoft-com:unattend'> | |
<settings pass='oobeSystem'> | |
<component versionScope='nonSxS' processorArchitecture='x86 or amd64' name='Microsoft-Windows-International-Core' publicKeyToken='31bf3856ad3 |
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
def New_User(self,policy_id=None, token = None, email=None, password = None, domain=None): | |
if policy_id: | |
url2 = "http://uicesv08business/Diamond/BillingService.svc?wsdl" | |
client = SoapClient112(wsdl=self.URL_billing,ns="tem", cache="cache_billingservice") | |
if policy_id: | |
r3 = { | |
'DiamondSecurityToken': token, | |
'RequestData': { | |
'PolicyId': policy_id, |
OlderNewer