Skip to content

Instantly share code, notes, and snippets.

@jhawk28
jhawk28 / file.go
Created January 15, 2014 02:20
fd move test
package main
import (
"fmt"
"io/ioutil"
"os"
"time"
)
func main() {
@jhawk28
jhawk28 / salt windows error.txt
Created October 17, 2011 15:35
salt windows error
C:\salt>salt-minion -c minion
Traceback (most recent call last):
File "C:\Python27\Scripts\salt-minion.py", line 20, in <module>
main()
File "C:\Python27\Scripts\salt-minion.py", line 15, in main
minion.start()
File "C:\Python27\lib\site-packages\salt\__init__.py", line 161, in start
minion.tune_in()
File "C:\Python27\lib\site-packages\salt\minion.py", line 302, in tune_in
self._handle_payload(payload)
@jhawk28
jhawk28 / PushTest.java
Created October 29, 2010 18:28
Causes Assertion failed: fds.size () <= FD_SETSIZE (\zeromq2\src\select.cpp:67)
import org.zeromq.ZMQ;
public class PushTest
{
public static void main(String[] args)
{
final ZMQ.Context ctx = ZMQ.context(1);
new Thread()
{
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: gen/zmqtest.proto
public final class Zmqtest {
private Zmqtest() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}