Skip to content

Instantly share code, notes, and snippets.

[
[0] "breaking bad",
[1] "house of cards",
[2] "How i met your mother",
[3] "big bang theory",
[4] "The Newsroom",
[5] "Downton Abbey",
[6] "Mad Men"
]
"breaking bad"

Keybase proof

I hereby claim:

  • I am theanonymous on github.
  • I am jakoboesterling (https://keybase.io/jakoboesterling) on keybase.
  • I have a public key whose fingerprint is 4882 0178 448C 2D9C 9F0B D224 EF5F B29F 2E7C 4BAD

To claim this, I am signing this object:

name of display: :0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
GLX_ARB_create_context, GLX_ARB_create_context_profile,
GLX_ARB_create_context_robustness, GLX_ARB_multisample,
GLX_EXT_create_context_es2_profile, GLX_EXT_import_context,
GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, GLX_EXT_visual_rating,
name of display: :0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
GLX_ARB_create_context, GLX_ARB_create_context_profile,
GLX_ARB_create_context_robustness, GLX_ARB_multisample,
GLX_EXT_create_context_es2_profile, GLX_EXT_import_context,
GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, GLX_EXT_visual_rating,
@TheAnonymous
TheAnonymous / Icon_creator.rb
Created November 15, 2014 15:35
This is a small snippet to change the size of an input image to iconsize of Firefoxphone
require 'opencv'
include OpenCV
if ARGV.size == 0
puts "Usage: ruby #{__FILE__} ImageToLoadAndDisplay"
exit
end
image = nil
begin
@TheAnonymous
TheAnonymous / form.erb
Last active August 29, 2015 14:14
This is a very simple sinatra webserver to upload/download files. You should create a folder with the name "public" thats where the uploaded files are going. Also please make a folder with the name "views" and place the form.erb there. Thats all have fun :)
<html>
<head>
<title>File Upload</title>
</head>
<body>
<h1>Upload File</h1>
<form action="/save_file" method="POST" enctype="multipart/form-data">
<input type="file" name="file">
<input type="submit" value="Upload">
</form>
curl "http://192.168.178.1:49000/upnp/control/WANIPConn1" -H 'Content-Type: text/xml; charset="utf-8"' -H 'SoapAction: urn:schemas-upnp-org:service:WANIPConnection:1#AddPortMapping' -d '<?xml version="1.0" encoding="utf-8"?> <s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body><u:AddPortMapping xmlns:u="urn:schemas-upnp-org:service:WANIPConnection:1"><NewRemoteHost /><NewExternalPort>44</NewExternalPort><NewProtocol>TCP</NewProtocol><NewInternalPort>55</NewInternalPort><NewInternalClient>192.168.178.55</NewInternalClient><NewEnabled>1</NewEnabled><NewPortMappingDescription /><NewLeaseDuration>0</NewLeaseDuration></u:AddPortMapping></s:Body> </s:Envelope>'
curl "http://192.168.1.xxx:49000/upnp/control/WANIPConn1" -H 'Content-Type: text/xml; charset="utf-8"' -H 'SoapAction: urn:schemas-upnp-org:service:WANIPConnection:1#DeletePortMapping' -d '<?xml version="1.0" encoding="utf-8"?> <s:Envelope s:encodingStyle="http://schemas.xmlsoap
<html>
<head>
<title>My first Three.js app</title>
<style>
body { margin: 0; }
canvas { width: 100%; height: 100% }
</style>
</head>
<body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r71/three.min.js"></script>
@TheAnonymous
TheAnonymous / Fractals_growing.cpp
Created April 23, 2015 15:03
This is a small C++ programm to simulate growing fractals.
#include <opencv2/opencv.hpp>
#include <vector>
#include <random>
#include <iostream>
#include <cstdlib>
#include <iostream>
#include <ctime>
#include <unistd.h>
import os, re,asyncfile, jester, asyncdispatch, htmlgen, asyncnet, net, browsers, parseutils, strutils, parseopt2
echo "\"./upload insecure\" to share also subdirectorys"
echo "\"./upload 5000\" to serve on port 5000"
echo "\"./upload insecure 5000\" to share also subdirectorys and serve on port 5000"
var port = 8080
var insecure_world = false
var html_temp = ""
html_temp.add "<link href=\"//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css\" rel=\"stylesheet\">"