This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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
command sendThisMessage | |
-- For the record, this is not a real username/password for Amazon SES | |
put "smtps://email-smtp.us-east-1.amazonaws.com" into tURL | |
put "XBCGUEHJDSJADJJDJS" into tSettings["username"] | |
put "AIjQCX5qs9iiAk+xqcRsj7D4B/mwRuAEMfrE8oWLmKAJ" into tSettings["password"] | |
----put TRUE into tSettings["use_ssl"] --uncomment if needed | |
--Note that from_name is optional | |
put "Arthur Dent" into tHeaderData["from_name"] | |
put "[email protected]" into tHeaderData["from"] |
This file contains 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
root@crazy:~/zzz/couchdb# make release | |
==> config (compile) | |
Compiled src/config_listener.erl | |
Compiled src/config_notifier.erl | |
Compiled src/config_util.erl | |
Compiled src/config_listener_mon.erl | |
Compiled src/config_app.erl | |
Compiled src/config_writer.erl | |
Compiled src/config_sup.erl | |
Compiled src/config.erl |
This file has been truncated, but you can view the full file.
This file contains 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
{"docs":[{"language":"javascript","_id":"_design\/phonelist","views":{"attempts":{"map":"function (doc) {\n if(doc.fnord.attempts < 2)\n emit(doc.sein.phone, doc.fnord.attempts);\n}"}}},{"views":{"phonesearch":{"reduce":"_count","options":{"def":{"fields":["sein.phone"]}},"map":{"fields":{"sein.phone":"asc"}}},"status":{"reduce":"_count","options":{"def":{"fields":["fnord.deadoralive"]}},"map":{"fields":{"fnord.deadoralive":"asc"}}},"attempts":{"reduce":"_count","options":{"def":{"fields":["fnord.attempts"]}},"map":{"fields":{"fnord.attempts":"asc"}}},"namesearch":{"reduce":"_count","options":{"def":{"fields":["sein.name"]}},"map":{"fields":{"sein.name":"asc"}}}},"_id":"_design\/searchkeys","language":"query"},{"fnord":{"notes":null,"attempts":5,"timetocall":1499733547,"finalstat":"RNA","lastintv":"Janiya_Franklin","timestamp":1499726347,"finalstatcode":507,"dp3":4,"deadoralive":"dead","quota":null,"queue":"q7","laststat":"RNA","laststatcode":507},"_id":"x1001","sein":{"phone":3145493006,"recid":"x1001","na |
This file contains 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
*-*-*-*-*-*-*-*-*-* Updated January 04, 2022 *-*-*-*-*-*-*-*-*-* | |
### Update and install some utilities | |
sudo apt update && sudo apt-get upgrade | |
sudo apt install -y curl apt-transport-https gnupg nano | |
curl https://couchdb.apache.org/repo/keys.asc | gpg --dearmor | sudo tee /usr/share/keyrings/couchdb-archive-keyring.gpg >/dev/null 2>&1 | |
source /etc/os-release |
This file contains 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
sudo apt-get update | |
sudo apt-get install nano curl apt-transport-https runit -y | |
sudo nano /etc/apt/sources.list | |
### add the line: | |
---------------------------------------- | |
deb https://apache.bintray.com/couchdb-deb xenial main | |
---------------------------------------- | |
curl -L https://couchdb.apache.org/repo/bintray-pubkey.asc | sudo apt-key add - | |
sudo apt-get update |
This file contains 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
{ | |
"docs": [ | |
{ | |
"_id": "x01", | |
"somevalue": 123, | |
"filterme": "a" | |
}, | |
{ | |
"_id": "x02", | |
"somevalue": 234, |
This file contains 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
//FILTER DOCUMENT | |
{ | |
"_id":"_design/myfilterdoc", | |
"filters": { | |
"myfilter": "function(doc, req){if (doc.filterme != 'a'){return false;} return true;}" | |
} | |
} | |
//FILTERED REPLICATION |
This file contains 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
{ | |
"_id": "_design/datascan", | |
"views": { | |
"dead": { | |
"map": "function (doc) {\n if (doc.year_death != null)\n {emit(doc.year_death, doc.stagename);}\n}" | |
}, | |
"nationality": { | |
"reduce": "_count", | |
"map": "function (doc) {\n emit(doc.nationality, 1);\n}" | |
}, |