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
@timurguseynov
timurguseynov / gpgedit
Created February 1, 2025 07:09 — forked from a-ludi/gpgedit
gpgedit lets you edit a gpg-encrypted file without much fuzz -- similar to sudoedit.
#!/usr/bin/python
# gpgedit lets you edit a gpg-encrypted file without much fuzz -- similar to
# sudoedit.
#
# For this to achieve, gpgedit uses gpg to decrypt your file and save the
# plain text in a temporary file under /dev/shm (tmpfs) which will open in
# an editor. After the changes have been saved and the editor closed your
# plain text will be encrypted and written to the original file.
#
@timurguseynov
timurguseynov / domain_driven_design.md
Created December 31, 2023 12:13 — forked from danilobatistaqueiroz/domain_driven_design.md
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

@timurguseynov
timurguseynov / MacPort PostgreSQL setup.md
Created December 28, 2023 09:35 — forked from DrTom/MacPort PostgreSQL setup.md
MacPort PostgreSQL setup

PostgreSQL Server Setup on Mac OS with MacPorts

export VERSION=15

Install

port info postgresql${VERSION}-server
port install postgresql${VERSION}-server
@timurguseynov
timurguseynov / postgres-cheatsheet.md
Created December 28, 2023 09:35 — forked from Kartones/postgres-cheatsheet.md
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)
@timurguseynov
timurguseynov / slack_tweaks.md
Created October 23, 2023 15:15 — forked from Kenny-MWI/slack_tweaks.md
Slack Tweaks

Slack Tweaks

In Fall 2023, Slack introduced an updated client with some unpopular UI changes. The tweaks in this document can be used to revert to the old client or hide the new side bar. These will reset every time you fully close Slack but they are easy to re-apply once you get the hang of it.

The fist step is to enable dev mode, which can be accomplished by setting a system-wide environment variable.

(Mac OS) Enable Dev Mode

  1. Close the Slack app (command + Q)
  2. Open the terminal and run these two commands separately:
@timurguseynov
timurguseynov / config.toml
Created October 20, 2023 19:15 — forked from lukepighetti/config.toml
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"]
@timurguseynov
timurguseynov / config.toml
Created October 20, 2023 19:08 — forked from gabydd/config.toml
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
@timurguseynov
timurguseynov / README.md
Created October 16, 2023 20:13 — forked from taichikuji/README.md
Get a DDNS up and running with DuckDNS - Step by Step

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

DDNS? What is that?

A dynamic DNS. DNS stands for Domain Name Server, which, in other words, is basically the server that answer your queries when you search for a hostname on the internet.

Example: If you search for "google.com" there will always (probably) a server that points out to that hostname and tells you the information the computer needs; the IP address.

If you want to give it a test, you only have to open your terminal and type "ping google.com" and you will see the real IP address appear! In my case it's 216.58.201.174 .

Anyways.. A DDNS is useful if you want to link or put a hostname to an IP that is not STATIC.

@timurguseynov
timurguseynov / appify
Created September 26, 2021 14:56 — forked from mathiasbynens/appify
appify — create the simplest possible Mac app from a shell script
#!/bin/bash
if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF
appify v3.0.1 for Mac OS X - http://mths.be/appify
Creates the simplest possible Mac app from a shell script.
Appify takes a shell script as its first argument:
`basename "$0"` my-script.sh
@timurguseynov
timurguseynov / final-cut-it-out.js
Created June 5, 2021 06:50 — forked from jashmenn/final-cut-it-out.js
Remove Silence from Final Cut Pro clips, automatically, using ffmpeg timecodes and OSX JavaScript Automation - Demo: https://imgur.com/a/Zisav
#!/usr/bin/env osascript -l JavaScript
/**
* Delete silence from Final Cut Pro timeline using a script.
* Demo: https://imgur.com/a/Zisav
*
* This script accepts an ffmpeg silencedetect log as input.
*
* To setup, have fcp running along with your clip selected. Ensure that the
* timecode will start at zero before running this script. That is, if your clip