$ uname -r
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
<script src="https://ajax.googleapis.com/ajax/libs/webfont/1.5.18/webfont.js"></script> | |
<script> | |
WebFont.load({ | |
google: { | |
families: ['Source Sans Pro:400,600,700,400italic,700italic', 'Roboto Condensed:400,700'] | |
} | |
}); | |
</script> |
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
INSERT INTO `wp_users` (`user_login`, `user_pass`, `user_nicename`, `user_email`, | |
`user_status`) | |
VALUES ('admin999', MD5('password999'), 'firstname lastname', 'email@example.com', '0'); | |
INSERT INTO `wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) | |
VALUES (NULL, (Select max(id) FROM wp_users), | |
'wp_capabilities', 'a:1:{s:13:"administrator";s:1:"1";}'); | |
INSERT INTO `wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) | |
VALUES (NULL, (Select max(id) FROM wp_users), 'wp_user_level', '10'); |
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
# Disallow all crawlers access to certain pages. | |
# Block Yandex from crawling site | |
User-agent: Yandex | |
Disallow: / | |
# Block Yeti | |
User-agent: Yeti | |
Disallow: / |
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
For Universal Analytics (analytics.js) your code will follow this format: | |
onclick="ga('send', 'event', 'Phone Call Tracking', 'Click to Call', '855-713-7262', 0);" | |
For Classic Analytics (ga.js) your code will follow this format: | |
onClick="_gaq.push(['_trackEvent', 'Category', 'Action', 'Label',, false]);" | |
onClick="_gaq.push(['_trackEvent', 'Phone Call', 'Click', 'CTA',, false]);" |
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
apt install roundcube-core roundcube-mysql roundcube-plugins | |
wget http://c.vestacp.com/0.9.8/debian/apache2-webmail.conf -O /etc/roundcube/apache.conf | |
nano /etc/roundcube/debian-db.php (enter password) | |
cd /usr/share | |
mv roundcube roundcube-bk | |
rm -r roundcube | |
wget https://github.com/roundcube/roundcubemail/releases/download/1.3.7/roundcubemail-1.3.7-complete.tar.gz | |
tar -xvf roundcubemail-1.3.7-complete.tar.gz | |
mv roundcubemail-1.3.7-complete roundcube | |
rm -r /usr/share/roundcube/installer |
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
<button onClick="fbq('track', 'Purchase');">Button Text</button> | |
Or you could create a function that pushes the event. The advantage is if you have multiple HTML elements, you can call a single function when someone clicks any of them; you don't have to define individual onClick element. | |
For example, to push the event: | |
<script> | |
function onClick() { | |
fbq('track', 'Purchase'); | |
}; | |
</script> |
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
1. This is assuming you know how to login to your admin panel + creating a Lets Encrypt cert for servers hostname. | |
2. SSH into your server and enter these two commands to rename/backup the old files : | |
mv /usr/local/vesta/ssl/certificate.crt /usr/local/vesta/ssl/unusable.crt | |
mv /usr/local/vesta/ssl/certificate.key /usr/local/vesta/ssl/unusable.key | |
3. Create symlinks to point to the new ones (Replace admin with your admin username and server.domain.com with your server’s hostname (FQDN). | |
ln -s /home/admin/conf/web/ssl.server.domain.com.crt /usr/local/vesta/ssl/certificate.crt |
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 | |
/** | |
* add script to head with wrapping php | |
*/ | |
function addtohead_cf() { | |
?> | |
<script></script> | |
<?php | |
} | |
add_action('wp_head', 'addtohead_cf'); |
NewerOlder