Skip to content

Instantly share code, notes, and snippets.

@shinebayar-g
shinebayar-g / block-tor.sh
Last active December 18, 2018 10:28 — forked from tiagoad/block-tor.sh
Cronjob to block tor exit nodes with nginx on debian 8 jessie (tested on Ubuntu 16.04 , 18.04)
wget -qO- https://check.torproject.org/exit-addresses | grep ExitAddress | cut -d ' ' -f 2 | sed "s/^/deny /g; s/$/;/g" > /etc/nginx/conf.d/tor-block.conf; systemctl reload nginx
@shinebayar-g
shinebayar-g / Fix redis server startup warnings, redis tuning performance on Ubuntu 16.04.md
Last active July 13, 2023 01:17
Fix redis server startup warnings, redis tuning performance on Ubuntu 16.04
  • Maximum Open Files
You requested maxclients of 10000 requiring at least 10032 max file descriptors.
Server can't set maximum open files to 10032 because of OS error: Operation not permitted.
Current maximum open files is 4096. maxclients has been reduced to 4064 to compensate for maxclients has been reduced to 4064 to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'.