Skip to content

Instantly share code, notes, and snippets.

View zenoamaro's full-sized avatar
There are no coincidences

ZEN♡ zenoamaro

There are no coincidences
View GitHub Profile
@zenoamaro
zenoamaro / chip.js
Last active March 28, 2018 09:56
Functional-style emulator of a simple 8-bit CPU.
/*
A functional-style emulator of a simple 8-bit CPU.
III AAAAA
00000 011 00000 INC
00001 010 00000 JMP 0
$ babel-node chip.js
1 CPU reset->fetch1 RST:no READ:no WRITE:no A:0 AR:0 DR:0 IR:0 PC:0
@zenoamaro
zenoamaro / Terminal utilities
Last active August 29, 2015 14:22
Utilities to manipulate the terminal
- loading-spinner
Shows a text-based loading spinner.
@zenoamaro
zenoamaro / Network scripts
Last active August 29, 2015 14:22
Small scripts for common network tasks.
- Miniserver
Starts a simple HTTP server publishing the current directory
@zenoamaro
zenoamaro / arguments.sh
Last active September 5, 2020 09:40
Sample scripts for testing qsh
#!/usr/bin/env sh
echo "Arguments are:"
for arg in "$@"; do
echo "- $arg"
done
@zenoamaro
zenoamaro / Darwin
Last active August 29, 2015 14:22
Output of uv_interface_addresses and uv_network_interfaces libuv/libuv#219
uv_interface_addresses:
name: lo0
internal: 1
physical address: xx:xx:xx:xx:xx:xx
address: ::1
netmask: ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
name: lo0
internal: 1
physical address: xx:xx:xx:xx:xx:xx
address: 127.0.0.1
@zenoamaro
zenoamaro / gist:d7d96a67f362f762a531
Created July 16, 2014 16:03
GoSublime log for issue #539
GoSublime Sanity Check
| install state: done
| sublime.version: 3059
| sublime.channel: stable
| about.ann: a14.02.25-1
| about.version: r13.12.26-3
| version: r13.12.26-3
| platform: osx-x64
| ~bin: ~/Library/Application Support/Sublime Text 3/Packages/User/GoSublime/osx-x64/bin
@zenoamaro
zenoamaro / hst.py
Last active May 16, 2017 13:14 — forked from takeshixx/hb-test.py
Testing tool for analysis of Heartbleed vulnerability (CVE-2014-0160).
#!/usr/bin/env python2
# Heart-shaped tool
# =================
# Testing tool in demonstration of CVE-2014-0160.
# Heavily derived from code by Jared Stafford (jspenguin@jspenguin.org).
# This version by: @zenoamaro, <zenoamaro at gmail dot com>
# Hits the Heartbleed vulnerability on a hostname.

Contract Killer 3

Revised date: 07/11/2012

Between us [company name] and you [customer name]

Summary:

We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.