Skip to content

Instantly share code, notes, and snippets.

View parkerfoshay's full-sized avatar

Parker Faucher parkerfoshay

View GitHub Profile
@parkerfoshay
parkerfoshay / REPL.sh
Created February 24, 2023 01:26
reconfiguring replica set
rs.conf()
config = rs.config()
config.members[2].priority = 10
rs.reconfig(config)
rs.status()
@parkerfoshay
parkerfoshay / lib.sh
Last active March 14, 2023 22:01
instruqt-setup-L4
set -euxo pipefail
echo "Running track setup script"
until [ -f /opt/instruqt/bootstrap/host-bootstrap-completed ]; do
echo "Waiting for instruqt bootstrap to complete"
sleep 1
done
# check if temp dir exists
if [ ! -d /tmp ]; then
# mongod_m103_reconfig_replica_1.conf
# for documentation of all options, see:
# http://docs.mongodb.org/manual/reference/configuration-options/
# Where and how to store data.
storage:
dbPath: /var/lib/mongodb/1/db
journal:
enabled: true
# mongod_dba_reconfig_replica_2.conf
# for documentation of all options, see:
# http://docs.mongodb.org/manual/reference/configuration-options/
# Where and how to store data.
storage:
dbPath: /var/lib/mongodb/2/db
journal:
enabled: true
# mongod_dba_reconfig_replica_3.conf
# for documentation of all options, see:
# http://docs.mongodb.org/manual/reference/configuration-options/
# Where and how to store data.
storage:
dbPath: /var/lib/mongodb/3/db
journal:
enabled: true
# mongod_dba_deploy_replica_set_auth_on_1.conf
# for documentation of all options, see:
# http://docs.mongodb.org/manual/reference/configuration-options/
# Where and how to store data.
storage:
dbPath: /var/lib/mongodb/1/db
journal:
enabled: true
# mongod_dba_deploy_replica_set_auth_on_2.conf
# for documentation of all options, see:
# http://docs.mongodb.org/manual/reference/configuration-options/
# Where and how to store data.
storage:
dbPath: /var/lib/mongodb/2/db
journal:
enabled: true
# mongod_dba_deploy_replica_set_auth_on_2.conf
# for documentation of all options, see:
# http://docs.mongodb.org/manual/reference/configuration-options/
# Where and how to store data.
storage:
dbPath: /var/lib/mongodb/3/db
journal:
enabled: true
# mongod_dba_reconfig_replica_4.conf
# for documentation of all options, see:
# http://docs.mongodb.org/manual/reference/configuration-options/
# Where and how to store data.
storage:
dbPath: /var/lib/mongodb/4/db
journal:
enabled: true
@parkerfoshay
parkerfoshay / library-dump
Last active April 19, 2023 23:49
library-binary