Skip to content

Instantly share code, notes, and snippets.

@theaog
theaog / update-golang.sh
Last active November 10, 2023 14:59
update-golang.sh
#!/usr/bin/env bash
set -e
tmp=$(mktemp -d)
pushd "$tmp" || exit 1
function cleanup {
popd || exit 1
rm -rf "$tmp"
}
@theaog
theaog / xmrig-proxy-static.md
Last active May 5, 2022 13:19
xmrig-proxy static link v6.15.2+

v6.15.2 at the time of this writing

  • download xmrig: https://github.com/xmrig/xmrig/releases
  • copy xmrig/scripts to xmrig-proxy/scripts
  • $ cp -frv xmrig/scripts xmrig-proxy/
  • $ cd xmrig-proxy && scripts/build_deps.sh
  • edit cmake/cmake.flags
  • find set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libgcc -static-libstdc++") and add -static to it
  • result: set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libgcc -static-libstdc++ -static")
  • $ mkdir -p build && cd build