Skip to content

Instantly share code, notes, and snippets.

@koakh
koakh / gist:fbbc37cde630bedcf57acfd4d6a6956b
Last active April 6, 2024 02:04
SurrealDB : How to use signin and signup (server + client nodesjs)
**As a developer you have complete control over the signup and signin functionality...**
```shell
$ surreal sql --conn http://localhost:8000 --user root --pass root --ns test --db test
```
```sql
-- optional : this is the default see --ns test --db test start server flags
-- USE NS test DB test;
@koakh
koakh / setupHyperledgerFabricUbuntu.sh
Last active April 30, 2020 21:24
setup hyperledger fabric 1.4.6 on ubuntu 18.04...20.04
#!/bin/bash
[[ $EUID -ne 0 ]] && echo "This script must be run as root." && exit 1
FABRIC_VERSION=1.4.6
# FABRIC_VERSION=2.0.1
echo "install docker"
apt install \
@koakh
koakh / app.html
Last active December 21, 2017 11:26 — forked from jsobell/app.html
Aurelia Fetch Client Gist
<template>
<h1>${message}</h1>
<pre>data:[${data}]</pre>
<ul>
<!--
<li repeat.for="user of users">
${user.login}
</li>
-->
</ul>
@koakh
koakh / app.html
Created December 18, 2017 17:10
Aurelia Fetch Client Gist - Forked
<template>
<h1>${message}</h1>
<pre>${data}</pre>
<ul>
<li repeat.for="user of users">
${user.login}
</li>
</ul>
</template>
@koakh
koakh / app.html
Created December 18, 2017 17:10
Aurelia Fetch Client Gist
<template>
<h1>${message}</h1>
<pre>${data}</pre>
<ul>
<li repeat.for="user of users">
${user.login}
</li>
</ul>
</template>
@koakh
koakh / app.html
Last active December 18, 2017 21:47 — forked from jdanyow/app.html
Aurelia Fetch Client Gist
<template>
<h1>${message}</h1>
<pre>data:[${data}]</pre>
<ul>
<!--
<li repeat.for="user of users">
${user.login}
</li>
-->
</ul>
@koakh
koakh / app.html
Last active July 24, 2017 14:18 — forked from fabioluz/app.html
Aurelia Select2 MultiSelect Validation
<template>
<require from="./select2-attribute"></require>
<select style="width: 200px;" ddl value.bind="selectedValue" change.delegate="valueChanged()" multiple>
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
</select>
<br><br>
@koakh
koakh / app.html
Created July 24, 2017 13:36 — forked from fabioluz/app.html
Aurelia RequireJS Gist
<template>
${message}
</template>