Skip to content

Instantly share code, notes, and snippets.

View campegg's full-sized avatar
🤔
Thinking.

Cam Pegg campegg

🤔
Thinking.
View GitHub Profile
@campegg
campegg / wordlist
Last active April 18, 2020 20:11
Source words for experiementing with javascript; (mostly) lifted from the Original set at https://magneticpoetry.com/
!
!
?
?
,
,
&
&
a
a
@campegg
campegg / mysqlsync
Last active April 17, 2020 16:48 — forked from samhernandez/mysqlsync
Sync remote mysql database to local over ssh
#!/bin/bash
# This script assumes you have ssh access to a remote server
# Both databases are backed up to sql files in the same directory
# this script is executed from.
# Usage:
# 1. Make sure this file is executable with `chmod +x mysqlsync`
# 2. Set the credentials for the variables at the top
# (Remember, no spaces around the '=' sign)
# 3. Run it from a directory where you'd like the backup files to go:
@campegg
campegg / writers.json
Last active September 20, 2019 21:16
Play data for experimenting
[
{
"name": "Mary Ann Evans (George Eliot)",
"birth": "1819-11-22",
"death": "1880-12-22",
"url": "https://en.wikipedia.org/wiki/George_Eliot"
},
{
"name": "Ann Brontë",
"birth": "1820-01-17",