| HEADER | EMPHASIS | HORIZONTAL_LINE | LIST | TABLE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Original source: https://gist.github.com/hopsoft/56ba6f55fe48ad7f8b90 | |
| # Merged with: https://gist.github.com/kofronpi/37130f5ed670465b1fe2d170f754f8c6 | |
| namespace :db do | |
| desc 'Dumps the database to backups' | |
| task dump: :environment do | |
| dump_fmt = ensure_format(ENV['format']) | |
| dump_sfx = suffix_for_format(dump_fmt) | |
| backup_dir = backup_directory(Rails.env, create: true) | |
| full_path = nil | |
| cmd = nil |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // https://github.com/michael-ciniawsky/postcss-load-config | |
| const purgecss = require('@fullhuman/postcss-purgecss') | |
| const conf = require('./quasar.conf')() | |
| const ie = conf.supportIE ? ['./node_modules/quasar/src/ie-compat/*.js'] : [] | |
| const plugins = conf.framework.plugins.map(plug => { | |
| return `./node_modules/quasar/src/plugins/${plug}.js` | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -eu | |
| cache_file="/tmp/pager.cache" | |
| [[ ! -p "$cache_file" ]] && touch "$cache_file" && trap "rm $cache_file" 0 | |
| cat > "$cache_file" | |
| vim -R -c "terminal cat $cache_file" |
Installed MongoDB using the following guide: Install MongoDB
However, the installation in the guide is for MongoDB 5.0 on WSL with Ubuntu 20.04 (focal) distro.
The following is an adaptation of the guide for installing MongoDB 6.0 on WSL with Ubuntu 22.04 jammy distro.
- Open your WSL terminal (ie. Ubuntu) and go to your home directory::
cd ~ - Update your Ubuntu packages:
sudo apt update
OlderNewer
