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: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
@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: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: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: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:c29470261e8041fa7ce6e948ea01b653
Created December 10, 2021 03:22
acropolis install time on YunoHost
2021-12-09T15:33:42-0800 Installing acropolis...
2021-12-09T15:33:42-0800 [....................] > Validating installation parameters... [00h00m,00s]
2021-12-09T15:33:43-0800 [+...................] > Storing installation settings... [00h00m,01s]
2021-12-09T15:33:43-0800 [#+..................] > Finding an available port... [00h00m,00s]
2021-12-09T15:33:43-0800 [##+.................] > Installing dependencies... [00h00m,00s]
2021-12-09T15:33:53-0800 rbenv already seems installed in `/opt/rbenv/bin/rbenv'.
2021-12-09T15:33:53-0800 Trying to update with git...
2021-12-09T15:33:54-0800 `rbenv install' command already available in `/opt/rbenv/plugins/ruby-build/bin/rbenv-install'.
2021-12-09T15:33:55-0800 Trying to update rbenv with git...
2021-12-09T15:33:56-0800 `rbenv alias' command already available in `/opt/rbenv/plugins/rbenv-aliase/bin/rbenv-alias'.
@weex
weex / gist:b4584b7d1d9be769e980c2d78f4cab7b
Created December 10, 2021 09:16
ecko install time on YunoHost
2021-12-10T00:48:44-0800 Installing ecko...
2021-12-10T00:48:44-0800 [+...................] > Validating installation parameters...
2021-12-10T00:48:45-0800 [#+..................] > Storing installation settings...
2021-12-10T00:48:45-0800 [##+.................] > Finding an available port...
2021-12-10T00:48:45-0800 [###+................] > Installing dependencies...
2021-12-10T00:49:01-0800 '/etc/apt/trusted.gpg.d/ecko.asc' wasn't deleted because it doesn't exist.
2021-12-10T00:49:03-0800 rbenv already seems installed in `/opt/rbenv/bin/rbenv'.
2021-12-10T00:49:03-0800 Trying to update with git...
2021-12-10T00:49:04-0800 `rbenv install' command already available in `/opt/rbenv/plugins/ruby-build/bin/rbenv-install'.
2021-12-10T00:49:04-0800 Trying to update rbenv with git...
@weex
weex / gist:a38b96e5f38bd8cab62cacecb75922cc
Created December 14, 2021 23:22
ecko error on docker install
$ docker-compose logs web
Attaching to mastodon_web_1
web_1 | bundler: failed to load command: rails (/opt/mastodon/vendor/bundle/ruby/2.7.0/bin/rails)
web_1 | /opt/ruby/lib/ruby/gems/2.7.0/gems/bundler-2.2.33/lib/bundler.rb:663:in `rescue in eval_gemspec': (Bundler::GemspecError)
web_1 | [!] There was an error while loading `ecko-plugins.gemspec`: No such file or directory - git. Bundler cannot continue.
web_1 |
web_1 | # from /opt/mastodon/gems/ecko-plugins/ecko-plugins.gemspec:33
web_1 | # -------------------------------------------
web_1 | # spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
web_1 | > `git ls-files -z`.split("\\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
@weex
weex / output.md
Created December 27, 2021 00:15
after installing android studio
$ npx react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
error Failed to run jetifier.
Error: Cannot find module 'signal-exit'
Require stack:
- /Users/dsterry/code/viro-starter/node_modules/@react-native-community/cli-platform-android/node_modules/execa/index.js
- /Users/dsterry/code/viro-starter/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/index.js
- /Users/dsterry/code/viro-starter/node_modules/@react-native-community/cli-platform-android/build/commands/index.js
- /Users/dsterry/code/viro-starter/node_modules/@react-native-community/cli-platform-android/build/index.js
@weex
weex / gist:35264ae779914f5fac3d7a6a7ecea0a0
Created December 27, 2021 00:28
AwesomeProject... npx react-native run-android
dsterry@ walter ~/code () $ cd AwesomeProject/
dsterry@ walter ~/code/AwesomeProject () $ npx react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 870 file(s) to forward-jetify. Using 12 workers...
info Starting JS server...
* daemon not running; starting now at tcp:5037
* daemon started successfully
info Launching emulator...
error Failed to launch emulator. Reason: No emulators found as an output of `emulator -list-avds`.
warn Please launch an emulator manually or connect a device. Otherwise app may fail to launch.