Skip to content

Instantly share code, notes, and snippets.

View timurguseynov's full-sized avatar
🏠
Working from home

Timur Guseynov timurguseynov

🏠
Working from home
View GitHub Profile
@lukepighetti
lukepighetti / config.toml
Last active January 13, 2025 18:32
Helix – tree file picker... TODAY?!?
[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"]
@gabydd
gabydd / config.toml
Last active March 1, 2025 18:06
helix lf
[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
@Starraider
Starraider / vim_tips.md
Last active June 20, 2025 17:05
Tips & Tricks for Vim/NeoVim

Tips & Tricks for Vim/NeoVim

Keyboard Shortcuts

Be aware the following shortcuts are only working, if you have the plugins installed mentioned below.

In Command Mode:

:w              Save file

:w filename Save file under new filename

@taichikuji
taichikuji / README.md
Last active September 17, 2025 09:53
Get a DDNS up and running with DuckDNS - Step by Step

Get a DDNS up and running with DuckDNS - Step by Step

Understanding DDNS

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.

How Does DDNS Work?

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
@vi
vi / split_by_silence_kf.sh
Last active December 5, 2022 14:40
Video-enhanced split_by_silence.sh script.
#!/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
@alexruzenhack
alexruzenhack / domain_driven_design.md
Last active June 2, 2024 18:59
Summary of #ddd by Eric Evans

The heart of software

  • Leaders within a team who understand the centrality of the domain can put their software project back on course.
  • Software developer is like a researche, both have the responsability to tackle the messiness of the real world through complicated domain that has never been formalized.
  • There are systematic ways of thinking that developers can employ to search for insight and produce effective models.

One. Crunching Knowledge

Ingredients of effective modeling

@mihaiserban
mihaiserban / aws.js
Created November 2, 2018 14:28
AWS SNS handle SES bounce/complaints
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"
});
@justinmk
justinmk / macos-open-in-nvim.md
Last active November 5, 2023 20:20
macOS Automator script to open files in nvim from Finder
@breenie
breenie / lambda.js
Created November 24, 2017 12:35
SES push attachments to S3
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',