Skip to content

Instantly share code, notes, and snippets.


Selivanov Pavel selivan

Block or report user

Report or block selivan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
selivan /
Created Jun 11, 2018
Letsencrypt update certs using webroot
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
certbot certonly --webroot --webroot-path "$WEBROOT" --register-unsafely-without-email -d "$DOMAINS"
iptables -D INPUT -p tcp --dport 80 -j ACCEPT
apache2ctl graceful
#!/usr/bin/env python3
Import XML configuration files using Zabbix API:
import argparse
from urllib import request
import json
import sys
from pprint import pformat
selivan /
Last active Feb 17, 2018 — forked from denji/
Priming the OCSP cache in Nginx
URL=$(openssl x509 -noout -ocsp_uri -in "$SERVER_CER")
openssl ocsp -noverify -no_nonce -respout ocsp.resp -issuer "$ISSUER_CER" -cert "$SERVER_CER" -url "$URL"
# Where “ocsp.resp” is whatever file you have configured in Nginx for the “ssl_stapling_file“.
selivan / my-ublock-filters.txt
Last active Feb 11, 2018
Additional filters for uBlock
View my-ublock-filters.txt
! Some shit from Yandex.Market Sovetnik
! Block everywhere except Yandex.Market
View skypeforlinux.profile
# Firejail profile for skypeforlinux
# This file is overwritten after every install/update
# Persistent local customizations
include /etc/firejail/skypeforlinux.local
# Persistent global definitions
include /etc/firejail/globals.local
ignore private-dev
whitelist /dev/dri
whitelist /dev/full
selivan / gist:926479e48c799cb4b7a37eb741af6c12
Last active Jan 19, 2018
Files in /dev used by skypeforlinux with firejail 0.9.52
View gist:926479e48c799cb4b7a37eb741af6c12
open("/dev/null", O_RDONLY) = 0
open("/dev/urandom", O_RDONLY) = 3
open("/dev/urandom", O_RDONLY) = 3
open("/sys/devices/system/cpu/cpu0/tsc_freq_khz", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq", O_RDONLY) = 4
open("/sys/devices/system/cpu", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 14
[pid 17] open("/dev/null", O_RDONLY) = 20
[pid 17] open("/dev/urandom", O_RDONLY) = 5
[pid 17] open("/dev/urandom", O_RDONLY) = 5
[pid 17] open("/sys/devices/system/cpu/cpu0/tsc_freq_khz", O_RDONLY) = -1 ENOENT (No such file or directory)
selivan / pornhub-noage.txt
Last active Mar 6, 2018
Userstyle to remove pornhub age verification
View pornhub-noage.txt
@-moz-document domain("") {
div[id="age-verification-wrapper"]{ display:none !important; }
div[id="age-verification-container"]{ display:none !important; }
div[id="verifyAgeWrapper"]{ display:none !important; }
div[id="pb_block"]{ display:none !important; }
selivan / 1501248133318.log
Last active Jul 28, 2017
dbeaver crash log
View 1501248133318.log
!SESSION 2017-07-28 16:22:13.162 -----------------------------------------------
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86_64
!ENTRY 4 0 2017-07-28 16:22:13.734
!MESSAGE FrameworkEvent ERROR
selivan / nginx -V
Last active Apr 7, 2017
nginx build arguments for naxsi/issues/364
View nginx -V
nginx version: nginx/1.10.3
built with OpenSSL 1.0.1f 6 Jan 2014
TLS SNI support enabled
configure arguments:
--with-cc-opt='-g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fPIC -D_FORTIFY_SOURCE=2'
--with-ld-opt='-Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now -fPIC'
--prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf
--http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log
--lock-path=/var/lock/nginx.lock --pid-path=/run/ --modules-path=/usr/lib/nginx/modules
--http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi
selivan / nginx.conf
Last active Apr 7, 2017
nginx.conf for naxsi/issues/364
View nginx.conf
user www-data;
pid /var/run/;
events {
http {
include /etc/nginx/naxsi/core.rules;
access_log /var/log/nginx/access.log combined;
You can’t perform that action at this time.