Skip to content

Instantly share code, notes, and snippets.

View imagewall.json
"info": {
"index": 0,
"photos": [
"engineInfo": {
"rawUrl": ""
"thumbnail": "Bette Flores"
z2z / nginx.service
Created Oct 27, 2020 — forked from bes1002t/nginx.service
Start Nginx as non root user with systemd
View nginx.service
# Stop dance for nginx
# =======================
# ExecStop sends SIGSTOP (graceful stop) to the nginx process.
# If, after 5s (--retry QUIT/5) nginx is still running, systemd takes control
# and sends SIGTERM (fast shutdown) to the main process.
# After another 5s (TimeoutStopSec=5), and if nginx is alive, systemd sends
# SIGKILL to all the remaining processes in the process group (KillMode=mixed).
# nginx signals reference doc:
z2z / add business date exclude.php
Created Jul 2, 2020
business date add exclude holiday php
View add business date exclude.php
# $date must be in YYYY-MM-DD format
# You can pass in either an array of holidays in YYYY-MM-DD format
function addBusinessDays($date,$numDays=1,$holidays='') {
$addDay = 0;
while ($numDays--) {
z2z / centos7-hyper-v.ks
Created May 2, 2020
centos 7 bare minimal - hyper-v
View centos7-hyper-v.ks
#### Here is my kickstart script ####
lang en_US.UTF-8
keyboard us
z2z / nfs3_firewall_allow.bat
Created Apr 11, 2020
need for speed 3 firewall batch
View nfs3_firewall_allow.bat
@echo off
:: BatchGotAdmin
REM --> Check for permissions
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
REM --> If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' (
echo Requesting administrative privileges...
z2z / need for speed 4 high stake.reg
Created Apr 9, 2020
need for speed 4 high stake.reg window 10 64bit ((Change the Path))
View need for speed 4 high stake.reg
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\NfsHs.exe]
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Electronic Arts\Need For Speed High Stakes]
"3D Device Description"="Unknown D3D"
"3D Card"="Unknown D3D"
View nginx-security
This page collects hints how to improve the security of nginx web servers running on Linux or UNIX-like operating systems.
Default Config Files and Nginx Port
/usr/local/nginx/conf/ or /etc/nginx/– The nginx server configuration directory and /usr/local/nginx/conf/nginx.conf is main configuration file.
/usr/local/nginx/html/ or /var/www/html– The default document location.
/usr/local/nginx/logs/ or /var/log/nginx – The default log file location.
Nginx HTTP default port : TCP 80
View php_with_pthreads_installation_on_linux.txt
# Instructions. Copy and paste the codes below:
cd /usr/local/src
# Download all needed archives, four(4) archives
# For PHP source
wget -O php.tar.gz
# For curl. You can choose from any mirror site from
# For libxml2
View phpinstall.bash
# Some Notes About Free TDS
# #
# # TDS
# #
# SYBASE=$HOME/usr/lib
z2z /
Created Jan 30, 2020 — forked from mitjafelicijan/
Creates portable version of Redis (Linux)
# Usage: sh
INIT_PATH=`dirname "$0"`
INIT_PATH=`( cd "$INIT_PATH" && pwd )`