Skip to content

Instantly share code, notes, and snippets.

View tecnologer's full-sized avatar
👨‍💻
Focusing

Rey David Dominguez Soto tecnologer

👨‍💻
Focusing
View GitHub Profile
@levhita
levhita / release_name_generator.sh
Created August 18, 2021 18:13
Name generator that matchs an uncommon adjective with a common animal.
#!/bin/bash
adjectives=('Adamant' 'Adroit' 'Amatory' 'Animistic' 'Antic' 'Arcadian' 'Baleful'
'Bellicose' 'Bilious' 'Boorish' 'Calamitous' 'Caustic' 'Cerulean' 'Comely'
'Concomitant' 'Contumacious' 'Corpulent' 'Crapulous' 'Defamatory' 'Didactic'
'Dilatory' 'Dowdy' 'Efficacious' 'Effulgent' 'Egregious' 'Endemic' 'Equanimous'
'Execrable' 'Fastidious' 'Feckless' 'Fecund' 'Friable' 'Functional' 'Fulsome'
'Garrulous' 'Guileless' 'Gustatory' 'Heuristic' 'Histrionic' 'Hubristic'
'Incendiary' 'Insidious' 'Insolent' 'Intransigent' 'Inveterate' 'Invidious'
'Irksome' 'Jejune' 'Jocular' 'Judicious' 'Lachrymose' 'Limpid' 'Loquacious'
'Luminous' 'Mannered' 'Mendacious' 'Meretricious' 'Minatory' 'Mordant'
@bokwoon95
bokwoon95 / deref.go
Last active November 4, 2022 23:11
Go Generics type signature for ensuring argument is a pointer
// https://go.dev/play/p/BT-OUMK5Rtp
package main
import (
"fmt"
)
// Deref will dereference a generic pointer.
// It will fail at compile time if pt is not a pointer.
@jhwheeler
jhwheeler / bigONotation.js
Last active October 1, 2025 22:47
Big O Notation Exercises
// 1. Even or odd
function isEven(value){
if (value % 2 == 0){
return true;
}
else
return false;
}
@evanwill
evanwill / gitBash_windows.md
Last active November 30, 2025 18:10
how to add more utilities to git bash for windows, wget, make

How to add more to Git Bash on Windows

Git for Windows comes bundled with the "Git Bash" terminal which is incredibly handy for unix-like commands on a windows machine. It is missing a few standard linux utilities, but it is easy to add ones that have a windows binary available.

The basic idea is that C:\Program Files\Git\mingw64\ is your / directory according to Git Bash (note: depending on how you installed it, the directory might be different. from the start menu, right click on the Git Bash icon and open file location. It might be something like C:\Users\name\AppData\Local\Programs\Git, the mingw64 in this directory is your root. Find it by using pwd -W). If you go to that directory, you will find the typical linux root folder structure (bin, etc, lib and so on).

If you are missing a utility, such as wget, track down a binary for windows and copy the files to the corresponding directories. Sometimes the windows binary have funny prefixes, so

@myusuf3
myusuf3 / delete_git_submodule.md
Created November 3, 2014 17:36
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
@mattes
mattes / check.go
Last active October 13, 2025 14:50
Check if file or directory exists in Golang
if _, err := os.Stat("/path/to/whatever"); os.IsNotExist(err) {
// path/to/whatever does not exist
}
if _, err := os.Stat("/path/to/whatever"); !os.IsNotExist(err) {
// path/to/whatever exists
}