-
create repo
-
install https://gitjournal.io/ on phone
-
setup gitjournal on phone
-
clone repo on computer
-
install script alias
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import crypto from 'crypto' | |
| import GUN from 'gun'; | |
| import 'gun/sea.js'; | |
| import 'gun/lib/open.js' | |
| import 'gun/lib/load.js' | |
| import { sha256 } from 'js-sha256'; | |
| import Geohash from 'latlon-geohash'; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import crypto from 'crypto' | |
| import GUN from 'gun'; | |
| import 'gun/sea.js'; | |
| import 'gun/lib/open.js' | |
| import { sha256 } from 'js-sha256'; | |
| var SEA = GUN.SEA; | |
| var gun = GUN() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (async () => { | |
| const GUN = require('gun'); | |
| const suffix = Date.now() | |
| require('gun/sea') | |
| var SEA = GUN.SEA; | |
| var gun = GUN() | |
| async function auth( username, password ) { | |
| return new Promise(( resolve, reject ) => { | |
| gun.user() | |
| .auth( username, password, ack => |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (async () => { | |
| const GUN = require('gun'); | |
| const dbName = "database" + new Date() | |
| require('gun/lib/path.js') | |
| var SEA = GUN.SEA; | |
| var gun = GUN() | |
| // 1...... | |
| // create server certificate for database (allowing server to delete all user objects) | |
| var ServerAdmin = await SEA.pair() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pickle | |
| import json | |
| import tensorflow as tf | |
| from keras.models import load_model | |
| from keras.preprocessing.sequence import pad_sequences | |
| from keras.models import Sequential | |
| from keras.layers import Dense, Embedding, LSTM | |
| import tensorflow as tf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| extends TextureRect | |
| var shader_material | |
| var screen_size | |
| func _ready(): | |
| screen_size = OS.get_screen_size() | |
| shader_material = self.material | |
| set_process_input(true) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- create new images | |
| vPlayer1 = of.VideoPlayer() | |
| outputFbo = of.Fbo() | |
| serverTemp = syphon.Server() | |
| serverOutput = syphon.Server() | |
| outputWidth = 1280 | |
| outputHeight = 720 | |
| previewWidth = 400 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package hub | |
| import ( | |
| "bytes" | |
| "log" | |
| "net/http" | |
| "sync" | |
| "time" | |
| "github.com/gorilla/websocket" |
curl 'https://gist.githubusercontent.com/sloev/5de3ed6bc5d3e78f656029071eb16409/raw/728aee9e9a88281d7bcb398f2408aa5051632c1d/gpslog.py' > ~/gpslog.py
curl 'https://gist.githubusercontent.com/sloev/5de3ed6bc5d3e78f656029071eb16409/raw/728aee9e9a88281d7bcb398f2408aa5051632c1d/gpslog.sh' > ~/gpslog.sh
curl 'https://gist.githubusercontent.com/sloev/5de3ed6bc5d3e78f656029071eb16409/raw/728aee9e9a88281d7bcb398f2408aa5051632c1d/gpslog.service' > ~/gpslog.service
sudo cp ~/gpslog.service /etc/systemd/system/gpslog.service
sudo systemctl enable gpslog.service