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
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;
@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',
@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 / 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

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 / gist:c2ae7a4d6aaca80ffc4866ab9a6e4b4e
Created August 24, 2021 23:25
Diaspora* nginx reverse proxy config
# Used this just today to setup diaspora as a reverse proxy.
# In diaspora.toml set listen = "0.0.0.0:3000", require_ssl = true and this should work.
# Probably want to remove the managed by certbot lines and sections to let certbot add them back.
server {
root /home/user/diaspora/data/;
server_name example.org;
$ ./bootstrap.sh --prefix=$HOME/.local && make install
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
autoreconf: configure.ac: not using Autoheader
autoreconf: running: automake --add-missing --copy --force-missing
Makefile.am:14: warning: wildcard *.w: non-POSIX variable name
@weex
weex / gist:56832f7c138b94d7e41a8a7132376fc1
Last active August 29, 2021 16:55
wispwot bootstrap error
$ brew install automake
Warning: automake 1.16.4 is already installed and up-to-date.
To reinstall 1.16.4, run:
brew reinstall automake
$ brew install make
Warning: make 4.3 is already installed and up-to-date.
To reinstall 4.3, run:
brew reinstall make
$ brew install guile
Warning: guile 3.0.7 is already installed and up-to-date.
@weex
weex / gist:d40babccbe9fc5a2f84626ace6e34605
Created August 30, 2021 04:52
scores-generated-by-weex-wot-server-nxwot-commit-108ff669a71d7acd7f2b7ac32012cd8225e8e3b4.csv
0;0;0.0
0;2957;231997.1400000001
0;12997;234607.44000000006
0;5776;234723.80000000005
0;8191;103756.28000000003
0;10695;232401.52000000005
0;3828;0.0
0;8147;0.0
0;9314;0.0
0;8828;0.0
$ pip-sync dev-requirements.txt
Found existing installation: httplib2 0.18.1
Uninstalling httplib2-0.18.1:
ERROR: Exception:
Traceback (most recent call last):
File "/usr/lib/python3.9/shutil.py", line 806, in move
os.rename(src, real_dst)
PermissionError: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/httplib2' -> '/tmp/pip-uninstall-7q26qd9s'
During handling of the above exception, another exception occurred: