- Prepare the openSearch XML file, and upload somewhere (file: URLs won't do; see OpenSearchEngine.sys.mjs).
- Open about:config and set
devtools.chrome.enabled = true - Tools > Browser tools > Browser console (Control+Shift+J)
- Run
Services.search.addOpenSearchEngine(, null);. It should returnPromise { : "pending" }.
This work is released under a Creative Commons Attribution-NoDerivatives 4.0 International License.
"OpenPGP" refers to the OpenPGP protocol, in much the same way that HTML refers to the protocol that specifies how to write a web page. "GnuPG", "SequoiaPGP", "OpenPGP.js", and others are implementations of the OpenPGP protocol in the same way that Mozilla Firefox, Google Chromium, and Microsoft Edge refer to software packages that process HTML data.
| # List of cheatsheet for linux find. | |
| # Taken from here http://alvinalexander.com/unix/edu/examples/find.shtml | |
| # basic 'find file' commands | |
| # -------------------------- | |
| find / -name foo.txt -type f -print # full command | |
| find / -name foo.txt -type f # -print isn't necessary | |
| find / -name foo.txt # don't have to specify "type==file" | |
| find . -name foo.txt # search under the current dir | |
| find . -name "foo.*" # wildcard |
How to use matrix.org and vector.im as an IRC client
Join the room #freenode_<#channel>:matrix.org, replacing <#channel> with the name of the IRC channel. For example, in order to join the #prometheus IRC channel, join the room #freenode_#prometheus:matrix.org on matrix.org.
In vector.im, rooms can be joined with the directory symbol on the bottom left.
Below are many examples of function hoisting behavior in JavaScript. Ones marked as works successfuly print 'hi!' without errors.
To play around with these examples (recommended) clone them with git and execute them with e.g. node a.js
(I may be using incorrect terms below, please forgive me)
| FILE SPACING: | |
| # double space a file | |
| sed G | |
| # double space a file which already has blank lines in it. Output file | |
| # should contain no more than one blank line between lines of text. | |
| sed '/^$/d;G' |
| require "rubygems" | |
| require "twitter" | |
| require "json" | |
| # things you must configure | |
| TWITTER_USER = "your_username" | |
| MAX_AGE_IN_DAYS = 1 # anything older than this is deleted | |
| # get these from dev.twitter.com | |
| CONSUMER_KEY = "your_consumer_key" |
| HANDY ONE-LINE SCRIPTS FOR AWK 30 April 2008 | |
| Compiled by Eric Pement - eric [at] pement.org version 0.27 | |
| Latest version of this file (in English) is usually at: | |
| http://www.pement.org/awk/awk1line.txt | |
| This file will also be available in other languages: | |
| Chinese - http://ximix.org/translation/awk1line_zh-CN.txt | |
| USAGE: |
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| # | |
| # SSHplus | |
| # A remote connect utlity, sshmenu compatible clone, and application starter. | |
| # | |
| # (C) 2011 Anil Gulecha | |
| # Based on sshlist, incorporating changes by Benjamin Heil's simplestarter | |
| # | |
| # This program is free software: you can redistribute it and/or modify |