Skip to content

Instantly share code, notes, and snippets.

View philcryer's full-sized avatar
💭
Mostly harmless

Phil Cryer philcryer

💭
Mostly harmless
View GitHub Profile
@philcryer
philcryer / 7albums80s.md
Last active September 4, 2020 19:40
#7albums80s

#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 April 9, 2019 01:27
My workup of an old MySpace-era music related questionnaire. Thanks Erin!
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 March 31, 2019 00:11
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.
#!/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 January 23, 2019 15:15
Makefile boilerplate example
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 January 18, 2019 03:21
tower-job: run an Ansible Tower job via the command-line, and get all the output you would from the Tower console.
#!/bin/bash
# tower-job
# https://gist.github.com/philcryer/fdce90d0b06517a49ff2fdba41b579df
# Variables
tower_template_id=574
# Directions
#
@philcryer
philcryer / magic-trump-ball
Created October 10, 2018 20:13
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.
# 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 June 25, 2018 20:25
Quickly query a domain's SSL configuration and describe what SSL Ciphers it accepts.
#!/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 June 15, 2018 17:43
A simple, single page html site, with black background and centered text. Made from found objects, public domain license.
<!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 January 19, 2018 20:46
An SSL enabled NGINX config to proxy Nexus-IQ
# 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 October 12, 2017 03:26
An attempt to automate the bootstrapping of a macOS based developer machine.
#!/usr/bin/env bash
# bootstrap macOS 10.xx with development tools:
# Xcode commandline-tools
# brew
# brew-cask
# ansible
# vagrant
# virtualbox
# docker