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
lidel / http-compression-check.sh
Created Jul 12, 2019
Quick script to check if HTTP server supports compression
View http-compression-check.sh
#!/bin/bash
set -euo pipefail
if [ $# -ne 1 ]; then
echo 1>&2 "Usage: $0 URL"
exit 3
fi
echo "Checking $1"
@lidel
lidel / ipfs-migration-to-cidv1b32.md
Last active Jul 16, 2019
Bird's-eye view of work related to IPFS moving to CIDv1 (https://github.com/ipfs/ipfs/issues/337)
View ipfs-migration-to-cidv1b32.md
@lidel
lidel / _hidden-service-watchdog.sh
Last active Oct 11, 2016
Simple watchdog for local Tor Hidden Service
View _hidden-service-watchdog.sh
#!/bin/bash
# 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 127.0.0.1:9050 $(cat /var/lib/tor/hidden_service/hostname) 22 || (service tor restart; exit 1)
View keybase.md

Keybase proof

I hereby claim:

  • I am lidel on github.
  • I am lidel (https://keybase.io/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 http://mozilla.org/MPL/2.0/. */
"use strict";
module.metadata = {
"stability": "unstable"
};
let usingJSON = false;
@lidel
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.