Skip to content

Instantly share code, notes, and snippets.

View pie-ai's full-sized avatar

Patrick pie-ai

  • Hagen / NW / Germany / EU
View GitHub Profile
@syneart
syneart / meld_hotfix_sonoma.sh
Last active September 4, 2025 15:53
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
@dcode
dcode / README.md
Last active April 17, 2025 17:17
How to use CoreDNS w/ etcd backend

Setup CoreDNS w/ etcd backend

Why CoreDNS

[CoreDNS][coredns] was designed from the ground up to provide robust, plugin-based DNS server for use in cloud environments. Namely, it serves as the default primary service discovery mechanism for Kubernetes.

Using CoreDNS allows us to have a lightweight DNS server on RockNSM (11 Mb binary is all that's needed!) to facilitate multi-node service discovery. Alternatively, if another existing DNS service is available, this can be used instead. Aligning with the way the Kubernetes manages service discovery also allows us to build new RockNSM features in parallel with the coming Kubernetes support.

RockNSM Application

@mosquito
mosquito / README.md
Last active October 14, 2025 19:22
Add doker-compose as a systemd unit

Docker compose as a systemd unit

Create file /etc/systemd/system/docker-compose@.service. SystemD calling binaries using an absolute path. In my case is prefixed by /usr/local/bin, you should use paths specific for your environment.

[Unit]
Description=%i service with docker compose
PartOf=docker.service
After=docker.service
@mvanvuuren
mvanvuuren / oracle_curl.sh
Last active July 28, 2021 20:58 — forked from danievanzyl/oracle_curl.sh
Download from OTN Oracle
#!/bin/bash
curl -L -O -H "Cookie: oraclelicense=accept-securebackup-cookie" $1
#ORACLE Solaris download links
#http://download.oracle.com/otn/solaris/11.2/sol-11_2-text-sparc.iso
#http://download.oracle.com/otn/solaris/11.2/sol-11_2-text-sparc.usb
#http://download.oracle.com/otn/solaris/11.2/sol-11_2-text-x86.iso
#http://download.oracle.com/otn/solaris/11.2/sol-11_2-text-x86.usb
#http://download.oracle.com/otn/solaris/11.2/sol-11_2-ai-sparc.iso
@jordic
jordic / ssh.go
Created May 27, 2014 14:03
golang mysql throught a tunnel
package main
// based on gist
// https://gist.github.com/ir4y/11146415
// http://stackoverflow.com/questions/21417223/simple-ssh-port-forward-in-golang
// obro conexio ssh amb el server remot.
// tot el que envio al port local ho copio al port remote
// a traves de la conexio remota. Per tant he d'obrir un
// port a la maquina remota?