Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SQUASHED: AUTO-COMMIT-doc-journal-2018-11-15.md,
- Loading branch information
1 parent
256aca4
commit 558b6f1
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
## 2018-11-15 #LivelyDown | ||
|
||
|
||
Sadly, our lively-kernel.org server is down and we cannot work on our #Lively4 instances at the moment, because it served as reverse proxy.... | ||
|
||
And that means we cannot authenticate ourselves to #GitHub at the moment.... | ||
|
||
But luckily we are still authenticated in one browser on can transfer the tokens. But first we have to get them. | ||
|
||
```javascript | ||
|
||
async function createGithubTokenSnippet(keys) { | ||
var result = "" | ||
var prefix = "LivelySync_" | ||
for(var key of keys) { | ||
var itemName = prefix + key | ||
var value = await focalStorage.getItem(itemName) | ||
result += `focalStorage.setItem("${itemName}","${value}")\n` | ||
} | ||
return result | ||
} | ||
createGithubTokenSnippet(["githubToken", "githubUsername", "githubEmail"]) | ||
|
||
|
||
``` | ||
|
||
And we cet something we can execute.... | ||
```javascript | ||
focalStorage.setItem("LivelySync_githubToken","ad947xxxxxx") | ||
focalStorage.setItem("LivelySync_githubUsername","JensLincke") | ||
focalStorage.setItem("LivelySync_githubEmail","jens.lincke@hpi.uni-potsdam.de") | ||
``` |