Skip to content

Instantly share code, notes, and snippets.

# 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 / 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
@z2z
z2z / .htaccess
Created May 3, 2019 08:10
Apache WP Security Headers
# Extra Security Headers
<IfModule mod_headers.c>
Header unset Server
Header set X-XSS-Protection "1; mode=block"
# Header always append X-Frame-Options SAMEORIGIN
Header set Strict-Transport-Security "max-age=10886400; includeSubDomains; preload"
Header set X-Content-Type-Options nosniff
Header set Referrer-Policy: no-referrer-when-downgrade
Header always set Feature-Policy "microphone 'none'; payment 'none'; sync-xhr 'self' https://yourdomainname.com"
</IfModule>
@z2z
z2z / ubuntu_x2goclient.sh
Created April 10, 2019 13:15
ubuntu rdp vnc x2goclient
#!/bin/sh
#
# This script will set up an xfce desktop environment which can be
# accessed remotely via the x2goclient http://wiki.x2go.org/doku.php/doc:installation:x2goclient
export DEBIAN_FRONTEND=noninteractive;
apt-get update;
apt-get -y install software-properties-common xubuntu-desktop;
add-apt-repository -y ppa:x2go/stable;
apt-get update;
apt-get -y install x2goserver x2goserver-xsession;
@z2z
z2z / download_all_storageac.ps1
Created March 12, 2019 15:56
Download containers from Azure storage account
$StorageContext = New-AzureStorageContext -StorageAccountName "xxx" -StorageAccountKey "yyy"
$containers = Get-AzureStorageContainer -Context $StorageContext
foreach ($c in $containers) {
"Transfer container " + $c.Name
$cmd = "AzCopy /Source:" + $c.CloudBlobContainer.Uri.AbsoluteUri + " /Dest:C:\myblob\" + $c.Name + " /SourceKey:yyy /S"
Write-Output $cmd
Invoke-Expression $cmd
}
@z2z
z2z / pixelserv-tls-install-beta.sh
Created February 28, 2019 11:40
pixelserv-tls-install-beta.sh
#!/usr/bin/env sh
_scriptver=v0.1.7
# DESCRIPTION
#
# A script to automate installation of the latest pixelserv-tls test version
#
# (c) 2017-19 kvic (aka kvic-z@github)
#
@z2z
z2z / Entware & optware on Android ref links.text
Created February 28, 2019 10:58
Entware & optware on Android ref links