Be aware the following shortcuts are only working, if you have the plugins installed mentioned below.
:w Save file
:w filename Save file under new filename
[keys.normal] | |
C-f = [":new", ":insert-output lf-pick", ":theme default", "select_all", "split_selection_on_newline", "goto_file", "goto_last_modified_file", ":buffer-close!", ":theme tokyonight_storm"] |
[keys.normal] | |
C-f = [":new", ":insert-output lf-pick", "split_selection_on_newline", "goto_file", "goto_last_modification", "goto_last_modified_file", ":buffer-close!", ":theme nord", ":theme default"] | |
# replace the default after theme with the theme you use | |
# open 1 with the open command (l and <left> to open) or more with (<space> to select) then quit | |
# all opened files will be opened in helix |
In summary, DDNS stands for Dynamic DNS. DDNS updates a DNS name in real-time to point to a changing IP address. This is useful for devices without a static IP. For example, companies like Google use static IPs and IP ranges, which are more expensive than ephemeral IPs and IP ranges. DDNS provides a cost-effective alternative, linking a hostname to a dynamic IP address.
To use DDNS, you need an account with a DDNS provider. While some services are paid, they are still cheaper than static public IPs from ISPs. A script or service on your device updates the DDNS server with your current IP at regular intervals to maintain the link between your hostname and IP address. Luckily for us, DuckDNS is free for everybody and relays on donations to keep their services running.
// (1) function to get KV variables | |
const _ENV = () => [replace-with-namespace-name].get('_ENV'); | |
let ENV={}; | |
// (2) listen for a request | |
addEventListener('fetch', event => { | |
event.respondWith(handleRequest(event.request)) | |
}) | |
// (3) function to log to LOGDNA |
#!/bin/bash | |
IN=$1 | |
OUT=$2 | |
true ${SD_PARAMS:="-55dB:d=0.3"}; | |
true ${MIN_FRAGMENT_DURATION:="20"}; | |
export MIN_FRAGMENT_DURATION | |
if [ -z "$OUT" ]; then |
const express = require("express"); | |
const router = express.Router(); | |
const User = require("../models/user"); | |
const AWS = require("aws-sdk"); | |
AWS.config.update({ | |
accessKeyId: process.env.accessKeyId, | |
secretAccessKey: process.env.secretAccessKey, | |
region: "us-east-1" | |
}); |
iTerm2 instructions: https://gregrs-uk.github.io/2018-11-01/open-files-neovim-iterm2-macos-finder/
Terminal.app instructions:
Run AppleScript
action and paste in the code below.
on run {input, parameters}
# Must use full path.
set cmd to "/usr/local/bin/nvim "
const AWS = require('aws-sdk'); | |
const s3 = new AWS.S3(); | |
const mailParser = require('mailparser').simpleParser; | |
const dateFormat = require('dateformat'); | |
const path = require('path'); | |
const config = { | |
incomingBucket: process.env.INCOMING_BUCKET || 'ldsc-webcam', | |
incomingPrefix: process.env.INCOMING_PREFIX || 'incoming/', | |
outgoingBucket: process.env.OUTGOING_BUCKET || 'ldsc-webcam', |