Skip to content

Instantly share code, notes, and snippets.

@z2z
z2z / nfs3_firewall_allow.bat
Created April 11, 2020 19:07
need for speed 3 firewall batch
@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
z2z / need for speed 4 high stake.reg
Created April 9, 2020 14:02
need for speed 4 high stake.reg window 10 64bit ((Change the Path))
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\NfsHs.exe]
"path"="D:\\G\\nfs4hs_ip\\"
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Electronic Arts\Need For Speed High Stakes]
"InstallPath"="D:\\G\\nfs4hs_ip\\"
"Version"="4.00"
"3D Device Description"="Unknown D3D"
"3D Card"="Unknown D3D"
Source: https://www.cyberciti.biz/tips/linux-unix-bsd-nginx-webserver-security.html
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
# Instructions. Copy and paste the codes below:
cd /usr/local/src
# Download all needed archives, four(4) archives
# For PHP source
wget http://au1.php.net/get/php-5.6.21.tar.bz2/from/this/mirror -O php.tar.gz
# For curl. You can choose from any mirror site from https://curl.haxx.se/latest.cgi?curl=tar.gz&all=yes
wget https://dl.uxnr.de/mirror/curl/curl-7.48.0.tar.gz
# For libxml2
#!/bin/sh
# Some Notes About Free TDS
# #
# # TDS
# #
# SYBASE=$HOME/usr/lib
# LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$SYBASE/lib
#
@z2z
z2z / compile-redis-portable.sh
Created January 30, 2020 05:01 — forked from mitjafelicijan/compile-redis-portable.sh
Creates portable version of Redis (Linux)
#!/bin/sh
# http://download.redis.io/releases/
# Usage: sh compile-redis-portable.sh
VERSION="4.0.6"
INIT_PATH=`dirname "$0"`
INIT_PATH=`( cd "$INIT_PATH" && pwd )`
@z2z
z2z / winginx_mysql_mariadb_update
Last active August 7, 2019 07:42
winginx update mysql mariadb
Update winginx mysql 5.1 to mysql-5.6.19-winx64 or mariadb 5.X(not tested)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Stop all server and exit winginx
Open winginx folder
Rename rename mysql folder to mysql--backup
@z2z
z2z / winginx_patch.php
Last active July 11, 2019 08:58
WINGINX patch to support php 5.6 and 7.0
<?php
/*
src - https://stackoverflow.com/a/36291595
usage - php winginx_patch.php
After applying this patch you can use "php56", "php70" and "php71"
folders in the root directory of winginx.
*/
function patch($file, $offset, $old_data, $new_data) {
if (!$f = fopen($file, 'r+b')) {
die("Can not open $file");
@z2z
z2z / pi-hole.conf
Last active June 7, 2019 13:19
omv pihole unbound
server:
# If no logfile is specified, syslog is used
# logfile: "/var/log/unbound/unbound.log"
verbosity: 0
port: 53
do-ip4: yes
do-udp: yes
do-tcp: yes
@z2z
z2z / cisco aironet autonomous.txt
Created May 15, 2019 11:21
aironet LWAP to AP mode
#https://mrncciew.com/2012/10/20/lightweight-to-autonomous-conversion/
enable
#Cisco
sh ip int brief
debug capwap cli no-reload
debug capwap console cli
#tftp
archive download-sw /force-reload /overwrite tftp://10.10.10.1/c1140-k9w7-tar.124-25d.JA.tar