Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block z2z

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
z2z / pi-hole.conf
Last active Jun 7, 2019
omv pihole unbound
View pi-hole.conf
# 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 / cisco aironet autonomous.txt
Created May 15, 2019
aironet LWAP to AP mode
View cisco aironet autonomous.txt
sh ip int brief
debug capwap cli no-reload
debug capwap console cli
archive download-sw /force-reload /overwrite tftp://
z2z / .htaccess
Created May 3, 2019
Apache WP Security Headers
View .htaccess
# 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'"
z2z /
Created Apr 10, 2019
ubuntu rdp vnc x2goclient
# This script will set up an xfce desktop environment which can be
# accessed remotely via the 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 / download_all_storageac.ps1
Created Mar 12, 2019
Download containers from Azure storage account
View download_all_storageac.ps1
$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 /
Created Feb 28, 2019
#!/usr/bin/env sh
# A script to automate installation of the latest pixelserv-tls test version
# (c) 2017-19 kvic (aka kvic-z@github)
z2z / Entware & optware on Android ref links.text
Created Feb 28, 2019
Entware & optware on Android ref links
View Entware & optware on Android ref links.text
z2z / install.html
Created Feb 2, 2019 — forked from RazorAnt/install.html
iOS Enterprise Deployment - for distribution with your IPA
View install.html
<title>My app install</title>
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
body {
font: 13pt Helvetica, sans-serif;
z2z / request_log.php
Created Jan 28, 2019
php request log
View request_log.php
// Simple script to write a log of any requests(get/post) in php.
// Log is written in the same directory. request.log
error_log( print_r( $_SERVER, true ),3, dirname(__FILE__)."/request.log" );
error_log( print_r( $_REQUEST, true ),3, dirname(__FILE__)."/request.log" );
z2z /
Last active Feb 6, 2019
Android Building commands & snippets
repo init --depth=1 -u -b pie --reference=/path/to/the/mirror/
repo sync -f --force-sync --no-clone-bundle --no-tags -j$(nproc --all)
git clone --depth 1 device/xiaomi/beryllium
git clone --depth 1 device/xiaomi/sdm845-common
git clone --depth 1 device/vendor/xiaomi/sdm845
#notworking git clone --depth 1 kernel/xiaomi/sdm845
git clone --depth 1 kernel/xiaomi/sdm845
You can’t perform that action at this time.