Skip to content

Instantly share code, notes, and snippets.

Probably writing.

Colin Devroe cdevroe

Probably writing.
View GitHub Profile
cdevroe / docker-compose.yml
Created Mar 30, 2021
Simple Apache server with Docker Compose
View docker-compose.yml
version: '3.3'
image: httpd:2.4
- /YOUR/LOCAL/FILE/SYSTEM/DIRECTORY:/usr/local/apache2/htdocs/
- 8080:80
restart: always
cdevroe / docker-compose.yml
Created Mar 4, 2021
Docker Compose for WordPress with theme mapped (example for my blog)
View docker-compose.yml
version: '3.3'
image: mysql:5.7
- db_data:/var/lib/mysql
restart: always
MYSQL_ROOT_PASSWORD: somewordpress
cdevroe / DailyNote.applescript
Created Nov 19, 2020
New Daily note in Simplenote via AppleScript
View DailyNote.applescript
-- create a string from the current date
set todaysDate to (current date) as string
-- open simplenote and make it the active window
tell application "Simplenote"
end tell
-- use system events to
-- "type" CMD+N
cdevroe / gist:bce6d8ac8b20751de603179a1f8c8ff2
Created Oct 2, 2020
Photographers exhibited by John Szarkowski at MoMA
View gist:bce6d8ac8b20751de603179a1f8c8ff2
- Jacques Henri Lartique
- Andre Kertesz
- Elliot Erwitt
- Dorothea Lange
- Joel Meyerowitz
- Brassai
- Bill Brandt
- Atget
- Ej Bellocq
- Berenice Abbott
cdevroe / PhotographyBlogs.opml
Last active Sep 15, 2020
An OPML file of Photography related blogs - Inspired by Jim Grey
View PhotographyBlogs.opml
<?xml version="1.0" encoding="UTF-8"?>
<!-- OPML generated by NetNewsWire -->
<opml version="1.1">
<outline text="Photography" title="Photography">
<outline text="Colin Devroe" title="Colin Devroe" description="" type="rss" version="RSS" htmlUrl="" xmlUrl=""/>
<outline text="Christopher May Fine Art Photography" title="Christopher May Fine Art Photography" description="" type="rss" version="RSS" htmlUrl="" xmlUrl=""/>
cdevroe / move_files.php
Last active Apr 13, 2020
Look at files in a directory, move them into new directories based on Date Created
View move_files.php
Created by Colin Devroe
// Help
if ( isset($argv[1]) && ($argv[1] == '-h' || $argv[1] == '-help') ) :
print 'Colin\'s Photo Backup Utility' . "\n";
cdevroe /
Last active Oct 20, 2020
YouTube pop-up Bookmarklet

YouTube Pop-up Bookmarklet

I forget where I found this originally (sorry). And I've modified it slightly over the years. But if you're on YouTube in a desktop browser and you'd like to have the video in a small pop-up window, tap this bookmarklet and it automatically creates the perfectly sized window for you.

How to install

  1. Create a new bookmark with any URL.
  2. Edit that bookmark in your browser, delete the URL that is there, and paste the code you see in the JS file into the Location field.

You're welcome / Colin

View microblog-userstyle.css
/* Add bottom border and some spacing to each post. */
.post {
border-bottom: 1px solid rgb(230, 236, 240);
margin-bottom: 20px;
/* Move avatar to left */
.post .post_avatar {
float: left;
width: 18%;
cdevroe / nepa-gulp.js
Created Jul 14, 2017
NEPA.js Gulp Demo
View nepa-gulp.js
Task: NepaJS
Does some silly things for NEPA JS
gulp.task('nepajs', function() {
var nepajsURL = '',
nepaJSDirWin = '/mnt/c/Users/tucker/Desktop/',
nepaJSDirMac = '/Users/cdevroe/Desktop/',
cdevroe / tweet-status.php
Created Jan 25, 2017
Publish posts, statuses, images, to Twitter from WordPress
View tweet-status.php
* Plugin Name: Tweet Statuses
* Description: A simple plugin that will tweet a status when published.
* Author: Colin Devroe
* Author URI:
* Version: 0.1.0
* TwitterAPIExchange is here: