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 maximumTries= 200, runCount=0; | |
var timer= setInterval(e=>{ | |
if(maximumTries==maximumTries){ | |
clearInterval(timer) | |
}else{ | |
runCount++ | |
}; | |
document.querySelectorAll('.search-result__actions--primary.button-secondary-medium.m5').forEach(btn=> { | |
if(btn.innerHTML.indexOf('Connect')==-1){ |
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
#!/usr/bin/env python | |
# encoding: utf-8 | |
""" | |
python 2.x | |
Scrape members from a Twitter list and then get their bios, locations, etc. | |
Based on | |
https://github.com/lamthuyvo/social-media-data-scripts/blob/master/scripts/twitter_bio_info_compiler.py | |
and | |
https://github.com/kylemanna/social-utils/blob/master/twitter/list-follow.py |
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 | |
/** | |
* | |
* Functions and definitons | |
* This is a child theme of Twentysixteen theme | |
* V1.0 - AJAX Filter posts | |
* Largely inspired by Vlado Bosnjak work that you can find here: | |
* https://www.bobz.co/filter-wordpress-posts-by-custom-taxonomy-term-with-ajax-and-pagination/ | |
* | |
* |
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 | |
# For this script to work, save it somewhere in the executable path, like /usr/local/sbin/backup.sh | |
# make it executable: chmod +x /usr/local/sbin/backup.sh | |
# then add it to cron: crontab -e | |
# and add the line below, which will run backup 3am each day, then upload to Dropbox | |
# 0 3 * * * /usr/local/sbin/backup.sh > /dev/null 2>&1 | |
# You also need WP CLI installed: http://wp-cli.org/ | |