Given that your key has expired.
$ gpg --list-keys
$ gpg --edit-key KEYID
Use the expire command to set a new expire date:
Ring handler a function which accepts a request (map) and returns a response (map).
Ring middleware
function (handler, &args -> function(request -> response) because it is a closure handler and &args are in scope within the returned handler function.
a function which accepts a "next handler" (the next handler in the chain) + any extra arguments and returns a handler (function), which will accept a request and return a response.
When an interger is sent for monitor>type
an internal error occurs. If a string is sent as in the main.yml
example it is okay.
When an internal error occurs a 200 response not 500 is sent.
When an error occurs (e.g. monitor already exists) a 200 response is sent.
Software:
pg_dump -Ox -T sessions -U mos mos_staging > ~/mos_staging.sql
$ gem build wisper.gemspec
Enter PEM pass phrase:
INFO: Your certificate has expired, trying to re-sign it...
ERROR: While executing gem ... (Gem::Security::Exception)
certificate /CN=kris.leech\/DC=gmail\/DC=com not valid after 2020-10-15 18:13:45 UTC
$ gem cert --re-sign -C gem-public_cert.pem -K ~/.ssh/gem-private_key.pem
let(:model_class) do | |
Class.new(ApplicationRecord) do | |
self.table_name = "model_class_#{SecureRandom.uuid.delete('-')}" | |
def self.up | |
connection.execute("CREATE TABLE #{table_name}(id INTEGER PRIMARY KEY AUTOINCREMENT)") | |
end | |
def self.down | |
ApplicationRecord.connection.execute("DROP TABLE #{table_name}") |
set surround | |
set hlsearch | |
set scrolloff=3 | |
set ignorecase smartcase | |
set showmode | |
set history=1000 | |
set relativenumber | |
set number |
if(document.queryCommandSupported('copy')) {
if(text=='') { text = ' '; } // empty inputs do not get selected
// copy text to off-screen input
$('#clipboard').val(text);
// 1.) does copy empty inputs, but adds newline before content
var range = document.createRange();
range.selectNode(document.querySelector('#clipboard'));
This works for all mics including webcam mics.
bin/mic-on
#!/usr/bin/env bash
# toggle webcam mic
amixer -c 1 sset Mic cap
# toggle default mic
Error: No such file or directory - Cannot find Elasticsearch launch script from [elasticsearch] -- did you pass a correct path?
When using ElasticSearch gems.
Ubuntu elasticsearch package changed, so no longer does which elasticsearch
return anything, which means the gem can not find the binary.
Solution: suppy command
option to ES to tell it where the binary is, either use the existing binary, mine was at /usr/shared/elasticsearch/bin/elasticsearch
, or symlink the same binary to somewhere in $PATH
or install a new version to $PATH
.
To install a new version download and untar to somewhere in $PATH
, e.g. ~/bin
You can find downloads such as this one: https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.7.3.tar.gz