Skip to content

Instantly share code, notes, and snippets.

View ahyield's full-sized avatar
🛠️
Catching some ⛅️⛅️

Ahmed ahyield

🛠️
Catching some ⛅️⛅️
View GitHub Profile
@ahyield
ahyield / DNServer.rb
Created July 20, 2021 19:53
Dns To Dns Over TLS tcp proxy
require 'socket'
require "openssl"
require "logger"
HOST = "cloudflare-dns.com"
REMOTE_DNS = "1.1.1.1"
REMOTE_PORT = 853
LOCAL_PORT = 53
BLOCK_SIZE = 1024
LOGGER = Logger.new(STDOUT)
events
MaskDefined % thrown when "apply" button is hit, listen to this event
% to get the ROI information (obj.getROIData)
end
properties
image % image to work on, obj.image = theImageToWorkOn
roi % the generated ROI mask (logical)
labels % Connected component labens (multi ROI)
number % how many ROIs there are
@ahyield
ahyield / .gitconfig
Created August 20, 2025 14:44
Git for work and personal when using multiple ssh keys
[includeIf "gitdir:~/Workspace/work/"]
path = ~/dotfiles/.gitconfig-work
[includeIf "gitdir:~/Workspace/personal/"]
path = ~/dotfiles/.gitconfig-personal