Skip to content

Instantly share code, notes, and snippets.

View brianherbert's full-sized avatar
🎯
Focusing

Brian Herbert brianherbert

🎯
Focusing
View GitHub Profile
@brianherbert
brianherbert / install_v3.sh
Last active September 26, 2015 11:12
Current Ushahidi v3 install steps as of Jul 22, 2014
# Assumptions: You have vagrant and VirtuaBox installed on your machine
# Virtual Box https://www.virtualbox.org/
# Vagarant http://www.vagrantup.com/
# Get the Ushahidi Platform from GitHub and stick it in a directory
mkdir v3install
cd v3install
git clone [email protected]:ushahidi/platform.git
cd platform

Keybase proof

I hereby claim:

  • I am brianherbert on github.
  • I am brianherbert (https://keybase.io/brianherbert) on keybase.
  • I have a public key ASC8_DZ_YQMo3bEXiUeZA2kqIK9L7oniKEJ6gBLNjJxsfgo

To claim this, I am signing this object:

<?php
const SLACK_TOKEN = '';
const SLACK_CHANNEL = '#worldcup';
const SLACK_BOT_NAME = 'World Cup';
const SLACK_BOT_AVATAR = 'https://i.imgur.com/Pd0cpqE.png';
function curl_get($url) {
$curl = curl_init();
curl_setopt_array($curl, array(
@brianherbert
brianherbert / convert.sh
Last active May 14, 2019 17:05
Convert files to webp
for file in ./**/*.png ; do cwebp -q 80 "$file" -o "${file%.png}.webp"; done
for file in ./**/*.jpg ; do cwebp -q 80 "$file" -o "${file%.jpg}.webp"; done
for file in ./**/*.jpeg ; do cwebp -q 80 "$file" -o "${file%.jpeg}.webp"; done
@brianherbert
brianherbert / index.html
Created May 9, 2019 14:15
Replace broken source image with img src in picture element
<html>
<head>
<title>Picture Test</title>
</head>
<body>
<p>
<picture>
<!--[if IE 9]><video style="display: none;"><![endif]-->
@brianherbert
brianherbert / docker-destroy-all.sh
Created May 9, 2019 14:17 — forked from JeffBelback/docker-destroy-all.sh
Destroy all Docker Containers and Images
#!/bin/bash
# Stop all containers
docker stop $(docker ps -a -q)
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)