Skip to content

Instantly share code, notes, and snippets.

Mr. John F u s t
.br
Vice President, Research and Development
.br
Gutenberg Galaxy Software
.br
Waltham, Massachusetts 02159
.nf
Mr. John Fust
$ env CLASSPATH="/usr/share/openjfx/lib/javafx.base.jar:/usr/share/openjfx/lib/javafx.controls.jar:/usr/share/openjfx/lib/javafx.fxml.jar:/usr/share/openjfx/lib/javafx.graphics.jar:/usr/share/openjfx/lib/javafx.media.jar:/usr/share/openjfx/lib/javafx.swing.jar:/usr/share/openjfx/lib/javafx.web.jar" ./STM32CubeProgrammer
/home/anddam/Applications/STM32CubeProgrammer/bin/STM32CubeProgrammerLauncher
/home/anddam/Applications/STM32CubeProgrammer/bin
JavaFX NOT installed => warn user
$ git branch -d feature-rewrite-rendering
warning: not deleting branch 'feature-rewrite-rendering' that is not yet merged to
'refs/remotes/origin/feature-rewrite-rendering', even though it is merged to HEAD.
error: The branch 'feature-rewrite-rendering' is not fully merged.
If you are sure you want to delete it, run 'git branch -D feature-rewrite-rendering'.
PPID PID PGID SID TTY TPGID STAT UID TIME COMMAND
0 1 1 1 ? -1 Ss 0 1:53 /lib/systemd/systemd --system --deserialize 17
1 2 0 0 ? -1 S 0 0:00 [kthreadd/13785]
2 3 0 0 ? -1 S 0 0:00 \_ [khelper/13785]
1 69 69 69 ? -1 Ss 0 14:15 /lib/systemd/systemd-journald
1 110 110 110 ? -1 Ss 0 0:13 /lib/systemd/systemd-logind
1 112 112 112 ? -1 Ss 0 0:13 /usr/sbin/cron -f
1 114 114 114 ? -1 Ssl 0 5:00 /usr/sbin/rsyslogd -n
1 115 115 115 ? -1 Ss 105 0:06 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
1 213 213 213 tty2 213 Ss+ 0 0:00 /sbin/agetty --noclear tty2 linux
private makeName(length) {
const chars = this.chars;
let result: string;
range(1, length).pipe(
map(() => chars.charAt(Math.floor(Math.random() * chars.length))),
scan((acc, curr) => acc + curr, '')
).subscribe(name => result = name);
return result;
}
@anddam
anddam / config-npm-npmrc
Created August 2, 2019 09:13
npm config
prefix = ${HOME}/.local/
cache = ${HOME}/.cache/npm
<button class="btn-brand btn-lg btn btn-default ng-pristine ng-valid" ng-transclude="" cb-button="" cb-validate-form="" cb-ui-sref="direct.create.verify" cb-param-name="createVerifyRequest" ng-model="verifyRequest" name="" type="button">
<span class="ng-binding ng-scope">
Add element
</span>
</button>
@anddam
anddam / server.go
Last active July 2, 2019 13:21
Go language basic authentication server
package main
import (
"fmt"
"net/http"
"crypto/subtle"
)
func handler(w http.ResponseWriter, r *http.Request) {
{
"log": {
"version": "1.2",
"creator": {
"name": "WebInspector",
"version": "537.36"
},
"pages": [
{
"startedDateTime": "2019-07-02T09:55:41.966Z",
Uncaught DOMException: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.
at e.initComms (https://c.staticblitz.com/assets/relay-7247ded37886bf9c4882b.js:1:4580)
at Object.3414 (https://c.staticblitz.com/assets/relay-7247ded37886bf9c4882b.js:1:3338)
at n (https://c.staticblitz.com/assets/relay-7247ded37886bf9c4882b.js:1:110)
at Object.3413 (https://c.staticblitz.com/assets/relay-7247ded37886bf9c4882b.js:1:3256)
at n (https://c.staticblitz.com/assets/relay-7247ded37886bf9c4882b.js:1:110)
at https://c.staticblitz.com/assets/relay-7247ded37886bf9c4882b.js:1:484
at https://c.staticblitz.com/assets/relay-7247ded37886bf9c4882b.js:1:496
B21259774.239448357;dc_trk_aid=436336705;dc_trk_cid=111630742;ord=156156787;dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=:1
Failed to load resource: net::ERR_BLOCKED_BY_CLIENT