Skip to content

Instantly share code, notes, and snippets.

Jiří Chadima JirkaChadima

Block or report user

Report or block JirkaChadima

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
View setup-wifi-masq.sh
# 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 Nov 4, 2019
Airline ORG.JSON for London 2019 Hackathon
View my-london-airline.json
{
"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 Oct 29, 2019
windingtree london hackathon
View london-hotel.json
{
"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"
View keybase.md

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 Jul 2, 2019
Onboarding demo hacktravel Lisbon 2019
View hotel-org.json
{
"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"
View legal-entity-hotel-api.json
@JirkaChadima
JirkaChadima / ISO-639-1-language.json
Last active Feb 21, 2019 — forked from jrnk/ISO-639-1-language.json
ISO 639-1 Alpha-2 codes of languages JSON
View ISO-639-1-language.json
[
{
"code": "ab",
"name": "Abkhaz"
},
{
"code": "aa",
"name": "Afar"
},
{
@JirkaChadima
JirkaChadima / index.html
Last active Jul 1, 2019
Simple sample booking page for Winding Tree
View index.html
<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>
View index.js
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: {
View map.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.