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
php artisan make:migration alter_braintree_to_subscriptions --table=subscriptions | |
php artisan make:migration add_stripe_id_to_users --table=users |
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
https://myaccount.google.com/lesssecureapps | |
https://accounts.google.com/b/0/DisplayUnlockCaptcha |
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
module.exports.generatePdf = async ()=>{ | |
async function Html() { | |
try { | |
const data = { | |
name: 'Faizan' | |
} |
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
lsof -Pi | grep LISTEN |
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
# Current branch - Determine current git branch, store in $currentbranch, and exit if not on a branch | |
if ! currentbranch=$(git symbolic-ref --short -q HEAD) | |
then | |
echo We are not currently on a branch. | |
exit 1 | |
fi | |
# Uncommited Changes - Exit script if there uncommited changes | |
if ! git diff-index --quiet HEAD --; then | |
echo "There are uncommited changes on this repository." |
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
tar -xvzf LibreOffice_6.2.5_Linux_x86_deb.tar.gz | |
cd LibreOffice_6.2.5_Linux_x86_deb/DEBS/ | |
dpkg -i *.deb |
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
$(document).ready(function() { | |
if (location.hash) { | |
$("a[href='" + location.hash + "']").tab("show"); | |
} | |
$(document.body).on("click", "a[data-toggle='tab']", function(event) { | |
location.hash = this.getAttribute("href"); | |
}); | |
}); | |
$(window).on("popstate", function() { | |
var anchor = location.hash || $("a[data-toggle='tab']").first().attr("href"); |
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
https://linuxscriptshub.com/uninstall-completely-remove-mysql-ubuntu-16-04/ |
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
https://askubuntu.com/questions/634082/how-to-install-android-studio-on-ubuntu |
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
sudo apt-get update | |
sudo apt-get install apache2 | |
sudo a2enmod headers proxy_http xml2enc proxy ssl proxy_wstunnel rewrite | |
Note: rewrite // this mode is to enable htaccess | |
for .htaccess to work enabled mode rewrite | |
sudo nano /etc/apache2/apache2.conf |