Skip to content

Instantly share code, notes, and snippets.

Sergiy Mashtaler svmt

Block or report user

Report or block svmt

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
svmt / haproxy.cfg
Created May 28, 2020 — forked from arkady-emelyanov/haproxy.cfg
haproxy check: postgresql is master
View haproxy.cfg
# Sample haproxy postgresql master check
# haproxy listen: 5431
# pg, instance #1 listen: 5432 (master node)
# pg, instance #2 listen: 5433 (replica node)
# external failover, promoting replica to master in case of failure
# passwordless auth for user web
# template1 database is accessible by user web
# haproxy will pass connection to postgresql master node:
View bash_ps1_k8s dual line
# Swith K8S config
function kx() {
if [[ ! -f ~/.kube/$1 ]]; then
View nodehelloworld
apiVersion: v1
kind: Pod
app: helloworld
- name: k8s-demo
image: wardviaene/k8s-demo
View gist:bf375924bb3457e673653e1b0061161c
wmic path softwarelicensingservice get OA3xOriginalProductKey
View gist:af50c54d27896ad9e7cb6d51c86cf7da
Using dig with OpenDNS as resolver:
dig +short
Perhaps alias it in your bashrc so it's easy to remember
alias wanip='dig +short'
Responds with a plain ip address:
$ wanip
View gist:beffe00d4e26b530f4f34ec63f05f39d
PHP Extension curl.
PHP Extension dom.
PHP Extension mcrypt.
PHP Extension simplexml.
PHP Extension spl.
PHP Extension xsl.
PHP Extension intl.
PHP Extension mbstring.
PHP Extension ctype.
PHP Extension hash.
svmt / php_function_disable
Last active Oct 20, 2016
List of potentially dangerous functions
View php_function_disable
disable_functions = dl, exec, shell_exec, system, passthru, popen, pclose, proc_open, proc_nice, proc_terminate,
proc_get_status, proc_close, pfsockopen, leak, apache_child_terminate, posix_kill, posix_mkfifo,
posix_setpgid, posix_setsid, posix_setuid
Extra INFO
# Command Execution
exec - Returns last line of commands output
passthru - Passes commands output directly to the browser
system - Passes commands output directly to the browser and returns last line
You can’t perform that action at this time.