Skip to content

Instantly share code, notes, and snippets.

View soediro's full-sized avatar

Sudiro soediro

View GitHub Profile
Serial Keys:
FU512-2DG1H-M85QZ-U7Z5T-PY8ZD
CU3MA-2LG1N-48EGQ-9GNGZ-QG0UD
GV7N2-DQZ00-4897Y-27ZNX-NV0TD
YZ718-4REEQ-08DHQ-JNYQC-ZQRD0
GZ3N0-6CX0L-H80UP-FPM59-NKAD4
YY31H-6EYEJ-480VZ-VXXZC-QF2E0
ZG51K-25FE1-H81ZP-95XGT-WV2C0
VG30H-2AX11-H88FQ-CQXGZ-M6AY4
@soediro
soediro / nginx.conf
Created September 27, 2019 00:21
Nginx configuration on SunOS 5.11
user www www;
worker_processes 1;
events {
# After increasing this value You probably should increase limit
# of file descriptors (for example in start_precmd in startup script)
worker_connections 1024;
}
#!/bin/bash
#
# ./makeitrain.sh bitcoin-qt.crashdump.core
# __ _ _ __ ___ __ ____ ____
# / ( \/ )/ _\ / __)/ _\/ ___(_ )
# ( O ) (/ ( (_ / \___ \ )(
# \__(_/\_\_/\_/\___\_/\_(____/(__)
#
# Donations:
# btc: 34fDhMUkvGVr1s2jQvhwmBfw1xqjstrLed
@ibqn
ibqn / mailserver-howto.md
Last active October 12, 2024 16:28
Email server based on Dovecot, Postfix, MySQL, Rspamd and Debian 9 Stretch

Email server based on Dovecot, Postfix, MySQL, Rspamd and Debian 9 Stretch

MySQL database setup

Install MariaDB as a database management system DBMS

sudo apt install mariadb-server

Create a new database named srvmail for a mail server:

@soediro
soediro / pf.conf
Created March 24, 2018 21:25
PF for webjail on FreeBBSD
# /etc/pf.conf
ext_if="xn0"
webjail="10.10.60.1"
webports = "{http, https}"
int_tcp_services = "{domain, ntp, smtp, www, https, ftp, ssh, 55536}"
int_udp_services = "{domain, ntp}"
icmp_types = "echoreq"
set skip on lo
@ar-android
ar-android / frebsd_laravel_install.md
Last active November 1, 2024 22:30
Setup FreeBSD Server for Laravel

Update Package

sudo freebsd-update fetch install

Install NGINX

sudo pkg install nginx
@johnbianchi
johnbianchi / pfctl-cheatsheet.txt
Last active October 9, 2024 12:52
pfctl cheat sheet
#### General PFCTL Commands ####
$ pfctl -d disable # packet-filtering
$ pfctl -e enable # packet-filtering
$ pfctl -q # run quiet
$ pfctl -v -v # run even more verbose
#### Loading PF Rules ####
$ pfctl -f /etc/pf.conf # load /etc/pf.conf
$ pfctl -n -f /etc/pf.conf # parse /etc/pf.conf, but dont load it
$ pfctl -R -f /etc/pf.conf # load only the FILTER rules
$ pfctl -N -f /etc/pf.conf # load only the NAT rules
@bmatthewshea
bmatthewshea / whattomine-hashtimes.py
Last active January 11, 2024 05:55
Python script to calculate time to win full block and revenue per day. (GPU MINING)
#!/usr/bin/python
# -*- coding: utf-8 -*-
# "Whattomine GPU Hash time calculator"
#
# This is not for CPU or ASIC calculations.
# Author: Brady Shea
# Email: Use github user: bmatthewshea or gist comments
# Origin: https://gist.github.com/bmatthewshea/90b120722e0561dd235adcdc231b6765
#
@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)