Skip to content

Instantly share code, notes, and snippets.

z2z

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
z2z / pi-hole.conf
Last active Jun 7, 2019
omv pihole unbound
View pi-hole.conf
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
aironet LWAP to AP mode
View cisco aironet autonomous.txt
#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
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' https://yourdomainname.com"
</IfModule>
@z2z
z2z / ubuntu_x2goclient.sh
Created Apr 10, 2019
ubuntu rdp vnc x2goclient
View ubuntu_x2goclient.sh
#!/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 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
z2z / pixelserv-tls-install-beta.sh
Created Feb 28, 2019
pixelserv-tls-install-beta.sh
View 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 Feb 28, 2019
Entware & optware on Android ref links
View Entware & optware on Android ref links.text
@z2z
z2z / install.html
Created Feb 2, 2019 — forked from RazorAnt/install.html
iOS Enterprise Deployment - for distribution with your IPA
View install.html
<html>
<head>
<title>My app install</title>
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<style>
body {
font: 13pt Helvetica, sans-serif;
}
</style>
</head>
@z2z
z2z / request_log.php
Created Jan 28, 2019
php request log
View request_log.php
<?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
z2z / android_building.sh
Last active Feb 6, 2019
Android Building commands & snippets
View android_building.sh
#https://stackoverflow.com/a/50295802/663172
repo init --depth=1 -u https://github.com/username/some_manifest.git -b pie --reference=/path/to/the/mirror/
repo sync -f --force-sync --no-clone-bundle --no-tags -j$(nproc --all)
#Beryllium
git clone --depth 1 https://github.com/ArrowOS-Devices/android_device_xiaomi_beryllium device/xiaomi/beryllium
git clone --depth 1 https://github.com/ArrowOS-Devices/android_device_xiaomi_sdm845-common device/xiaomi/sdm845-common
git clone --depth 1 https://github.com/ArrowOS-Devices/android_vendor_xiaomi_sdm845 device/vendor/xiaomi/sdm845
#notworking git clone --depth 1 https://github.com/ArrowOS-Devices/android_kernel_xiaomi_sdm845 kernel/xiaomi/sdm845
git clone --depth 1 https://github.com/TheScarastic/android_kernel_xiaomi_sdm845 kernel/xiaomi/sdm845
You can’t perform that action at this time.