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
#!/bin/bash | |
# Default Variable Declarations | |
DEFAULT="Default.txt" | |
FILEEXT=".ovpn" | |
CRT=".crt" | |
KEY=".3des.key" | |
CA="ca.crt" | |
TA="ta.key" | |
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
# Config for GNU GRand Unified Bootloader (GRUB) (2) | |
# /boot/grub/grub.cfg | |
# or | |
# /boot/grub2/grub.cfg | |
# This grub.cfg file was created by Lance http://www.pendrivelinux.com | |
# Suggested Entries and the suggestor, if available, will also be noted. | |
# and then improved by Pysis. |
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
// http://stackoverflow.com/questions/42884746/reactivex-observable-to-trigger-when-i-want-to/42902431#42902431 | |
const obs = Observable.create(async (obs : any ) => { | |
const newInfo = async () => { | |
return this.http.get(`http://quotesondesign.com/wp-json/posts?filter[orderby]=rand&filter[posts_per_page]=1&cache=${new Date().getTime()}`).toPromise(); | |
} | |
obs.next(await newInfo()); | |
setInterval(async () => { | |
obs.next(await newInfo()); | |
console.log('update'); | |
}, 10000) |
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
db.financialdocuments.insertMany( | |
db.financialdocuments.find( | |
{}, | |
{'_id': false} | |
) | |
); |
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
mongoose.Schema.prototype._originalDefaultOptions = mongoose.Schema.prototype.defaultOptions; | |
mongoose.Schema.prototype.defaultOptions = function(options) { | |
if (options === undefined) { | |
options = {}; | |
} | |
options.timestamps = true; | |
return this._originalDefaultOptions.apply(this._originalDefaultOptions, arguments); | |
} |