Skip to content

Instantly share code, notes, and snippets.

View bsara's full-sized avatar
😱

Brandon Sarà bsara

😱
View GitHub Profile
@bsara
bsara / goroutines.log
Created April 27, 2026 21:56
AdGuard Home goroutine logs
This file has been truncated, but you can view the full file.
goroutine 7309 [running]:
runtime/pprof.writeGoroutineStacks({0x15fc1c0, 0x7f040b03c0})
runtime/pprof/pprof.go:819 +0x6c
runtime/pprof.writeGoroutine({0x15fc1c0?, 0x7f040b03c0?}, 0x7f084051e0?)
runtime/pprof/pprof.go:782 +0x2c
runtime/pprof.(*Profile).WriteTo(0x1ec1990?, {0x15fc1c0?, 0x7f040b03c0?}, 0xc?)
runtime/pprof/pprof.go:408 +0x144
net/http/pprof.handler.ServeHTTP({0xb66259, 0x9}, {0x16050d0, 0x7f040b03c0}, 0x7f0f233b80)
net/http/pprof/pprof.go:273 +0x414
net/http.(*ServeMux).ServeHTTP(0x0?, {0x16050d0, 0x7f040b03c0}, 0x7f0f233b80)
@bsara
bsara / .gitconfig
Last active October 15, 2026 01:37
Standard .gitconfig sections
[branch]
autosetuprebase = always
[core]
autocrlf = false
ignorecase = false
[push]
default = simple
[pull]
default = simple
@bsara
bsara / git-ssh-auth-win-setup.md
Last active July 27, 2026 23:38
Setup SSH Authentication for Git Bash on Windows

Setup SSH Authentication for Git Bash on Windows

Prepararation

  1. Create a folder at the root of your user home folder (Example: C:/Users/uname/) called .ssh.
  2. Create the following files if they do not already exist (paths begin from the root of your user home folder):
  • .ssh/config
@bsara
bsara / twos-complement.js
Created March 10, 2016 21:18
A simple function that returns the two's complement binary representation of a given number
/**
* @param {Number} value
* @param {Number} [bitCount = 0]
*
* @returns {String} binary representation of the two's complement of `value`.
*/
function twosComplement(value, bitCount) {
let binaryStr;
if (value >= 0) {
@bsara
bsara / js.gitignore
Last active October 31, 2023 03:39
.gitignore File for JavaScript Projects
#---------------------------------------#
# Project Ignores #
#---------------------------------------#
# output
/.temp
/.tmp
/build
/dist
@bsara
bsara / LF.gitattributes
Last active June 14, 2025 21:50
General .gitattributes File
# Project
* text eol=lf
# Language Diffs
*.cs diff=csharp
*.css diff=css
@bsara
bsara / DotNET.gitattributes
Last active October 2, 2026 16:34
.gitattributes File for .NET Projects
# Project
* text eol=crlf
# .NET Framework
*.dll binary diff=exif
*.exe binary diff=exif
@bsara
bsara / CRLF.gitattributes
Last active March 28, 2022 15:08
General .gitattributes File with Windows Line Endings (CRLF)
# Project
* text eol=crlf
# Language Diffs
*.cs diff=csharp
*.css diff=css
@bsara
bsara / standard.editorconfig
Last active October 9, 2026 23:33
EditorConfig (Standard)
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
@bsara
bsara / .bash_aliases
Last active March 28, 2022 15:09
Useful Bash Aliases
# Misc
alias oh="nemo . 2>/dev/null"
alias ohh="nautlius . 2>/dev/null"
alias cls=clear
alias lsa="ls -al"
alias ..="cd .."
alias ...="cd ../.."
# Google Chrome