Skip to content

Instantly share code, notes, and snippets.

View trustfarm-dev's full-sized avatar

Trustfarm-heart trustfarm-dev

  • TRUSTFARM COMPANY
  • PostZip: (13466) 301, MarkcityBlue BLDG. Unjungro 124, Bundnaggu, Seongnamsi, GG, Korea
View GitHub Profile
@dcnl1980
dcnl1980 / nginx-naxsi.sh
Created November 28, 2016 22:00
Nginx Naxsi (firewall) on Ubuntu 16.04
#!/usr/bin/env bash
apt-get install -y libpcre3 libpcre3-dev libssl-dev unzip make \
libgoogle-perftools-dev google-perftools jq
mkdir /tmp/ngxbuild
cd /tmp/ngxbuild
latestNginx=$(curl -s http://hg.nginx.org/nginx/tags |
grep "^ *release-" | head -1 | cut -c 9-)
latestNaxsi=$(curl -s https://api.github.com/repos/nbs-system/naxsi/releases |
jq -r .[].tag_name | grep -v rc | head -1)
@trustfarm-dev
trustfarm-dev / (ENG) Ethereum-gas-fee-autochange.txt
Created October 14, 2016 09:07
Ethereum Contract GasFee Autochange Idea. review on recent DDOS attacks.
(ENG) Ethereum-gas-fee-autochange.txt
Ethereum Contract GasFee Autochange Idea. review on recent DDOS attacks.
From the beginning ethereum has object to be a world computer and smart contract coin platform.
Recent days of DDOS attacks, ETHEREUM normal node (geth , parity) has over consumed 16GB of Runtime memory and sometimes stuck over 10s minutes, or finally, Out of Memory error occurs and down.
It's not suitable for lite IoT systems, it needs less consume of run-time memory, not by sw footprint.
If operate nodes, that's possible to lite client which connect remote full nodes.
@purwandi
purwandi / 01-Nginx-Naxsi-Core.md
Last active January 4, 2021 12:10
Install nginx, naxsi core and naxsi ui

Install Some Dependencies

apt-get install build-essential bzip2 libpcre3-dev libssl-dev mysql-server daemon libgeoip-dev

Installing Nginx with Naxsi Core

Download Nginx, Naxsi Core dan Naxsi UI. Saya berasumsi tempat download berada di /home/compile