This file contains hidden or 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
composer dump-autoload -o | |
# see http://developed.be/2014/08/29/composer-dump-autoload-laravel/ |
This file contains hidden or 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
keytool -v -list -keystore .keystore | |
# taken from https://stackoverflow.com/questions/12893995/how-to-check-certificate-name-and-alias-in-keystore-files |
This file contains hidden or 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
c:\Users\[USERNAME]\AppData\Local\Android\sdk\build-tools\[VERSION]\aapt.exe l -a [FILENAME.APK] |
This file contains hidden or 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
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: |
This file contains hidden or 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
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 |
This file contains hidden or 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
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 |
This file contains hidden or 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
//see here https://github.com/andrehtissot/cordova-plugin-fcm-with-dependecy-updated |
This file contains hidden or 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
//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: |
This file contains hidden or 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
# 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 |
This file contains hidden or 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
onchange="this.checked = this.readOnly ? !this.checked : this.checked" readonly="readonly" |
OlderNewer