Skip to content

Instantly share code, notes, and snippets.

Susanne Schmidt Su-Shee

Block or report user

Report or block Su-Shee

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:219d00953b6ec7a44c4e01ce616f4522
FROM ubuntu:16.10
# update the repository
RUN apt-get update --fix-missing
# install some basics
RUN apt-get install -y vim curl wget dialog net-tools \
build-essential strace \
perl libperl-dev python python-dev libxml2-dev libxslt-dev \
libreadline-dev zlib1g-dev \
Su-Shee / timeline 1986
Created Dec 8, 2016
teenage behavior archeology
View timeline 1986
unset key
set terminal pngcairo size 900,500 enhanced font "Verdana, 10"
set output "teenage.png"
unset title
#set grid xtics lt 0 lw 2 lc rgb "#990076"
Su-Shee / GnuPlot Coffee Time Plot
Created Dec 6, 2016
GnuPlot Coffee Time Plot
View GnuPlot Coffee Time Plot
unset key
set terminal pngcairo size 900,600 enhanced font "Verdana, 10"
set output "coffee.png"
unset title
set format x ''
View gist:6a71f9272feb8597d488eeec93932f4b
#!/usr/bin/env perl
use Mojolicious::Lite;
use Cwd;
@ARGV = qw(daemon --listen http://*:5000);
app->static->paths->[0] = getcwd;
# needed to setup the usual index.html landing
View gist:892200cbb50cae5e9262e4e1fe5def21
#!/usr/bin/env perl
use strict;
use warnings;
use feature 'say';
use ZMQ::LibZMQ4;
use ZMQ::Constants qw/:all/;
Su-Shee / gist:285ceeaf126add1e9a11
Last active Oct 25, 2015
Falsehoods programmers cannot believe about non-existing things
View gist:285ceeaf126add1e9a11
There is a huge body of valid and yet faked or non-existing things you can use freely e.g. for testing purposes:
* The "Null Island" being a geographical convenience, non-existing island: "Null Island is a fictional island in the Gulf of Guinea
added to the Natural Earth public domain map dataset, located where the equator crosses the prime meridian, at coordinates 0°N 0°E."
see details: - it even has a fake travel website :)
* On TV, you see the recurring fake phone number:
View gist:159affbedef20f0b7a01
cook chickpeas without anything. they freeze well, so make as much as you want. cook them SOFT.
* 1 cup of chickpeas
* 2-3 spoons of tahin
* 2-3 spoons of olive oil
* 2-4 spoons of lemon juice (to taste, I like with more)
View gist:e0ec15df21619be1a9aa
#!/usr/bin/env perl
use strict;
use warnings;
use feature 'say';
use ZMQ::LibZMQ4;
use ZMQ::Constants qw/:all/;
View gist:cd283c2c25d952f8dfd8
I have a cheap validation regex for UUIDs on routes - mostly to distinguish :stuff
my $uuid = qr/[[:xdigit:]]{8}-([[:xdigit:]]{4}-){3}[[:xdigit:]]{12}/;
I use it like so:
$r->get('/comments/:object' => [ object => $uuid ])
or, like this:
View gist:6f34784bbea8690c98cc
[Tue Jul 7 13:11:19 2015] [debug] Mojo::IOLoop {
Parents Mojo::Base
public methods (23) : accept_interval, acceptor, client, DEBUG, delay, is_running, lock, max_accepts, max_connections, multi_accept, next_tick, one_tick, reactor, recurring, remove, reset, server, singleton, start, stop, stream, timer, unlock
private methods (9) : _accepting, _id, _instance, _not_accepting, _recurring, _remove, _stop, _stream, _timer
internals: {
accept "78955751431ea7415817779bd8d3b056",
accept_interval 0.025,
acceptors {
d05fdcc7c32d7c73e0d7cbbc717a708d Mojo::IOLoop::Server
You can’t perform that action at this time.