Skip to content

Instantly share code, notes, and snippets.

View martinhbramwell's full-sized avatar
🏠
Creating a serverless, offline-first, single page progressive web app with VueJS

Martin H. Bramwell martinhbramwell

🏠
Creating a serverless, offline-first, single page progressive web app with VueJS
View GitHub Profile
@martinhbramwell
martinhbramwell / gist:2863036
Created June 3, 2012 10:58
What the server-side shows
The server machine is a public VPS with domain name -- meta.fleetingclouds.net
rundeck@meta:~/ots$
rundeck@meta:~/ots$ ./time.ot
Welcome to Open Transactions... Test Client -- version 0.81.f
Server default: tBy5mL14qSQXCJK7Uz3WlTOKRP9M0JZksA3Eg7EnnQ1
MyNym default: T1Q3wZWgeTUoaUvn9m1lzIK5tn5wITlzxzrGNI8qtaV
@martinhbramwell
martinhbramwell / gist:2863119
Created June 3, 2012 11:31
Contents of my .ot directory.
rundeck@meta:~/.ot$
rundeck@meta:~/.ot$ cd ~/.ot
rundeck@meta:~/.ot$ tree
.
├── client.cfg
├── CLIENT-COMMANDS.txt
├── client_data
│   ├── accounts
│   │   ├── 82TJYj4BXBkxQFBgqirHTmht75GOhQUNur6iLCwjcpq
│   │   ├── eMldMMiKfJRO8B8yJjzcezs9xvSt7dkdlWt50e8CDxn
@martinhbramwell
martinhbramwell / gist:2863143
Created June 3, 2012 11:38
cat check_user.ot
#! /usr/local/bin/ot --script
// --------------------------------------------------------------------
// NOTE: No further need to include these anymore, since OT includes them
// automatically now.
//
//use("../ot/ot_utility.ot")
//use("../ot/otapi.ot")
//use("../ot/ot_made_easy.ot")
@martinhbramwell
martinhbramwell / gist:2863281
Created June 3, 2012 12:29
./create_asset_acct.ot --mynym SP --mypurse CvHG
Given :
SERVERS:
-----
Localhost Server Contract -- tBy5mL14qSQXCJK7Uz3WlTOKRP9M0JZksA3Eg7EnnQ1
------------------------------------------------------------------
ASSET TYPES:
-----
silver grams -- CvHGtfOOKzQKL5hFL7J4iF5yAodVKhS1rxPzME5R9XA
-----
@martinhbramwell
martinhbramwell / gist:2863318
Created June 3, 2012 12:37
./create_asset_acct.ot Successful?
rundeck@meta:~/build/Open-Transactions/scripts/samples$
rundeck@meta:~/build/Open-Transactions/scripts/samples$ ./create_asset_acct.ot --mynym SP8rPHc6GMRPL517UL5J8RK2yOiToyVqMaj3PUHvLzM --mypurse CvHGtfOOKzQKL5hFL7J4iF5yAodVKhS1rxPzME5R9XA
Welcome to Open Transactions... Test Client -- version 0.81.f
Server default: tBy5mL14qSQXCJK7Uz3WlTOKRP9M0JZksA3Eg7EnnQ1
MyNym default: T1Q3wZWgeTUoaUvn9m1lzIK5tn5wITlzxzrGNI8qtaV
MyNym from command-line: SP8rPHc6GMRPL517UL5J8RK2yOiToyVqMaj3PUHvLzM
MyPurse from command-line: CvHGtfOOKzQKL5hFL7J4iF5yAodVKhS1rxPzME5R9XA
@martinhbramwell
martinhbramwell / gist:2875256
Created June 5, 2012 14:14
Not a happy server
rundeck@meta:~$
rundeck@meta:~$ ot_server
Welcome to Open Transactions... Test Server -- version 0.81.f
(transport build: OTMessage -> OTEnvelope -> ZMQ )
server main: Unable to load ini file (/home/rundeck/.ot/ot_init.cfg) to find data_folder path
Will assume that server data_folder is at path: ./server_data
Using data_folder path: ./server_data
rundeck@meta:~/build/Open-Transactions/scripts/samples$ ./stat.ot
Welcome to Open Transactions -- version 0.82.a
Created folder: /home/rundeck/.ot/client_data/paymentInbox
Created folder: /home/rundeck/.ot/client_data/recordBox
Created folder: /home/rundeck/.ot/client_data/purse
Created folder: /home/rundeck/.ot/client_data/mints
Created folder: /home/rundeck/.ot/client_data/smartcontracts
#!/bin/bash
export A_NEW_USER="dpearson"
#
echo "Get ${A_NEW_USER} home directory .. . . . . . . . "
export A_NEW_USER_HOME=$( grep "${A_NEW_USER}" /etc/passwd | awk -F: '{print $6}' )
echo "New user's hme directory is ${A_NEW_USER_HOME}"
#
if [ "XX${A_NEW_USER_HOME}" == "XX" ]; then
#
echo "Create admin group ............................................"
@martinhbramwell
martinhbramwell / gist:2898284
Created June 8, 2012 21:59
Yet another show stopper
rundeck@cgf:~/build/Open-Transactions/scripts/samples$ ./time.ot
Welcome to Open Transactions -- version 0.82.a
Unable to load ini file (~/.ot/ot_init.cfg) to find client_data path.
Will assume that client data_folder is at path: ~/.ot/client_data
Failed loading the ini file: ~/.ot/client_data/../client.cfg
Unable to locate data_folder: ~/.ot/client_data
OT_API::Init: Failed invoking OTDB::InitDefaultStorage with path: ~/.ot/client_data
@martinhbramwell
martinhbramwell / Git Bash steps
Created June 30, 2012 11:05
Using the bash window of mysysgit to make keys for GitHub
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEArdeleQE/9ryFSO6wfNP8kgmG+Mj+Imir5npkWSUs1kv3SWZ/2SoOqzdw+6BjBtK4VV4siOd4XqCO4fUUarPWoLc/5KMyK3GAc/Od5WN1QjzH2aWUwn/CIKK4XfEJVXqex2a8OWF4vaMS8RC3UfHBQqtQ3CidiDRR4goF6zww7zib9COUq5+b+9qgciN3xcZWYzzzBqGfPbx9rO1GJF25tLaeSMVpotiDtfdLzIbeOAWUI+en866lr/i6mJjOEUiWPLEeuTj37oQ++H4ah8UYcXU1mNotbi4wQyd7GPXWL36X4YRzKBJnkjLucEmIZ5OQzjcIi7Py4SEn6p1ITL+Qpw== [email protected]
After you have installed mysysgit you will see an option "Git Bash" in your Windows Explorer pop-up menu.
This will open up a Unix emulator terminal window, with which you can manage git and related functions.
1. Create the directory where keys are normally stored and a place to back them up (idempotent)
$ mkdir -p ~/.ssh/key_backup
2. Step into that directory
$ cd ~/.ssh
3. If you have an existing pair of ssh keys ... move them out of harm's way.