Skip to content

Instantly share code, notes, and snippets.

View astachurski's full-sized avatar

Adrian Stachurski astachurski

View GitHub Profile
@astachurski
astachurski / bookmarks.csv
Created March 21, 2020 14:57 — forked from wprzyb/bookmarks.csv
Baza czestotliwosci
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
# Tag name ; color
Służba Zdrowia ; #00aaff
Broadcast Piraci ; #ffd5d5
Airband ; #ffffff
Broadcast ; #00f400
Ciekawe ; #b038c0
Inne koleje ; #559558
Broadcast DX ; #008200
Przemiennik ; #ffd500
PKP ; #6ec073
@astachurski
astachurski / web-servers.md
Created January 3, 2018 11:57 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@astachurski
astachurski / gist:9e2f1b3018e86ef90fd1bc56f9d4946a
Created January 14, 2017 19:51 — forked from smoser/gist:4756561
boot a cloud image in kvm
## Install a necessary packages
$ sudo apt-get install kvm cloud-utils genisoimage
## URL to most recent cloud image of 12.04
$ img_url="http://cloud-images.ubuntu.com/server/releases/12.04/release"
$ img_url="${img_url}/ubuntu-12.04-server-cloudimg-amd64-disk1.img"
## download the image
$ wget $img_url -O disk.img.dist
## Create a file with some user-data in it
@astachurski
astachurski / gol.erl
Last active August 29, 2015 14:17 — forked from parse/gol.erl
-module(gol).
-export([gol/3,timer/1,cell/6]).
% Main program
gol(W,H,Alive) ->
frame:init(),
frame:set_head("Conway's Game of Life in Erlang"),
frame:set_foot("By Jonatan and Anders"),
frame:set_w(W),
frame:set_h(H),
/**
* D Holbrook
*
* Code Club: PO1
*
* (*) Define a binary tree data structure and related fundamental operations.
*
* Use whichever language features are the best fit (this will depend on the language you have selected). The following operations should be supported:
*
* Constructors