Skip to content

Instantly share code, notes, and snippets.

View computer-whisperer's full-sized avatar

Christian Balcom computer-whisperer

View GitHub Profile
@computer-whisperer
computer-whisperer / cmake.log
Last active March 26, 2016 23:45
Output of 'cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/freenect2 -DENABLE_CXX11=ON'
-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
@computer-whisperer
computer-whisperer / python_orig.py
Created February 19, 2017 02:52
A recursive message printer
m=''
x='m+=x[[45,46,67,35,43,47,45,61,46][len(m)]];print("m={}{}{}".format(chr(39),m,chr(39)))'
p=['exec(x,globals(),locals())', 'print("x={}{}{}".format(chr(39),x,chr(39)))', 'print("p={}".format(p))', 'for q in p:', ' print(q)']
exec(x,globals(),locals())
print("x={}{}{}".format(chr(39),x,chr(39)))
print("p={}".format(p))
for q in p:
print(q)
@computer-whisperer
computer-whisperer / Dockerfile
Created June 7, 2017 03:12
basic dockerfile for luxrender
FROM base/archlinux
RUN pacman -Syu --noconfirm && pacman -S luxrender --noconfirm
CMD ["luxconsole" "-s"]
@computer-whisperer
computer-whisperer / clusterio_instance_log.txt
Created November 8, 2018 23:06
Running the docker container for clusterio, trying to start an instance of the client. This is the output of the client container before it halts.
Creating instance...
Clusterio | Created instance with settings:
{ factorioPort: 47826,
clientPort: 46071,
__comment_clientPassword: 'This is the rcon password. Its also used for making an instanceID. Make sure its unique and not blank.',
clientPassword: 'puvykk' }
Server settings: {
"name": "computer-whisperer's clusterio world0",
"description": "This server runs Clusterio",
"tags": [
@computer-whisperer
computer-whisperer / start_instance_0.sh
Created November 8, 2018 23:09
The script I am using to start the client instance
docker service create --with-registry-auth \
--name clusterio-instance-0 \
--publish 34167:34167\
--mount type=bind,src=/mnt/c-ceph/Containers/clusterio/data/,dst=/factorioClusterio/,readonly=0 \
--env MODE=client \
--env PORT=34167 \
--env INSTANCE=world0 \
--restart-condition any \
danielvestol/clusterio
int main(int a, int b, int c, char d){
char m;
int l;
int v;
int t;
int e;
int f;
int n;
int j;
int h;
Last cycle: #4
Max Score = -11
Iterations = 1,600,000
Current cycle:
Output =
Score = 87
Iterations = 3,200,000 / 3,200,000
int main(int a, int b, int c, char d){
int step(int* board, int* move_out_x, int* move_out_y, int board_width){
int a;
int b;
int c;
int d;
int e;
int f;
*move_out_x = *board;
move_out_x = board + board_width;
*move_out_y = *move_out_x;
int step(int* board, int* move_out_x, int* move_out_y, int board_width){
char a;
int b;
int c;
int d;
int e;
int f;
int* g;
int h;
int i;
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <math.h>
unsigned int g_seed = 2548;
// Compute a pseudorandom integer.
// Output value in range [0, 32767]
int fast_rand(void) {