Skip to content

Instantly share code, notes, and snippets.

@aursu
aursu / information-ref.note.md
Last active January 12, 2018 12:40
Different URLs on different topics (Docker, Jenkins, ZooKeeper etc)
@aursu
aursu / http2.note.txt
Created January 15, 2018 16:03
HTTP/2
https://cloudplatform.googleblog.com/2015/10/Full-Speed-Ahead-with-HTTP2-on-Google-Cloud-Platform.html
@aursu
aursu / var-lib-nginx-tmp.mount
Created January 31, 2018 14:32
/usr/lib/systemd/system/var-lib-nginx-tmp.mount for in -memory nginx cache on CentOS 7
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
[Unit]
Description=Temporary Directory for nginx
ConditionPathIsMountPoint=!/var/lib/nginx/tmp
@aursu
aursu / setfacl.note.txt
Created February 2, 2018 11:15
effective rights mask in action
[root@localhost ~]# getfacl /var/log/nginx
getfacl: Removing leading '/' from absolute path names
# file: var/log/nginx
# owner: nginx
# group: nginx
user::rwx
user:dev2:r-x #effective:---
user:dev1:r-x #effective:---
group::---
mask::---
@aursu
aursu / nodejs-docker.note.md
Last active February 21, 2018 13:18
Node.js Dockerizing
@aursu
aursu / rh-networking.note.txt
Created February 22, 2018 09:17
RedHat Networking
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/s2-networkscripts-interfaces-alias
@aursu
aursu / db-compat.php
Created April 23, 2018 12:59
MySQL to MySQLi compatibility wrapper
<?php
function mysql_escape_string($str)
{
return str_replace(["\n", "\r", "\x1a"], ["\\n", "\\r", "\\Z"], addslashes($str));
}
function mysql_query($query, $link){
return mysqli_query($link, $query);
}
function mysql_fetch_row($result){return mysqli_fetch_row($result);}
@aursu
aursu / docker-ipv6.md
Created May 22, 2018 08:39
IPv6 with Docker
@aursu
aursu / push-https.md
Created May 22, 2018 12:33
Push over HTTPS with 2FA