Skip to content

Instantly share code, notes, and snippets.

View outlyer's full-sized avatar

Aubin Paul outlyer

  • New York, NY
  • 03:34 (UTC -04:00)
View GitHub Profile
@KaminariOS
KaminariOS / gist:26bffd2f08032e7b836a62801d69b62a
Created November 30, 2025 22:41
Nvim copy over SSH(osc 52)
-- Only copy is supported, paste with Ctrl+shift+v
if vim.env.SSH_TTY then
local osc52 = require("vim.ui.clipboard.osc52")
local function copy_reg(reg)
local orig = osc52.copy(reg)
return function(lines, regtype)
-- Write to Vim's internal register
vim.fn.setreg(reg, table.concat(lines, "\n"), regtype)
@Zahorone
Zahorone / nsmb.conf
Last active February 14, 2026 17:56
Fix for macOS 26 Tahoe Time Machine SMB backup failing with BACKUP_FAILED_DISCONNECTED_DISK_IMAGE error on Synology, QNAP, TrueNAS, UNAS. nsmb.conf configuration guide.
[default]
signing_required=yes
streams=yes
soft=yes
dir_cache_max_cnt=0
protocol_vers_map=6
mc_prefer_wired=yes
@tkafka
tkafka / Detect electron apps causing macOS Tahoe lag.md
Last active March 10, 2026 05:41
Detect Electron apps on mac where the Electron hasn't yet been updated to fix the system wide lag
@fschiettecatte
fschiettecatte / Samba_MacOS.md
Last active February 28, 2026 21:28
Setting up SAMBA for Linux / MacOS

Setting up Samba for Linux / MacOS

I recently (re)switched from using Netatalk to Samba for file access from macOS (15.x) to linux (AlmaLinux 9.x).

Obviously the Samba is a great resource, on the Samba Wiki the Configure Samba to Work Better with Mac OS X was invaluable for setting up the /etc/samba/smb.conf file, and the vfs fruit man page contains documentation for all the options.

Here is the /etc/samba/smb.conf file I use:

# See smb.conf.example for a more detailed config file or

Excerpted from the guide at https://www.avsforum.com/threads/guide-to-subwoofer-calibration-and-bass-preferences.2958528/ written by https://www.avsforum.com/members/mthomas47.7878709/.

Cliff Notes:

Several people have suggested having some abbreviated HT calibration tips, so I have added a few prior to the actual Guide. Anyone wanting more detail on anything from room and speaker setup, to setting crossovers, to the differences between sealed and ported subs, to selecting and positioning subwoofers in a room, can find the pertinent information in the Guide itself. There are some similar abbreviated tips, to selecting subwoofers, at the beginning of Section VIII.

  1. Try to position speakers and subwoofers strategically, doing a "subwoofer crawl" if necessary. Section I-A gives some good general advice on locating the speakers on the front soundstage. (The front three speakers will have the most impact on the overall sound quality for most of the frequency range.) You can Google how to do a sub crawl, or yo
@premek
premek / mv.sh
Last active March 5, 2024 17:43
Rename files in linux / bash using mv command without typing the full name two times
# Put this function to your .bashrc file.
# Usage: mv oldfilename
# If you call mv without the second parameter it will prompt you to edit the filename on command line.
# Original mv is called when it's called with more than one argument.
# It's useful when you want to change just a few letters in a long name.
#
# Also see:
# - imv from renameutils
# - Ctrl-W Ctrl-Y Ctrl-Y (cut last word, paste, paste)
@lizthegrey
lizthegrey / attributes.rb
Last active February 5, 2026 21:27
Hardening SSH with 2fa
default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam'
default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes'
default['sshd']['sshd_config']['PasswordAuthentication'] = 'no'
127.0.0.1 us.rdx2.lgtvsdp.com
127.0.0.1 us.info.lgsmartad.com
127.0.0.1 us.ibs.lgappstv.com
127.0.0.1 us.lgtvsdp.com
127.0.0.1 ad.lgappstv.com
127.0.0.1 smartshare.lgtvsdp.com
127.0.0.1 ibis.lgappstv.com
# added after fork
# from https://www.reddit.com/r/pihole/comments/6qmpv6/blacklists_for_lg_webos_tvs/ and others
@ian-p-cooke
ian-p-cooke / add_wsl_exclusions.ps1
Last active June 30, 2024 05:27
powershell script to add WSL exclusions
$win_user = "ipc"
$linux_user = "ipc"
$package = "CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgsc"
$base_path = "C:\Users\" + $win_user + "\AppData\Local\Packages\" + $package + "\LocalState\rootfs"
$dirs = @("\bin", "\sbin", "\usr\bin", "\usr\sbin", "\home\" + $linux_user + "\.cargo\bin")
$dirs | ForEach { Add-MpPreference -ExclusionProcess ($base_path + $_ + "\*") }
Add-MpPreference -ExclusionPath $base_path
@igv
igv / adaptive-sharpen.glsl
Last active March 9, 2026 10:44
Optimal sharpening strength (according to objective metrics) - 0.5. Can be applied only to luma channel (change OUTPUT to LUMA). To use it on-demand add the following line to input.conf: n change-list glsl-shaders toggle "~~/adaptive-sharpen.glsl"
// Copyright (c) 2015-2021, bacondither
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer
// in this position and unchanged.
// 2. Redistributions in binary form must reproduce the above copyright