Skip to content

Instantly share code, notes, and snippets.

@acoyfellow
acoyfellow / Mass LinkedIn Connect (with limit)
Created May 5, 2017 11:42
Mass LinkedIn Connect (with limit)
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){
@macloo
macloo / twitter_bio_compiler_for_list.py
Last active October 20, 2022 22:27
Scrape members from a Twitter list and then get their bios, locations, etc.
#!/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
@Vagrantin
Vagrantin / Function.php
Last active April 25, 2024 09:32
Wordpress - filter post by tags using AJAX.
<?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/
*
*
@codeablehq
codeablehq / backup.sh
Last active July 3, 2017 07:07
A script that creates a backup of your WordPress site and uploads it to Dropbox
#!/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/