Skip to content

Instantly share code, notes, and snippets.

View jamiemcconnell's full-sized avatar

Jamie McConnell jamiemcconnell

  • Cotswolds, United Kingdom
View GitHub Profile
@jamiemcconnell
jamiemcconnell / arch_linux_installation_guide.md
Created May 5, 2025 10:25 — forked from mjkstra/arch_linux_installation_guide.md
A modern, updated installation guide for Arch Linux with BTRFS on an UEFI system
@jamiemcconnell
jamiemcconnell / CmderZSH.md
Created September 7, 2021 09:26 — forked from dfontana/CmderZSH.md
My setup guide for installing Cgywin, Mintty, Cmder, and ZSH.

What's this?

Instructions to obtain ZSH on a windows environment, without the input funny business presented by some other attempted solutions.

The final result is ZSH running on a mintty terminal, emulated by cygwin, and being handled by the popular cmder.

Why is this here?

For the benefit of myself and others. I've already followed these instructions twice. It took me hours to figure all this out, maybe someone else can save a few.

What exactly is covered?

  • Installing and setting up cmder
tmux
Create a session
tmux new-session -s session_name
Reconnect to session
tmux attach-session -t session_name
Detach from a session
CTRL+b

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

# Base our container on an existing Docker Image, view its configuration here: http://bit.ly/2h7SHaO
FROM httpd:2.4.18
MAINTAINER Jamie McConnell <[email protected]>
# This is a directory that you can "mount" your code into
VOLUME /var/www/html
# We need to expose a port on the container for us to view whatever Apache is hosting for us
EXPOSE 80
// Load our required packages
//
const webpack = require(‘webpack’),
path = require(‘path’),
extractTextPlugin = require(‘extract-text-webpack-plugin’),
htmlWebpackPlugin = require(‘html-webpack-plugin’);
@jamiemcconnell
jamiemcconnell / hook.rb
Last active June 10, 2016 08:59 — forked from tache/hook.rb
Hook for letsencrypt.sh to do DNS challenges
#!/usr/bin/env ruby
require 'aws-sdk'
#require 'pry'
#require 'awesome_print'
require 'domainatrix'
# ------------------------------------------------------------------------------
# Credentials
# ------------------------------------------------------------------------------
#!/bin/bash
/usr/bin/sed -i "s/upstreamServerPlaceholder/${UPSTREAM_SERVER}/" /etc/nginx/conf.d/server.conf
/usr/bin/sed -i "s/serverNamePlaceholder/${SERVER_NAME}/" /etc/nginx/conf.d/server.conf
openssl req -new -newkey rsa:4096 -days 1095 -nodes -x509 -subj "/C=GB/ST=Thera/L=Atlantis/O=Operations/CN=${SSL_CERT}" -keyout /ssl.key -out /ssl.crt
upstream frontend {
server upstreamServerPlaceholder;
}
server {
listen 80;
listen 443;
server_name serverNamePlaceholder;
@jamiemcconnell
jamiemcconnell / gist:1eb0adfa9a15b4ab3939
Created November 27, 2014 07:48
Remove a line from known_hosts
# Will remove line 6 only.
sed -i '6d' ~/.ssh/known_hosts