Skip to content

Instantly share code, notes, and snippets.

@bradtraversy
bradtraversy / docker_wordpress.md
Last active May 4, 2024 09:16
Docker Compose FIle For Wordpress, MySQL & phpmyadmin

Wordpress & Docker

This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command

$ docker-compose up -d

# To Tear Down
$ docker-compose down --volumes
@AveYo
AveYo / .. MediaCreationTool.bat ..md
Last active May 8, 2024 07:24
Universal MediaCreationTool wrapper for all MCT Windows 10 versions - MOVED TO github.com/AveYo/MediaCreationTool.bat
<?
/////////////////////
// slack2html
// by @levelsio
/////////////////////
//
/////////////////////
// WHAT DOES THIS DO?
/////////////////////
//
@wcaleb
wcaleb / empathy.md
Last active August 29, 2015 14:14
Draft Rubric for Empathy

3. Empathy

Look for the potential strengths and insights offered by alternative points of view on or in the past, even or especially when they conflict with your own or conventional understandings.

Empathy is an intellectual and imaginative skill that is required both when reading sources created in the past and when reading secondary sources created by other historians. Though often confused with "sympathy" or "positive feeling," empathy means understanding and entertaining even those points of view with which you disagree; it does not require or necessarily imply agreement.

A novice historian who lacks this skill tends to judge the decisions and ideas of historical actors according to his or her own present-day opinions, which are sometimes conflated in the novice's mind with "common sense" or "just the way it is." Beginners are typically not very interested in seeking out multiple perspectives on an issue; they identify the actor or historian whose perspective they most agree with, and then disco

@lelandbatey
lelandbatey / whiteboardCleaner.md
Last active April 25, 2024 02:01
Whiteboard Picture Cleaner - Shell one-liner/script to clean up and beautify photos of whiteboards!

Description

This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"

Results

@johndyer
johndyer / .htaccess
Created July 13, 2011 13:06
Google+ redirect .htaccess
#simple version (http://mysite.com/+ goes to your Google+ account)
Redirect /+ https://plus.google.com/[yourid]
Redirect /@ https://twitter.com/[twitterusername]
#powerhouse (http://mysite.com/+/about goes to your Google+ about page)
RedirectMatch ^/\+(.*)$ http://plus.google.com/[yourid]$1
RedirectMatch ^/@(.*)$ http://twitter.com/[twitterusername]$1