Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Mostly harmless

Phil Cryer philcryer

💭
Mostly harmless
View GitHub Profile
View 7albums80s.md

#7albums80s poll

Details and rules

Richard Shaw @RichardS7370

Hi All, just a quick tweet in regards to #7albums80s poll.It’s brilliant seeing so much interest and I’m loving seeing the enthusiasm and variety of suggestions. Here’s the poll rules for anyone new to this:-

  1. I’ll send a tweet on Friday at 7pm (UK) to start the poll.
  2. Please tweet your final 7 picks back to that one so I can pick up your votes (I don’t want people’s picks to be missed)
@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
You can’t perform that action at this time.