In this guide we will only focus on using the prebuilt images from Docker Hub.
Prerequisites: You have Git, Docker, Docker compose and Nginx pre-installed.
Clone Mastodon's repository.
| const { app, safeStorage } = require('electron'); | |
| const { join } = require('node:path'); | |
| const { readFileSync, writeFileSync } = require('node:fs'); | |
| const folder = join(app.getPath('appData'), 'Signal'); | |
| app.setPath('userData', folder); | |
| app.setName('Signal'); | |
| app.on('ready', () => { | |
| const configPath = join(folder, 'config.json'); |
In this guide we will only focus on using the prebuilt images from Docker Hub.
Prerequisites: You have Git, Docker, Docker compose and Nginx pre-installed.
Clone Mastodon's repository.
| // To mock globally in all your tests, add to setupTestFrameworkScriptFile in config: | |
| // https://facebook.github.io/jest/docs/en/configuration.html#setuptestframeworkscriptfile-string | |
| jest.mock('moment', () => { | |
| const moment = require.requireActual('moment-timezone'); | |
| moment.tz.setDefault('America/Los_Angeles'); // Whatever timezone you want | |
| return moment; | |
| }); |
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS with https://brew.sh/
| # GIT heart FZF | |
| # ------------- | |
| is_in_git_repo() { | |
| git rev-parse HEAD > /dev/null 2>&1 | |
| } | |
| fzf-down() { | |
| fzf --height 50% --min-height 20 --border --bind ctrl-/:toggle-preview "$@" | |
| } |
In the following example, sddm will be used as a display manager. The process is however similar for other display managers in nixpkgs and a summary that applies to all nixpkgs display managers is given at the end.
Systemd unit "display-manager.service" starts services.x11.displayManager.job.execCmd (the display manager)
Code reference: <nixpkgs>/nixos/modules/services/x11/xserver.nix
services.x11.displayManager.job.execCmd is set to the path of the sddm binary from the sddm package in the nix store. So SDDM will start and read its configuration from /etc/sddm.conf.