This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
currdir=$(cd $(dirname $0) ; pwd) | |
#default softdir | |
softdir=${currdir}/soft | |
[ -d ${softdir} ] || mkdir -p ${softdir} | |
packages=" | |
#list all soft name and source file's URL address. | |
#url filename |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Boot - | |
/proc/last_kmsg | |
/sys/fs/pstore/console-ramoops | |
AIO_Logcat_Manager_v1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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" ); |