Skip to content

Instantly share code, notes, and snippets.

@NanXiao
NanXiao / meld-macos.md
Created February 7, 2025 04:12 — forked from ilyagr/meld-macos.md
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.

More details on dehesselle-meld and alternative installation

The dehesselle-meld cask will

@NanXiao
NanXiao / meld_hotfix_sonoma.sh
Created February 7, 2025 03:54 — forked from syneart/meld_hotfix_sonoma.sh
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
@NanXiao
NanXiao / macos-openssh-portable.sh
Created November 1, 2021 02:16 — forked from surjikal/macos-openssh-portable.sh
Compile OpenSSH Portable on OSX / MacOS
#!/usr/bin/env bash
brew install openssl
git clone git://anongit.mindrot.org/openssh.git
cd openssh
# ./configure script does not exist, so we have to build it
autoreconf
#define UNW_LOCAL_ONLY
#include <libunwind.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <pthread.h>
void
backtrace(void)
{
#!/usr/bin/awk -f
BEGIN {
FS = ",";
}
function update_array(server_name, ticket)
{
if (length(ticket) != 0)
{
#!/usr/bin/awk -f
BEGIN {
FS = ",";
}
function update_array(server_name, ticket, full_array, partial_bytes_array)
{
if (length(ticket) != 0)
{
#!/usr/bin/awk -f
BEGIN {
FS = ",";
}
function update_array(ticket, full_array, partial_bytes_array)
{
if (length(ticket) != 0)
{
#!/usr/bin/awk -f
BEGIN {
FS = ",";
session_id_ticket = 0
}
function update_array(len, array)
{
if (len != 0)
#!/usr/bin/awk -f
function max_value(new_value, old_value)
{
if (new_value > old_value)
{
return new_value;
}
else
{
#!/usr/bin/awk -f
BEGIN {
FS = ",";
records_have_session_id = 0;
session_resumption_use_id = 0;
records_have_session_ticket = 0;
session_resumption_use_ticket = 0;
}