Severity | Method | Appropriate for |
---|---|---|
MAX | mark() |
a) Temporary only, while developing; never on master or in production |
5 | fatal() |
a) Every uncaught exception |
4 | error() |
a) Every throw , swallowed or not |
3 | warn() |
a) Any debug or info that contains bad news |
2 | info() |
a) Side effects after success; b) task progress; see warn |
1 | trace() |
a) Upon entry into every routine, sig & values |
Follow the instructions on Github to Create an Access Token in Github
By default, git credentials are not cached so you need to tell Git if you want to avoid having to provide them each time Github requires you to authenticate. On Mac, Git comes with an “osxkeychain” mode, which caches credentials in the secure keychain that’s attached to your system account.
You can tell Git you want to store credentials in the osxkeychain by running the following:-
- Edit the file at
/Library/Backblaze.bzpkg/bzdata/bzexcluderules_editable.xml
. - Add these rules inside the
bzexclusions
tag:
<!-- Exclude node_modules. -->
<excludefname_rule plat="mac" osVers="*" ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/node_modules/" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" />
<excludefname_rule plat="mac" osVers="*" ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/.git/" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" />
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
// main.js for Electron | |
var app = require("app"), | |
BrowserWindow = require("browser-window"); | |
app.on("window-all-closed", function() { | |
app.quit(); | |
}) | |
var mainWindow = null; | |
app.on("ready", function() { |