cd ; cd Downloads; sudo ./install.sh
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
cd /tmp | |
curl -O https://wordpress.org/latest.tar.gz | |
tar xzvf latest.tar.gz | |
touch /tmp/wordpress/.htaccess | |
cp /tmp/wordpress/wp-config-sample.php /tmp/wordpress/wp-config.php | |
cp -a /tmp/wordpress/. /var/www/html/wordpress | |
chown -R www-data:www-data /var/www/html/wordpress | |
find /var/www/html/wordpress/ -type d -exec chmod 750 {} \; | |
find /var/www/html/wordpress/ -type f -exec chmod 640 {} \; | |
vi /var/www/html/wordpress/wp-config.php |
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
mysql -u root -p | |
CREATE DATABASE wordpress DEFAULT CHARACTER SET utf8; | |
CREATE USER 'wordpressuser'@'localhost' IDENTIFIED BY 'miapassword'; | |
GRANT ALL PRIVILEGES ON wordpress.* TO 'wordpressuser'@'localhost'; | |
FLUSH PRIVILEGES; |
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 | |
/** | |
* Plugin Name: Social Buttons | |
* Plugin URI: https://www.sebadima.com | |
* Description: A simple plugin to share a post on socials networks. | |
* Version: 1.3a | |
* Author: Sebastiano Dimartina | |
* Author URI: https://www.sebadima.com | |
*/ |
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
.facebook { | |
display: inline-block; | |
text-align: center; | |
vertical-align: middle; | |
padding: 12px 24px; | |
border: 1px solid lightgray; | |
border-radius: 8px; | |
background: #75d8ff; | |
background: -webkit-gradient(linear, left top, left bottom, from(#75d8ff), to(#4784a9)); | |
background: -moz-linear-gradient(top, #75d8ff, #4784a9); |
cd ; cd Downloads ; sudo ./install.sh
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
const int PinEchoAnteriore = 7; | |
const int PinTriggerAnteriore = 6; | |
const int PinEchoSinistra = 11; | |
const int PinTriggerSinistra = 10; | |
const int PinEchoDestra = 9; | |
const int PinTriggerDestro = 8; | |
const int motorinoL1 = 2; | |
const int motorinoL2 = 3; | |
const int motorinoR1 = 4; |
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
const int PinEchoAnteriore = 7; | |
const int PinTriggerAnteriore = 6; | |
const int PinEchoSinistra = 11; | |
const int PinTriggerSinistra = 10; | |
const int PinEchoDestra = 9; | |
const int PinTriggerDestro = 8; | |
const int motorinoL1 = 2; | |
const int motorinoL2 = 3; | |
const int motorinoR1 = 4; | |
const int motorinoR2 = 5; |
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
Arduino Nano R3 1 | |
DC motor (generic) 4 | |
Ultrasonic Sensor - HC-SR04 3 | |
Breadboard 1 | |
Batteria USB da 3.000 mAh 1 | |
Telaio Coretec Tiny 4WD Robot 1 | |
L9110 Dual Channel motor driver 2 | |
TOTALE circa € 35⁄40 |
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
/* | |
* | |
Trasmissione : PinTrasmissione Pin 11 | |
Ricezione : PinRicezione Pin 12 | |
VCC : +5VDC | |
GND : GND | |
*/ | |
int PinTrasmissione = 11; | |
int PinRicezione = 12; |
OlderNewer