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
Im using MacOS Catalina. and beta version of Sequel Pro | |
// | |
Was getting error MySQL said: Authentication plugin 'caching_sha2_password | |
to fix this I reset the password on mysql and it seemed to do the trick | |
mysql -u root -p | |
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '[PASSWORD]'; where [PASSWORD] is a password of your choosing. |
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
Issue with Mysql now makign passwords sha2 you need to fix by running these to commands | |
https://laracasts.com/discuss/channels/laravel/caching-sha2-password-error-when-running-php-artisan-migrate | |
mysql -uroot -p | |
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY ''; |
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
## Uninstall process | |
#remove valet | |
rm -rf ~/.valet | |
rm ~/usr/local/bin/valet | |
# change the permisions on all brew files | |
sudo chown -R $(whoami) $(brew --prefix)/* | |
# now uninstall all brew packages |
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
/** | |
* Imperavi Redactor Plugin for Embedding Tweets | |
* for version >= 9.1 | |
* | |
* @author Ilya Chekalskiy <[email protected]> | |
* @version 0.2.2 | |
*/ | |
if (typeof RedactorPlugins === 'undefined') var RedactorPlugins = {}; | |
RedactorPlugins.tweets = { |
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 | |
// pass a url | |
function getStuff($url){ | |
// go get the content from that url | |
// then convert the content to a php object | |
return json_decode(file_get_contents($url)); | |
} | |
// get the person data |
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
int led1 = D0; | |
// the little blue LED on your board | |
int led2 = D7; | |
// when the device starts up it will run the setup function or when the device is reset | |
// void meaning it is not going to return a value | |
void setup() { | |
// We are going to tell our device that D0 and D7 (which we named led1 and led2 respectively) are going to be output |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>IOT Workshop | Particle.io LED Light turn On</title> | |
<!-- <link href="https://cdn.jsdelivr.net/npm/tailwindcss/dist/tailwind.min.css" rel="stylesheet"> --> | |
</head> | |
<body> | |
<div id="app"> |
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
# redirect to new domain | |
rewrite ^/(.*) https://some-domain.com/$1 permanent; |
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
/*! normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */ | |
/* Document | |
========================================================================== */ | |
/** | |
* 1. Correct the line height in all browsers. | |
* 2. Prevent adjustments of font size after orientation changes in iOS. | |
*/ |
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 | |
if [ "$EUID" -ne 0 ] | |
then echo "Please run as root" | |
exit | |
fi | |
apt-get install pkg-config libmagickwand-dev -y | |
cd /tmp | |
wget https://pecl.php.net/get/imagick-3.4.3.tgz | |
tar xvzf imagick-3.4.3.tgz |
NewerOlder