Skip to content

Instantly share code, notes, and snippets.

View weex's full-sized avatar
updated profile 🤔

David Sterry weex

updated profile 🤔
View GitHub Profile
16:26:16 sidekiq.1 | warning: please see https://github.com/whitequark/parser#compatibility-with-ruby-mri.
16:26:17 web.1 | [31468] ! Unable to load application: NoMethodError: undefined method `>>' for "x":String
16:26:17 web.1 | Did you mean? >
16:26:17 web.1 | /home/vagrant/.rvm/gems/ruby-2.7.2/gems/grit-2.0.0/lib/grit/git-ruby/internal/loose.rb:108:in `unpack_object_header_gently': undefined method `>>' for "x":String (NoMethodError)
16:26:17 web.1 | Did you mean? >
16:26:17 web.1 | from /home/vagrant/.rvm/gems/ruby-2.7.2/gems/grit-2.0.0/lib/grit/git-ruby/internal/loose.rb:56:in `get_raw_object'
16:26:17 web.1 | from /home/vagrant/.rvm/gems/ruby-2.7.2/gems/grit-2.0.0/lib/grit/git-ruby/internal/loose.rb:32:in `[]'
16:26:17 web.1 | from /home/vagrant/.rvm/gems/ruby-2.7.2/gems/grit-2.0.0/lib/grit/git-ruby/repository.rb:84:in `block in get_raw_object_by_sha1'
16:26:17 web.1 | from /home/vagrant/.rvm/gems/ruby-2.7.2/gems/grit-2.0.0/lib/grit/git-ruby/repository.rb:83:in `ea
@weex
weex / mastodon-docker-setup.md
Last active July 3, 2025 09:30 — forked from aeble/mastodon-docker-setup.md
Ecko Docker Setup

Ecko Docker Setup

Setting up

Clone Ecko's repository.

# Clone Ecko to ~/ecko directory
git clone https://github.com/magicstone-dev/ecko.git
# Change directory to ~/ecko

cd ~/ecko

@weex
weex / gist:add4a96da52be1ca32e9698ce713b366
Last active July 25, 2021 23:58
Working nginx config for trustroots
server {
root /var/www/o3.davidsterry.com/ft;
index index.html index.htm index.nginx-debian.html;
server_name o3.davidsterry.com www.o3.davidsterry.com;
server_tokens off;
location / {
proxy_pass http://127.0.0.1:3000;
proxy_redirect off;
@weex
weex / gist:a1f428ca453859918632ac2a15f82950
Created July 23, 2021 05:52
diff of config/env/default.js
diff --git a/config/env/default.js b/config/env/default.js
index c04fa435..e4fdba79 100644
--- a/config/env/default.js
+++ b/config/env/default.js
@@ -34,13 +34,13 @@ module.exports = {
uploadTmpDir: './tmp/',
uploadDir: './public/uploads-profile',
circleImagesDir: './public/uploads-circle',
- port: 3000,
- host: 'localhost',
server {
root /var/www/o3.davidsterry.com/ft;
index index.html index.htm index.nginx-debian.html;
server_name o3.davidsterry.com www.o3.davidsterry.com;
location /public/ {
alias /var/www/o3.davidsterry.com/ft/public/;
gzip_static on;
...
10993 timing build:link:node_modules/sshpk Completed in 27ms
10994 timing build:link:node_modules/uglify-js Completed in 27ms
10995 timing build:link:node_modules/uuid Completed in 27ms
10996 timing build:link:node_modules/which Completed in 27ms
10997 timing build:link:node_modules/accord/node_modules/uglify-js Completed in 26ms
10998 timing build:link:node_modules/gulp-eslint/node_modules/eslint Completed in 26ms
10999 timing build:link:node_modules/gulp-eslint/node_modules/semver Completed in 26ms
11000 timing build:link:node_modules/html-minifier/node_modules/uglify-js Completed in 26ms
11001 timing build:link Completed in 34ms
diaspora@diaspora:~/diaspora/config$ gem install bundler
Fetching bundler-2.2.19.gem
Successfully installed bundler-2.2.19
Parsing documentation for bundler-2.2.19
Installing ri documentation for bundler-2.2.19
Done installing documentation for bundler after 63 seconds
1 gem installed
diaspora@diaspora:~/diaspora/config$ script/configure_bundler
-bash: script/configure_bundler: No such file or directory
diaspora@diaspora:~/diaspora/config$ cd ..

JSON document format

In order to provide for easier parsing, verification and display of Rein documents, the document format is being changed from a colon-delimited form to the more standard JSON format. The JSON standard is well-known and widely-implemented with native support in Python, Javascript and many other languages.

Example signed document in the new format:

{
 "title": "Rein Job",
@weex
weex / gist:d9c0cab3d7e1f879dbb07169922fa7b0
Created March 18, 2017 03:50
bitcoin-cli listunspent - json example
vagrant@vagrant:~/causeway$ bitcoin-cli listunspent
[
{
"txid": "363739b300147839c24dee857bc7224dbe2e5e506e5dca7486edc4f0c385d8c9",
"vout": 0,
"address": "mjrhuk5SnsySp9VGvhCwvfgK3pwYU6Jm4y",
"account": "",
"scriptPubKey": "76a9142f9cd08d70c44bab7eb889b8402131479ebfd44088ac",
"amount": 0.02500000,
"confirmations": 1,
@weex
weex / gist:b64fa1a685efc45e1df2e6be21ba63c8
Created January 22, 2017 21:46
Test of tor-broadcast with bitcoind v0.13.2
This file has been truncated, but you can view the full file.
(envjm) vagrant@vagrant:~/data/joinmarket$ make test
PYTHONPATH=.:/home/vagrant/envjm
py.test --cov-report html --btcroot=/usr/bin/ --btcconf=/home/vagrant/.bitcoin/bitcoin.conf --btcpwd=GYRVQOHIJXDNTFWBZASPMELCKU --nirc=2 --ignore test/test_tumbler.py
============================================================ test session starts ============================================================
platform linux2 -- Python 2.7.12, pytest-3.0.5, py-1.4.32, pluggy-0.4.0
rootdir: /home/vagrant/data/joinmarket, inifile:
plugins: cov-2.4.0
collected 94 items
test/test_addresses.py ..