Skip to content

Instantly share code, notes, and snippets.

View posix4e's full-sized avatar
🎯
Focusing

Alex Newman posix4e

🎯
Focusing
View GitHub Profile
@posix4e
posix4e / gist:8853085
Created February 6, 2014 21:43
Bizarro bug
#!/bin/sh
set -ex
for i in {1..1000}
do echo $i
echo "local.random.diceroll 1 `date +%s`" | nc localhost 2003
done
+++ for i in '{1..1000}'
+++ echo 1
1
date +%s

Keybase proof

I hereby claim:

  • I am posix4e on github.
  • I am posix4e (https://keybase.io/posix4e) on keybase.
  • I have a public key whose fingerprint is 88AA 3D61 0B01 165F F93F 53FC A0FA 404B 1723 F63F

To claim this, I am signing this object:

@posix4e
posix4e / gist:9767932
Created March 25, 2014 18:21
securedrop not building on my pc
To re-run tests:
cd /vagrant/securedrop
./test.sh
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
chmod +x /tmp/vagrant-shell && /tmp/vagrant-shell
posix4e@posix4e-B85H3-M:~/projects/securedrop$ vagrant ssh
Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic x86_64)
To make sure everything works, try running the app:
$ vagrant ssh
$ cd /vagrant/securedrop
$ python source.py &
$ python journalist.py &
Now you can visit the site at 127.0.0.1:{8080,8081} in your browser.
To re-run tests:
diff --git a/src/main/java/org/jetlang/core/BatchExecutorImpl.java b/src/main/java/org/jetlang/core/BatchExecutorImpl.java
index 4efdb48..45bd8b7 100644
--- a/src/main/java/org/jetlang/core/BatchExecutorImpl.java
+++ b/src/main/java/org/jetlang/core/BatchExecutorImpl.java
@@ -1,5 +1,7 @@
package org.jetlang.core;
+import java.util.Iterator;
+
/**
@posix4e
posix4e / gist:9959153
Created April 3, 2014 17:44
broken source
diff --git a/src/main/java/org/jetlang/core/BatchExecutorImpl.java b/src/main/java/org/jetlang/core/BatchExecutorImpl.java
index 4efdb48..45bd8b7 100644
--- a/src/main/java/org/jetlang/core/BatchExecutorImpl.java
+++ b/src/main/java/org/jetlang/core/BatchExecutorImpl.java
@@ -1,5 +1,7 @@
package org.jetlang.core;
+import java.util.Iterator;
+
/**
Failed looking up symbol getgroups
[backtrace]
0x32bf92 <elf::object::resolve_pltgot(unsigned int)+82>
0x360ff2 <__elf_resolve_pltgot+46>
0x2000004138d4 <???+4274388>
0x2000004072df <???+4223711>
0x2000004072df <???+4223711>
0x20000040050a <???+4195594>
cd /home/posix4e/project/osv/build/release/module \
&& jdkbase=/home/posix4e/project/osv/external/x64/openjdk.bin/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.4.5.1.fc20.x86_64 OSV_BASE=/home/posix4e/project/osv OSV_BUILD_PATH=/home/posix4e/project/osv/build/release /home/posix4e/project/osv/scripts/module.py --image-config openjdk8
No such image configuration: openjdk8. Assuming list of modules.
Importing /home/posix4e/project/osv/apps/openjdk8/module.py
Modules:
openjdk8
Preparing usr.manifest
Appending /home/posix4e/project/osv/apps/openjdk8/usr.manifest to usr.manifest
Traceback (most recent call last):
File "/home/posix4e/project/osv/scripts/module.py", line 172, in <module>
Started by user alex.newman
[EnvInject] - Loading node environment variables.
Building remotely on lci-hbase02.bdva.wandisco.com (hbase) in workspace /var/lib/jenkins/workspace/hbase-small-medium
> git rev-parse --is-inside-work-tree
Fetching changes from the remote Git repository
> git config remote.origin.url https://github.com/OhmData/hbase-public.git
Fetching upstream changes from https://github.com/OhmData/hbase-public.git
> git --version
> git fetch --tags --progress https://github.com/OhmData/hbase-public.git +refs/heads/*:refs/remotes/origin/*
Seen branch in repository origin/4955
sudo perl -pi -e 's|\x74\x11\x83\xF8\x3C|\x74\x11\x83\xF8\x3F|g' /Volumes/USB/mach_kernel
sudo perl -pi -e 's|\xEB\x0A\x83\xF8\x3A|\xEB\x0A\x83\xF8\x3F|g' /Volumes/USB/mach_kernel