Skip to content

Instantly share code, notes, and snippets.

💭
Mostly harmless

Phil Cryer philcryer

💭
Mostly harmless
Block or report user

Report or block philcryer

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@philcryer
philcryer / mogwai.txt
Last active Apr 9, 2019
My workup of an old MySpace-era music related questionnaire. Thanks Erin!
View mogwai.txt
1. Choose a band/artist that nobody else has chosen yet: MOGWAI
2. Answer ONLY using titles of their songs.
3. Are you male or female: Simon Ferocious
4. Describe yourself: I Am Not Batman
5. How do some people feel about you: Friend of the Night
@philcryer
philcryer / install-tidalcycles.sh
Last active Mar 31, 2019
Install [Titdalcycles](https://tidalcycles.org/) (and required components, Supercollider, sc3-plugins, vim-tidal, extra-samples, from source) on Debian Linux-based distros (Debian, Ubuntu, Mint, etc) including options to run the server headless.
View install-tidalcycles.sh
#!/usr/bin/env bash
set -e
echo ">>> Starting..."
rm -rf /tmp/sc3-plugins /tmp/supercollider/ tc/ ~/.vim/vim-tidal
if [ ! -d "tc" ]; then
mkdir tc;
fi
cd tc
@philcryer
philcryer / Makefile
Created Jan 23, 2019
Makefile boilerplate example
View Makefile
all: say_hello generate
say_hello:
@echo "Hello World"
generate:
@echo "Creating empty text files..."
touch file-{1..10}.txt
clean:
@philcryer
philcryer / tower-job
Last active Jan 18, 2019
tower-job: run an Ansible Tower job via the command-line, and get all the output you would from the Tower console.
View tower-job
#!/bin/bash
# tower-job
# https://gist.github.com/philcryer/fdce90d0b06517a49ff2fdba41b579df
# Variables
tower_template_id=574
# Directions
#
@philcryer
philcryer / magic-trump-ball
Created Oct 10, 2018
An idea for a Slackbot to reply to yes/no questions with random trump quotes, in a manner that the original Magic 8-Ball toy did.
View magic-trump-ball
# Magic Trump Ball
An idea for a Slackbot to reply to yes/no questions with random trump quotes, in a manner that the original Magic-8 Ball toy did.
## Answers
### Affirmative (10 in the original)
* “I’d rather not say. But the answer is yes."
* "Yeah, I guess so."
@philcryer
philcryer / ssl_cipher_test.sh
Created Jun 25, 2018
Quickly query a domain's SSL configuration and describe what SSL Ciphers it accepts.
View ssl_cipher_test.sh
#!/bin/bash
if [ $# -eq 0 ]
then
echo "No fqdn given to check, try again (ie- $0 yahoo.com)"
exit 1
fi
for v in ssl2 ssl3 tls1 tls1_1 tls1_2; do
for c in $(openssl ciphers 'ALL:eNULL' | tr ':' ' '); do
@philcryer
philcryer / index.html
Created Jun 15, 2018
A simple, single page html site, with black background and centered text. Made from found objects, public domain license.
View index.html
<!DOCTYPE html>
<html>
<head>
<!-- Meta and title -->
<meta charset="utf-8">
<title>Your Name</title>
<meta name="author" content="Your Name">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="The description for this page">
<meta property="og:url" content="http://link-to-something-you-want-to-share" />
@philcryer
philcryer / nexus-iq.conf
Last active Jan 19, 2018
An SSL enabled NGINX config to proxy Nexus-IQ
View nexus-iq.conf
# An SSL enabled NGINX config to proxy Nexus-IQ
# https://gist.github.com/philcryer/19bc9879a626983eb42159be2f238445
server {
listen *:80;
server_name nexus-iq-server;
return 301 https://$server_name$request_uri;
}
server {
@philcryer
philcryer / macOS-dev-bootstrap
Created Oct 12, 2017
An attempt to automate the bootstrapping of a macOS based developer machine.
View macOS-dev-bootstrap
#!/usr/bin/env bash
# bootstrap macOS 10.xx with development tools:
# Xcode commandline-tools
# brew
# brew-cask
# ansible
# vagrant
# virtualbox
# docker
@philcryer
philcryer / installer_base.sh
Created Jun 7, 2017
Sample bash script to build an installer with
View installer_base.sh
#!/usr/bin/env bash
# PiVPN: Trivial OpenVPN setup and configuration
# Easiest setup and mangement of OpenVPN on Raspberry Pi
# http://pivpn.io
# Heavily adapted from the pi-hole.net project and...
# https://github.com/StarshipEngineer/OpenVPN-Setup/
#
# Install with this command (from your Pi):
#
# curl -L https://install.pivpn.io | bash
You can’t perform that action at this time.