Using any of this may void your warranty!
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
// remove square brackets and 8 of any characters in between (good for torrents) | |
\Q[\E.{8}\Q]\E |
Ever wanted to delete all your likes/favorites from Twitter but only found broken/expensive tools? You are in the right place.
- Go to: https://twitter.com/{username}/likes
- Open the console and run the following JavaScript code:
setInterval(() => {
for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
d.click()
}
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
var x = document.querySelectorAll("a"); | |
var myarray = [] | |
for (var i=0; i<x.length; i++){ | |
var nametext = x[i].textContent; | |
var cleantext = nametext.replace(/\s+/g, ' ').trim(); | |
var cleanlink = x[i].href; | |
myarray.push([cleantext,cleanlink]); | |
}; | |
function make_table() { | |
var table = '<table><thead><th>Name</th><th>Links</th></thead><tbody>'; |
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
- [ ] Mercury | |
- [x] Venus | |
- [x] Earth | |
- [x] Moon | |
- [x] Mars | |
- [ ] Deimos | |
- [ ] Phobos | |
<details> | |
<summary>Toggle content display</summary> |
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
yum -y install libaio | |
yum -y install numactl | |
# Note, may need to change version on next two lines, see https://dev.mysql.com/downloads/repo/yum/ | |
wget http://dev.mysql.com/get/mysql57-community-release-el6-11.noarch.rpm | |
yum -y localinstall mysql57-community-release-el6-11.noarch.rpm | |
yum -y install mysql-community-server | |
service mysqld start | |
grep 'temporary password' /var/log/mysqld.log |
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 | |
/******************************************************************************* | |
* | |
* Enable ALO EasyMail Subscription checkboxes in Contact Form 7 forms - by ALO | |
* | |
* Step 1. Copy this file (alo-easymail_cf7-integration.php) into the | |
* /wp-content/mu-plugins/ directory (create if it does not exist) or | |
* copy the contents of this file into a theme's functions.php file. | |
* |