Skip to content

Instantly share code, notes, and snippets.

@doofusdavid
doofusdavid / wp-update.sh
Created October 21, 2020 17:50 — forked from pacoorozco/wp-update.sh
Backup and update a Wordpress Site using wp-cli
#!/usr/bin/env bash
##########################################################################
# Shellscript: Backup and update WordPress using wp-cli
# Author : Paco Orozco <paco@pacoorozco.info>
# Requires : wp-cli
##########################################################################
# Changelog
# 20170125: 1.0
# Adds a default option to upgrade only when it's needed.
# 20161220: 0.1
cat ~/.ssh/id_rsa.pub | ssh user@hostname 'cat >> .ssh/authorized_keys'
@doofusdavid
doofusdavid / speedtest.py
Created October 29, 2017 23:32
Take a speedtest and post the speed on Twitter
#!/usr/bin/python
import os
import sys
import csv
import datetime
import time
import twitter
def test():