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
@weex
weex / gist:501beb9871339b149f33ca9a48a7efad
Created December 8, 2021 03:56
bundle install output from source-based install of Ecko (Mastodon-fork)
mastodon@demo:~/live$ bundle install -j$(getconf _NPROCESSORS_ONLN)
Fetching gem metadata from https://rubygems.org/............
Fetching rake 13.0.6
Installing rake 13.0.6
Fetching concurrent-ruby 1.1.9
Installing concurrent-ruby 1.1.9
Fetching i18n 1.8.10
Installing i18n 1.8.10
Fetching minitest 5.14.4
Installing minitest 5.14.4
@weex
weex / gist:dada43020bafbc8ef27872fbb26f50be
Created November 16, 2021 22:25
minor proposed update
diff --git a/run.py b/run.py
index 140f944..abb13ac 100644
--- a/run.py
+++ b/run.py
@@ -412,6 +412,7 @@ async def jobs_dispatcher():
job.state = "running"
job.started_time = datetime.now()
+ job.end_time = None
job.save()
@weex
weex / gist:9aa7556fe7563f8eb548ab66cbfdbb30
Created November 15, 2021 20:03
acropolis install error, needing sudo
root@yunohost:~# yunohost app install https://github.com/jobotz/acropolis_ynh/tree/script-improvements -f
Choose the domain where this app should be installed [yunohost.local | git.yunohost.local | testacropolis.yunohost.local | testecko.yunohost.local] (default: yunohost.local): testacropolis.yunohost.local
Choose the path where this app should be installed (default: /example): /
Choose an administrator user for this app [dsterry] (default: dsterry): dsterry
Should this app be exposed to anonymous visitors? [yes | no] (default: yes): yes
Choose the application language [fr | en] (default: fr): en
Choose an administration password for this app:
Info: Installing acropolis...
Info: [....................] > Validating installation parameters... [00h00m,00s]
Info: [+...................] > Storing installation settings... [00h00m,00s]
@weex
weex / gist:0f0b64ea576a8b7f0f55613a27ca4259
Created November 10, 2021 19:35
acropolis ynh install error
root@yunohost:~# yunohost app install https://github.com/magicstone-dev/acropolis_ynh.git
DANGER! This app is not part of YunoHost's app catalog. Installing third-party apps may compromise the integrity and security of your system. You should probably NOT install it unless you know what you are doing. NO SUPPORT will be provided if this app doesn't work or breaks your system… If you are willing to take that risk anyway, type 'Yes, I understand': Yes, I understand
Choose the domain where this app should be installed [yunohost.local | git.yunohost.local | testacropolis.yunohost.local | testecko.yunohost.local] (default: yunohost.local): testacropolis.yunohost.local
Choose the path where this app should be installed (default: /example): /
Choose an administrator user for this app [dsterry] (default: dsterry):
Should this app be exposed to anonymous visitors? [yes | no] (default: yes):
Choose the application language [fr | en] (default: fr): en
Choose an administration password for this app:
Error: This passwo
@weex
weex / gist:2f185a0bc0ef4ad8190fd1e5bc7aa409
Created September 11, 2021 21:56
django shell error
$ django-admin shell
Python 3.9.2 (default, Feb 28 2021, 17:03:44)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.21.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: from thefederation.tasks import poll_nodes
---------------------------------------------------------------------------
ImproperlyConfigured Traceback (most recent call last)
<ipython-input-1-178073b1a85e> in <module>
----> 1 from thefederation.tasks import poll_nodes
$ 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:
@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
@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.
$ ./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: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;