Skip to content

Instantly share code, notes, and snippets.

View agalitsyn's full-sized avatar

Anton Galitsyn agalitsyn

View GitHub Profile
@agalitsyn
agalitsyn / typeahead_result.gohtml
Created March 27, 2024 14:23 — forked from Howard3/typeahead_result.gohtml
HTMX/AlpineJS TypeAhead.
{{define "content"}}
<div id="results">
{{if or .Notice .Error}}
{{if .Error}}
<div
class="alert flex rounded-lg border border-error px-4 py-4 text-error sm:px-5"
>
{{.Error}}
</div>
{{else}}
@agalitsyn
agalitsyn / nerdfucker.sh
Created November 30, 2022 09:56 — forked from yuceltoluyag/nerdfucker.sh
While downloading files larger than 2gb from Github, it was giving an error and the download was being reset. This is how I solved the problem, you can delete the fonts you don't want to use. If you want to delete Windows compatible fonts, delete lines 73 and 74 and replace with find "$fonts_dir" -name '*Windows Compatible*' -delete
#!/bin/bash
declare -a fonts=(
"3270"
Agave
AnonymousPro
Arimo
AurulentSansMono
BigBlueTerminal
BitstreamVeraSansMono
@agalitsyn
agalitsyn / gist:efc5c1b31301e58ec65746b57ccdd9ac
Created November 22, 2022 14:36 — forked from jatcwang/gist:ae3b7019f219b8cdc6798329108c9aee
List of all setxkbmap configuration options (including models/layout/etc)
! model
pc101 Generic 101-key PC
pc102 Generic 102-key (Intl) PC
pc104 Generic 104-key PC
pc105 Generic 105-key (Intl) PC
dell101 Dell 101-key PC
latitude Dell Latitude series laptop
dellm65 Dell Precision M65
everex Everex STEPnote
flexpro Keytronic FlexPro
@agalitsyn
agalitsyn / postgres-brew.md
Created March 16, 2020 10:26 — forked from ibraheem4/postgres-brew.md
Installing Postgres via Brew (OSX)

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update
@agalitsyn
agalitsyn / theme.json
Created February 27, 2019 07:30
Mattermost Discord theme
{
"sidebarBg":"#2F3136",
"sidebarText":"#9ca0a4",
"sidebarUnreadText":"#ffffff",
"sidebarTextHoverBg":"#42464D",
"sidebarTextActiveBorder":"#42464D",
"sidebarTextActiveColor":"#ffffff",
"sidebarHeaderBg":"#282B30",
"sidebarHeaderTextColor":"#ffffff",
"onlineIndicator":"#43B581",

FWIW: I didn't produce the content presented here (the outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.


Effective Engineer - Notes

What's an Effective Engineer?

@agalitsyn
agalitsyn / README.md
Last active January 2, 2022 12:48
golang anti patterns, examples from real codebases