function buildTower(height) {
return "Built a tower " + height + " blocks high";
}
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
This shows that Joplin doesn't make it easy enough to set up sync the first time, doesn't provide enough signposts, and is very slow. | |
``` | |
root@localhost:~# joplin help | |
(node:4786) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead. | |
(Use `node --trace-deprecation ...` to show where the warning was created) | |
Type `help [command]` for more information about a command; or type `help all` for the complete usage information. | |
The possible commands are: |
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
javascript: q = location.href; | |
q = q.replace(/[?&]utm_[^&]*/g, ""); | |
q = q.replace(/[?&]mc_[^&]*/g, ""); | |
q = q.replace(/[?&]src=[^&]*/g, ""); | |
q = q.replace(/[?&]ref=[^&]*/g, ""); | |
desc = ""; | |
if (document.getElementsByName("description").length > 0) { | |
desc = document.getElementsByName("description")[0].getAttribute("content") | |
"\n\n" | |
} else if (document.getElementsByName("Description").length > 0) { |
Define text editor
$ sudo update-alternatives --config editor
Edit /etc/sudoers
file
$ sudo visudo /etc/sudoers
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
// ==UserScript== | |
// @name Google Meet helper | |
// @namespace Violentmonkey Scripts | |
// @match https://meet.google.com/* | |
// @grant none | |
// @version 1.3.04 | |
// @author Vanshaj Girotra, Will Sheppard | |
// @description auto camera off, auto-mute, and auto join -- in that order. Also switches account (defaults to primary) | |
// @run-at document-idle | |
// ==/UserScript== |
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
use strict; | |
use warnings; | |
use Data::Dumper::Concise; | |
use Search::Elasticsearch; | |
my $ekk = Search::Elasticsearch->new( | |
client => '7_0::Direct', | |
nodes => [ 'https://opensearch.example.com/', ], | |
send_get_body_as => 'POST', |
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
// ==UserScript== | |
// @name AtlassianRedirect | |
// @namespace atlassian.com | |
// @version 0.09 | |
// @grant none | |
// @run-at document-end | |
// @match *://*.atlassian.com/* | |
// @match *://*.atlassian.net/* | |
// @author Ludo Tolhurst-Cleaver, Will Sheppard, Dan Banks | |
// ==/UserScript== |
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
// ==UserScript== | |
// @name Stay signed in to MS | |
// @description Automatically click "yes" on the Microsoft "stay signed in" page that keeps appearing. | |
// @downloadURL https://gist.github.com/emlyn/2f0c9702bd83fe7d232ed58626c90ac7/raw/ms_ssi.js | |
// @updateURL https://gist.github.com/emlyn/2f0c9702bd83fe7d232ed58626c90ac7/raw/ms_ssi.js | |
// @namespace https://gist.github.com/emlyn/ | |
// @version 0.2 | |
// @author Emlyn Corrin | |
// @match https://login.microsoftonline.com/login.srf | |
// @icon https://c.s-microsoft.com/favicon.ico?v2 |
Command line example:
$ sqlite3 -line -cmd 'select * from zip limit 1' database.sqdb < `which echo` ".exit"> output
NewerOlder