MongoDB Exercise in mongo shell
Connect to a running mongo instance, use a database named mongo_practice
.
use mongo_practice
/** | |
* NOTE: this specifically works if the house is for sale since it renders differently. | |
* This will download the highest resolution available per image. | |
*/ | |
/** | |
* STEP 1: Make sure to *SCROLL* through all images so they appear on DOM. | |
* No need to click any images. |
Probably one of the easiest things you'll ever do with gpg
Install Keybase: https://keybase.io/download and Ensure the keybase cli is in your PATH
First get the public key
keybase pgp export | gpg --import
Next get the private key
export BLACK="\033[0;38;5;0m" | |
export MAROON="\033[0;38;5;1m" | |
export GREEN="\033[0;38;5;2m" | |
export OLIVE="\033[0;38;5;3m" | |
export NAVY="\033[0;38;5;4m" | |
export PURPLE="\033[0;38;5;5m" | |
export TEAL="\033[0;38;5;6m" | |
export SILVER="\033[0;38;5;7m" | |
export GREY="\033[0;38;5;8m" | |
export RED="\033[0;38;5;9m" |
(function () { | |
var getCatalog = new GlideRecord("sc_cat_item"); | |
getCatalog.addEncodedQuery("active=true^hide_sp=false^sys_class_name=sc_cat_item"); //Update this | |
getCatalog.query(); | |
while (getCatalog.next()) { | |
var addVariableSet = new GlideRecord("io_set_item"); | |
addVariableSet.initialize(); | |
addVariableSet.sc_cat_item = getCatalog.getValue("sys_id"); | |
addVariableSet.variable_set = "86f3c8b51b0d9c508ed631d7dc4bcbcd"; //variable set sys_id |