Skip to content

Instantly share code, notes, and snippets.

@ilyagr
ilyagr / meld-macos.md
Last active April 22, 2025 01:36
Using meld on Macs (as of 2025-01-22)

Running Meld on MacOS

The state of Meld on Macs is currently in flux. TLDR: currently, the best way to run Meld is to install Homebrew and then run brew install dehesselle-meld.

Update 2025-04-21: Starting today, it seems that Homebrew renamed the dehesselle-meld cask to just meld, https://formulae.brew.sh/cask/meld. So, brew install --cask meld should work (possibly after updating Homebrew), and simple brew install meld might work too.

@syneart
syneart / meld_hotfix_sonoma.sh
Last active May 16, 2025 08:00
Meld v3.21.0 (r4) hot-fix for macOS on Intel CPU / Apple Silicon CPU with Rosetta
### Test on https://github.com/yousseb/meld/releases/tag/osx-20
### OSX - 3.21.0 (r4) Sonoma
### !!! Note: You need put the Meld.app r4 build to the /Applications path first.
#!/bin/zsh
#Fix libpng16.16.dylib not found
install_name_tool -change /usr/local/opt/libpng/lib/libpng16.16.dylib @executable_path/../Frameworks/libpng16.16.dylib /Applications/Meld.app/Contents/Frameworks/libfreetype.6.20.0.dylib
#Fix libbrotlidec.1.dylib not found
@CMCDragonkai
CMCDragonkai / memory_layout.md
Last active April 7, 2025 13:55
Linux: Understanding the Memory Layout of Linux Executables

Understanding the Memory Layout of Linux Executables

Required tools for playing around with memory:

  • hexdump
  • objdump
  • readelf
  • xxd
  • gcore
@surjikal
surjikal / macos-openssh-portable.sh
Last active February 7, 2025 04:32
Compile OpenSSH Portable on OSX / MacOS
#!/usr/bin/env bash
brew install openssl
git clone git://anongit.mindrot.org/openssh.git
cd openssh
# The './configure' script does not exist, so we have to build it
autoreconf
@ax3l
ax3l / CUDA_Compilers.md
Last active May 16, 2025 07:24
CUDA Compilers
# If you're looking into the C10M problem (10 million concurrent connections)
# you might want to play with DPDK (Originally proprietry Intel, now open source)
#
# C10M: http://c10m.robertgraham.com/
# DPDK: http://dpdk.org/
#
# This is a quick summary how to install dpdk on ubuntu
# running inside virtualbox on a mac
# On my Mac:
@wmealing
wmealing / nmi-interrupts.txt
Created May 6, 2013 03:45
NMI interrupts and the joy they bring.
A non-maskable interrupt (NMI) is an interrupt type which differs from standard interrupt mechanism by enforcing attention from the interrupt processor (usually the CPU). This solution discusses an NMI is in more depth and how they are handled.
### What is an Interrupt ? ###
Modern systems architecture has created tightly coupled connect between system components. Work for components can be handed off to a component for completion. Rather than wait for the component the main CPU can be tasked to do other pending work.
When the component has completed its work it will raise a signal to the main processor. The main processor considers this signal an "interrupt", as the current work on the CPU will be interrupted immediately Each component has a number assigned to it.
### Why "mask" an interrupt ? ###