Skip to content

Instantly share code, notes, and snippets.

dh binary --with systemd --with apache2 --parallel
dh_testdir -O--parallel -Nphp7.0-cli -Nphp7.0-excel -Nphp7.0-readline
debian/rules override_dh_auto_build-arch
make[1]: Entering directory `/root/php7.0-7.0.10'
for target in ext apache2 phpdbg embed fpm cgi cli; do \
dh_auto_build --builddirectory ${target}-build --parallel; \
done
cd ext-build
make -j1
make[2]: Entering directory `/root/php7.0-7.0.10/ext-build'
@selivan
selivan / install_phpexcel_php7.sh
Created September 3, 2016 14:59 — forked from belgattitude/install_phpexcel_php7.sh
Install libxl, php_excel extension on PHP7 (ondrej/ppa)
#!/bin/bash
#
# ilia/php_excel extension example install script for PHP7+
#
# usage:
# > ./install_phpexcel_php7.sh
# > (optionally) sudo service php7.0-fpm restart)
#
# requirements:
# - Ubuntu 64bits (trusty/xenial)
@selivan
selivan / my.ini
Last active February 11, 2018 12:32
my.ini for PXC with audit plugin
[mysql]
auto-rehash
prompt="(\u@\h) [\d]>\_"
[client]
port=3306
socket=/var/run/mysqld/mysqld.sock
[mysqld]
; #
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 / nginx.conf
Last active April 7, 2017 18:16
nginx.conf for naxsi/issues/364
user www-data;
pid /var/run/nginx.pid;
events {
}
http {
include /etc/nginx/naxsi/core.rules;
access_log /var/log/nginx/access.log combined;
@selivan
selivan / nginx -V
Last active April 7, 2017 18:04
nginx build arguments for naxsi/issues/364
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 / 1501248133318.log
Last active July 28, 2017 13:29
dbeaver crash 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 / pornhub-noage.txt
Last active March 6, 2018 09:38
Userstyle to remove pornhub age verification
@-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 / gist:926479e48c799cb4b7a37eb741af6c12
Last active January 19, 2018 17:36
Files in /dev used by skypeforlinux with firejail 0.9.52
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)
# 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