Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View jeffmcneill's full-sized avatar

Jeff McNeill jeffmcneill

View GitHub Profile
@jeffmcneill
jeffmcneill / alo-easymail_cf7-integration.php
Last active February 22, 2019 16:38
ALO EasyMail - Contact Form 7 Integration PHP file
<?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.
*
@jeffmcneill
jeffmcneill / install-mysql-5.7-on-amazon-linux-ami
Last active July 13, 2017 11:20
July 2017 valid rhel 6.x version for mysql 5.7 community edition - good for Amazon Linux AMI
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
- [ ] Mercury
- [x] Venus
- [x] Earth
- [x] Moon
- [x] Mars
- [ ] Deimos
- [ ] Phobos
<details>
<summary>Toggle content display</summary>
@jeffmcneill
jeffmcneill / gist:a5c87f744998fc1a308b982f83cb3a09
Created January 27, 2022 02:21
Extract all URLs on a web page using Chrome Console (F12)
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>';
@jeffmcneill
jeffmcneill / delete-likes-from-twitter.md
Last active September 8, 2022 15:20 — forked from aymericbeaumet/delete-likes-from-twitter.md
[Recipe] Delete all your likes/favorites from Twitter

Ever wanted to delete all your likes/favorites from Twitter but only found broken/expensive tools? You are in the right place.

  1. Go to: https://twitter.com/{username}/likes
  2. Open the console and run the following JavaScript code:
setInterval(() => {
for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
d.click()
}