Skip to content

Instantly share code, notes, and snippets.

@z2z
z2z / install.html
Created February 2, 2019 10:02 — forked from RazorAnt/install.html
iOS Enterprise Deployment - for distribution with your IPA
<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 January 28, 2019 07:55
php 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
z2z / android_building.sh
Last active February 6, 2019 13:26
Android Building commands & snippets
#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
@z2z
z2z / gist:f925d6a912f6ed8c0358d9f4238e799f
Created November 29, 2018 12:36
Android troubleshooting
Boot -
/proc/last_kmsg
/sys/fs/pstore/console-ramoops
AIO_Logcat_Manager_v1.0
@z2z
z2z / Compile apache 2.4 + php from source
Last active November 3, 2021 14:58 — forked from algotrader-dotcom/Compile apache 2.4 + php from source
Compile apache 2.4 + php from source
1. Requirements
yum install pcre*
yum install libxml*
yum install gdbm-devel
2. Download packages
# http://mirrors.wuchna.com/apachemirror//apr/apr-1.6.5.tar.bz2
# http://mirrors.wuchna.com/apachemirror//apr/apr-util-1.6.1.tar.bz2
@z2z
z2z / gist:3681123a11b14afb8f277ea809b375c3
Created November 28, 2018 07:21 — forked from sheikhwaqas/gist:5577119
Install Apache / MySQL & PHP on a freshly created Red Hat Enterprise Linux Amazon EC2 Instance
# Login to your Amazon EC2 Instance via SSH.
# If you are logged in as root, you don't need to use the sudo command in the commands below.
# Update the current packages installed on the system
sudo yum upgrade
# Install the required packages before installing Apache / MySQL and PHP
sudo yum install gcc gcc-c++ autoconf automake pcre-devel \
libxml2-devel bzip2-devel libcurl-devel freetype-devel \
openldap-clients cyrus-sasl-devel openldap-devel \
@z2z
z2z / Android Record Cast screen to Computer.txt
Last active October 31, 2018 07:19
Android Record Cast screen to Computer
Android Record / Cast screen to Computer
Cast to Computer
https://github.com/Genymobile/scrcpy
Screenshot:
adb exec-out screencap -p > file.png
Video recording 1 hour:
@z2z
z2z / gen_ssl_ssrs_pbirs.ps1
Created April 19, 2018 11:01
Generate Self Signed certificate for SSRS / PowerBI RS
New-SelfSignedCertificate -CertStoreLocation cert:\LocalMachine\my -dnsname $env:COMPUTERNAME
$Thumbprint = (Get-ChildItem -Path Cert:\LocalMachine\My | Where-Object {$_.Subject -match "$env:COMPUTERNAME"}).Thumbprint;
$pwd=ConvertTo-SecureString "p@ssw0rd" -asplainText -force
$file="C:\$env:COMPUTERNAME.pfx"
Export-PFXCertificate -cert cert:\LocalMachine\My\$Thumbprint -file $file -Password $pwd
Import-PfxCertificate -FilePath $file cert:\LocalMachine\root -Password $pwd
Remove-Item $file
@z2z
z2z / googlePlay.sh
Created February 16, 2018 13:58 — forked from chipoglesby/googlePlay.sh
Upload your Google Play Installation Reports with a simple shell script Raw
#!/bin/bash
# Global variables for shell script
shopt -s nocaseglob
shopt -s nullglob
shopt -s nocasematch
yearMonth=$(date "+%Y%m" -d "1 month ago")
# On macs: yearMonth=$(date -v-1m +%Y%m)
reports=(overview carrier country device language os_version app_version tablets)
@z2z
z2z / offline.txt
Created February 12, 2018 14:54
Offline download SSMS SSDT SQL Studio
SSDT-Setup-ENU.exe /layout d:\vs2017ssdt /log ssdt-setup-log.txt
SSMS-Setup-ENU.exe /layout d:\SSMS-2017 /log ssms-setup-log.txt