Skip to content

Instantly share code, notes, and snippets.

View aminusia's full-sized avatar

Andi Suryono aminusia

  • Bumpp
  • Malang, Indonesia
View GitHub Profile
@aminusia
aminusia / Laravel Dump AutoLoad
Last active December 26, 2018 08:54
Regenerates the list of all classes that need to be included in the project (autoload_classmap.php).
composer dump-autoload -o
# see http://developed.be/2014/08/29/composer-dump-autoload-laravel/
@aminusia
aminusia / APK Read Keystore Aliases
Created December 27, 2018 07:46
APK Read Keystore Aliases
keytool -v -list -keystore .keystore
# taken from https://stackoverflow.com/questions/12893995/how-to-check-certificate-name-and-alias-in-keystore-files
@aminusia
aminusia / APK Read Android Manifest
Created December 27, 2018 08:04
APK Read Android Manifest
c:\Users\[USERNAME]\AppData\Local\Android\sdk\build-tools\[VERSION]\aapt.exe l -a [FILENAME.APK]
@aminusia
aminusia / Youtube video thumbnail url
Created January 2, 2019 08:42
Youtube video thumbnail url
For the default & normal quality thumbnail:
http://img.youtube.com/vi/<youtube-video-id>/default.jpg
For the high quality (HQ) thumbnail:
http://img.youtube.com/vi/<youtube-video-id>/hqdefault.jpg
There is also a medium quality thumbnail:
http://img.youtube.com/vi/<youtube-video-id>/mqdefault.jpg
For the maximum resolution thumbnail:
var obj = JSON.parse('{"' + decodeURI(window.location.href.toString().split('?')[1]).replace(/"/g, '\\"').replace(/&/g, '","').replace(/=/g,'":"') + '"}');
// see https://stackoverflow.com/questions/8648892/convert-url-parameters-to-a-javascript-object
GRANT ALL PRIVILEGES ON *.* TO 'username'@'localhost' IDENTIFIED BY 'password';
//taken from https://www.a2hosting.com/kb/developer-corner/mysql/managing-mysql-databases-and-users-from-the-command-line
@aminusia
aminusia / Cordova FCM Notification
Created February 4, 2019 16:16
Cordova FCM Notification
//see here https://github.com/andrehtissot/cordova-plugin-fcm-with-dependecy-updated
@aminusia
aminusia / imagex command
Last active April 27, 2019 15:23
Recover Windows WIM Image Using Imagex
//get standalone imagex with GetWaikTools here
//http://theoven.org/index.php?topic=287
//apply wim file to drive
//make sure the destination drive is empty
imagex /apply c:\image\factory.wim 1 D:
//in case of multiple wim file exists
//make imagex realize that there are multiple wim file exists
imagex /ref c:\image\factory*.wim /apply c:\image\factory.wim 1 D:
@aminusia
aminusia / install_le_ssl_centos8_apache.sh
Last active July 17, 2020 15:45
Lets Encrypt on Centos 8 without own redirect
# source https://www.tecmint.com/secure-apache-with-lets-encrypt-ssl-certificate-on-centos-8/
# install httpd, mod_ssl, and openssl
sudo dnf install httpd
sudo systemctl status httpd
sudo dnf install mod_ssl openssl -y
# download certbot
sudo curl -O https://dl.eff.org/certbot-auto
sudo mv certbot-auto /usr/local/bin
onchange="this.checked = this.readOnly ? !this.checked : this.checked" readonly="readonly"