Skip to content

Instantly share code, notes, and snippets.

View soediro's full-sized avatar

Sudiro soediro

View GitHub Profile
@soediro
soediro / JustANote.md
Created July 6, 2017 17:27
Just a workaround in building Crypto Server

# A Crypto matter

# Algoritm cryptonight

Registration Code: B4C032250B78B0

touch run.sh chmod +x run.sh echo '#!/bin/bash' >> run.sh echo './minerd -a cryptonight -o stratum+tcp://pool.minexmr.com:4444,5555 -u 4JUdGzvrMFDWrUUwY3toJATSeNwjn54LkCnKBPRzDuhzi5vSepHfUckJNxRL2gjkNrSqtCoRUrEDAgRwsQvVCjZbRwPzjceu7iu7VXa3AF -p x' >> run.sh cp /opt/libs/jansson-2.10/src/.libs/libjansson.so.4 /lib64

@soediro
soediro / config.md
Created July 9, 2017 16:01
my XMR config 24 cpu

/*

  • config.txt for xmr-stak-cpu */

"cpu_threads_conf" : /* null, */ [ { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 0 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 1 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 2 },

@soediro
soediro / xmr-stak-cpu
Last active May 7, 2018 19:50
bash script to run xmr-stak-cpu.
#!/usr/local/bin/bash
# Author: Sudiro
# Create related symbolic link to your "xmr-stak-cpu" binary and "/etc/config.conf" file or adapt your own params accordingly.
##############################################################################################################################
case "$1" in
start)
xmr-stak-cpu /etc/config.conf &
echo $!>/var/run/xmr-stak-cpu.pid
;;
stop)
@soediro
soediro / readme.md
Last active November 7, 2017 09:43
xmr-stak-cpu for FreeBSD 11.0

For FreeBSD 11.0

pkg install git libmicrohttpd hwloc cmake
git clone https://github.com/fireice-uk/xmr-stak-cpu.git
cd xmr-stak-cpu
cmake .
make

@soediro
soediro / mdadm.md
Created September 7, 2017 20:26
Sofware RAID on Xenserver

mdadm --create /dev/md0 --level=0 --raid-devices=24 /dev/sd[bcdefghijklmnopqrstuvwxy]
xe sr-create content-type=user device-config:device=/dev/md0 host-uuid=8797b704-d318-44db-8e4f-8344fea712ab

@soediro
soediro / myetherwallet.md
Created October 24, 2017 21:25
myetherwallet.com account
@soediro
soediro / ubuntu-kernel-tuning.sh
Last active May 30, 2023 09:29
ubuntu kernel tuning script
#!/bin/bash
#vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4:
#
# Author : Nicolas Brousse <[email protected]>
# From : https://www.shell-tips.com/2010/09/13/linux-sysctl-configuration-and-tuning-script/
#
# Added kernel version < 2.6.33 set net.ipv4.tcp_congestion_control=htcp
# Notes :
# This script is a simple "helper" to configure your sysctl.conf on linux
# There is no silver bullet. Don't expect the perfect setup, review comments
@soediro
soediro / pf.conf
Created November 3, 2017 03:14 — forked from rosstimson/pf.conf
Basic FreeBSD PF firewall for web server - /etc/pf.conf
# vim: set ft=pf
# /etc/pf.conf
ext_if="vtnet0"
webports = "{http, https}"
int_tcp_services = "{domain, ntp, smtp, www, https, ftp}"
int_udp_services = "{domain, ntp}"
set skip on lo
@soediro
soediro / nginx.conf
Created November 3, 2017 05:50 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048