Skip to content

Instantly share code, notes, and snippets.

Marcin Rataj lidel

Block or report user

Report or block lidel

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
lidel /
Created Jul 12, 2019
Quick script to check if HTTP server supports compression
set -euo pipefail
if [ $# -ne 1 ]; then
echo 1>&2 "Usage: $0 URL"
exit 3
echo "Checking $1"
lidel /
Last active Oct 1, 2019
Bird's-eye view of work related to IPFS moving to CIDv1 (
lidel /
Last active Oct 11, 2016
Simple watchdog for local Tor Hidden Service
# fail early, be verbose
set -o errexit -o nounset -o xtrace
# confirm the service on port 22 is routable, bounce tor node if no success in 10 seconds
nc.openbsd -v -z -w 10 -x $(cat /var/lib/tor/hidden_service/hostname) 22 || (service tor restart; exit 1)

Keybase proof

I hereby claim:

  • I am lidel on github.
  • I am lidel ( on keybase.
  • I have a public key whose fingerprint is 9971 97D7 8B2D 5ED7 43FC B65D 222B 6784 D5A7 9E42

To claim this, I am signing this object:

View core.js
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at */
"use strict";
module.metadata = {
"stability": "unstable"
let usingJSON = false;
lidel / progfun-week-001
Created Apr 10, 2013
Exercises in Scala, Week 1
View progfun-week-001
package recfun
import common._
import scala.annotation.tailrec
object Main {
def main(args: Array[String]) {
println("Pascal's Triangle")
for (row <- 0 to 10) {
for (col <- 0 to row)
print(pascal(col, row) + " ")
You can’t perform that action at this time.