bazel query 'rdeps(..., //vistar/geo/qtdb:go_default_library)' --output package
/** | |
* Configuration #1: Basic Configuration Class | |
* | |
* A basic example utilising a sealed instance of a configuration | |
* class, with user-provided options merged in upon instantation | |
* of the implementation. | |
*/ | |
class Config { | |
constructor() { |
This is a working example on how to store CryptoKey
s locally in your browser. We are able to save the objects, without serializing them. This means we can keep them not exportable (which might be more secure?? not sure what attack vectors this prevents).
To try out this example, first make sure you are in a browser that has support for async...await
and indexedDB (latest chrome canary with chrome://flags
"Enable Experimental Javascript" works). Load some page and copy and paste this code into the console. Then call encryptDataSaveKey()
. This will create a private/public key pair and encrypted some random data with the private key. Then save both of them. Now reload the page, copy in the code, and run loadKeyDecryptData()
. It will load the keys and encrypted data and decrypt it. You should see the same data logged both times.
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.html$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !-l | |
RewriteRule . /index.html [L] |
#! /usr/bin/env python3 | |
"""Fixing bluetooth stereo headphone/headset problem in debian distros. | |
Workaround for bug: https://bugs.launchpad.net/ubuntu/+source/indicator-sound/+bug/1577197 | |
Run it with python3.5 or higher after pairing/connecting the bluetooth stereo headphone. | |
This will be only fixes the bluez5 problem mentioned above . | |
Licence: Freeware |
# Custom commands | |
bind generic <Ctrl-A> !git commit --amend | |
# Custom commands in tig status, works after pressing key on selected file from list | |
bind generic i !git add -p %(file) | |
# Custom commands in tig, works after pressing key on selected commit from list | |
bind generic f !git commit --fixup=%(commit) | |
bind generic <Ctrl-H> !@sh -c "echo -n %(commit) | xclip -selection primary" # copy commit hash into primary clipboard |
if [ ! -z "${IDE}" -a "${IDE}" == "AndroidStudio" ]; then | |
cd $OLDPWD; | |
fi |
var express = require('express') | |
var app = express() | |
app.listen(1337) | |
app.all('/stream/:chunks', function (req, res, next) { | |
res.writeHead(200, { | |
'Content-Type': 'text/plain', |
Trello provides a simple [RESTful][1] web API where each type of resource (e.g. a card, a board, or a member) has a URI that you can interact with.
For example, if you'd like to use the API to get information about the [Trello Development board][2], you'd use the following URI:
https://api.trello.com/1/boards/4d5ea62fd76aa1136000000c