Skip to content

Instantly share code, notes, and snippets.

💭
:octocat:

Selivanov Pavel selivan

💭
:octocat:
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
selivan / OCSP-generate.sh
Last active Feb 17, 2018 — forked from denji/OCSP-generate.sh
Priming the OCSP cache in Nginx
View OCSP-generate.sh
#!/bin/sh
ISSUER_CER=$1
SERVER_CER=$2
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
selivan / my-ublock-filters.txt
Last active Feb 11, 2018
Additional filters for uBlock
View my-ublock-filters.txt
! https://adblockplus.org/en/filter-cheatsheet
! https://github.com/gorhill/uBlock/wiki/Static-filter-syntax
! Some shit from Yandex.Market Sovetnik
! Block everywhere except Yandex.Market
||yastatic.net/sovetnik/_/js/*$script
@@||yastatic.net/sovetnik/_/js/*$script,domain=market.yandex.com,market.yandex.ua,market.yandex.ru
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
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
selivan / pornhub-noage.txt
Last active Mar 6, 2018
Userstyle to remove pornhub age verification
View pornhub-noage.txt
@-moz-document domain("www.pornhub.com") {
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
selivan / 1501248133318.log
Last active Jul 28, 2017
dbeaver crash log
View 1501248133318.log
!SESSION 2017-07-28 16:22:13.162 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0_131
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 org.eclipse.compare 4 0 2017-07-28 16:22:13.734
!MESSAGE FrameworkEvent ERROR
!STACK 0
@selivan
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/nginx.pid --modules-path=/usr/lib/nginx/modules
--http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi
@selivan
selivan / nginx.conf
Last active Apr 7, 2017
nginx.conf for naxsi/issues/364
View nginx.conf
user www-data;
pid /var/run/nginx.pid;
events {
}
http {
include /etc/nginx/naxsi/core.rules;
access_log /var/log/nginx/access.log combined;
View error.log
2016-11-15T13:21:26.102493Z 0 [Note] InnoDB: Buffer pool(s) load completed at 161115 16:21:26
13:26:06 UTC - mysqld got signal 6 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
Attempting to collect some information that could help diagnose the problem.
As this is a crash and something is definitely wrong, the information
collection process might fail.
Please help us make Percona XtraDB Cluster better by reporting any
bugs at https://bugs.launchpad.net/percona-xtradb-cluster
@selivan
selivan / my.ini
Last active Feb 11, 2018
my.ini for PXC with audit plugin
View my.ini
[mysql]
auto-rehash
prompt="(\u@\h) [\d]>\_"
[client]
port=3306
socket=/var/run/mysqld/mysqld.sock
[mysqld]
; #
You can’t perform that action at this time.