Skip to content

Instantly share code, notes, and snippets.

View yolateng0's full-sized avatar
🎯
Focusing

Yo yolateng0

🎯
Focusing
View GitHub Profile
@yolateng0
yolateng0 / Fail2ban jail searx solutions
Last active December 13, 2019 14:24
Searx Fail2Ban rules jails against or use Filtron
# 2 solutions to protect your Searx instance
- One way to protect Searx is using Filtron.
Filtron was written by the Searx author and acts as proxy between the webserver and the application.
- second way use fail2ban.
the jails: place them into "etc/fail2ban/filter.d" :
apache-searx-csv.conf:
# Fail2Ban configuration file
@yolateng0
yolateng0 / Install a newer kernel in Debian 9 (stretch) stable
Last active February 11, 2019 13:44
Install a newer kernel in Debian 9 (stretch) stable
Install a newer kernel in Debian 9 (stretch) stable (sept 2017)
When using the latest version of Debian 9 stable, even with all updates installed, by default, you can’t get a very recent kernel via the standard repositories in your package manager. While the idea of using Debian stable is to remain stable and rather conservative, there are several benefits with installing a newer kernel and in some cases it’s the only option to get the OS to support all your hardware. The risk and impact on stability is small and the process is rather simple.
Some of the benefits are:
Support for previously unsupported hardware: every kernel release has a list of added drivers. Especially when you have recent hardware, a newer kernel could be required to fully support your video card for example.
Performance improvements and bug fixes: newer kernels often contain a lot of bug fixes, have new functions and performance tweaks. Here again, the most is to gain on newer hardware.
@yolateng0
yolateng0 / Unbound DNS anti ads (spotify, google)
Created February 28, 2018 13:33
Unbound config against ads google spotify
# Unbound configuration file for Debian.
#
# See the unbound.conf(5) man page.
#
# See /usr/share/doc/unbound/examples/unbound.conf for a commented
# reference config file.
#
# The following line includes additional configuration files from the
# /etc/unbound/unbound.conf.d directory.
server:
@yolateng0
yolateng0 / all history logs Debian
Created April 21, 2018 15:37
Debian Ubuntu All log files are located in /var/log directory.
All log files are located in /var/log directory. In that directory, there are specific files for each type of logs. For example, system logs, such as kernel activities are logged in syslog file.
Some of the most common log files in that directory is :
In directory apt there is a file history.log which saves all the package installation and removal information even the initial system build as Live CD. You can open this file to see this very interesting file.
In directory dist-upgrade there is a file apt.log which logs the information during distribution upgrades
In directory installer the log files which are created during installation can be found.