Skip to content

Instantly share code, notes, and snippets.

View JirkaChadima's full-sized avatar

Jiří Chadima JirkaChadima

View GitHub Profile
# navod dle: https://pimylifeup.com/raspberry-pi-wifi-extender/
# This routes wlan0 network to wlan1 which serves as AP
sudo sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward"
sudo iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
sudo iptables -A FORWARD -i wlan0 -o wlan1 -m state --state RELATED,ESTABLISHED -j ACCEPT
sudo iptables -A FORWARD -i wlan1 -o wlan0 -j ACCEPT
sudo sh -c "iptables-save > /etc/iptables.ipv4.nat"
@JirkaChadima
JirkaChadima / my-london-airline.json
Last active November 4, 2019 12:18
Airline ORG.JSON for London 2019 Hackathon
{
"updatedAt": "2019-11-04T08:12:35.584Z",
"dataFormatVersion": "0.2.3",
"legalEntity": {
"name": "Onboarding demo airline",
"contacts": {
"general": {
"email": "my-airline@example.com",
"phone": "+40213191564",
"url": "https://airline.example.com"
@JirkaChadima
JirkaChadima / london-hotel.json
Created October 29, 2019 15:47
windingtree london hackathon
{
"updatedAt": "2019-11-01T08:12:35.584Z",
"dataFormatVersion": "0.2.3",
"legalEntity": {
"name": "London hotel for WT",
"contacts": {
"general": {
"email": "london-hotel@example.com",
"phone": "+40213191564",
"url": "https://example.com"

Keybase proof

I hereby claim:

  • I am jirkachadima on github.
  • I am jirkachadima (https://keybase.io/jirkachadima) on keybase.
  • I have a public key ASBIi-JOr4Oe4-Un4SKOSIRJ3bvByNYFgFNLTRWktwdSSgo

To claim this, I am signing this object:

@JirkaChadima
JirkaChadima / hotel-org.json
Last active July 2, 2019 10:33
Onboarding demo hacktravel Lisbon 2019
{
"updatedAt": "2019-07-01T08:12:35.584Z",
"dataFormatVersion": "0.2.3",
"legalEntity": {
"name": "Onboarding demo hotel",
"contacts": {
"general": {
"email": "windingtree-hotel-mazurka@mailinator.com",
"phone": "+40213191564",
"url": "https://www.hotel-mazurka.com"
@JirkaChadima
JirkaChadima / index.html
Last active July 1, 2019 11:22
Simple sample booking page for Winding Tree
<html lang="en">
<head>
<meta charset="utf-8">
<title>Winding Tree simple sample booking page</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
</head>
<body class="container">
<div id="error" class="alert"></div>
<div id="hotel-description">
<h1 id="hotel-name"></h1>
@JirkaChadima
JirkaChadima / ISO-639-1-language.json
Last active February 21, 2019 13:42 — forked from jrnk/ISO-639-1-language.json
ISO 639-1 Alpha-2 codes of languages JSON
[
{
"code": "ab",
"name": "Abkhaz"
},
{
"code": "aa",
"name": "Afar"
},
{
@JirkaChadima
JirkaChadima / map.geojson
Last active November 14, 2018 11:13
map.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
const WTLibs = require('@windingtree/wt-js-libs');
const SwarmAdapter = require('@windingtree/off-chain-adapter-swarm');
const HttpAdapter = require('@windingtree/off-chain-adapter-http');
const libs = WTLibs.createInstance({
dataModelOptions: {
provider: 'https://ropsten.infura.io/',
},
offChainDataOptions: {
adapters: {