Skip to content

Instantly share code, notes, and snippets.

View klaxa's full-sized avatar

klaxa

  • Germany
View GitHub Profile
@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
@wylfen
wylfen / tichy.sh
Last active January 8, 2022 16:34
Der Tichyfizierer
#!/bin/bash
hartes_welches=/usr/bin/which
nein() {
echo "Walter F. Tichy lacht über dein Versagen"
}
# $ tichyfizieren man Mann >> tichy.sh
# $ . tichy.sh
@dobe
dobe / kqueue based file mod listener
Created January 23, 2010 08:31
kqueue file watch w python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import select
from select import kqueue, kevent
class Watch(object):
SIZE_HINT = 50000