Skip to content

Instantly share code, notes, and snippets.

View kyleferguson's full-sized avatar

Kyle Ferguson kyleferguson

View GitHub Profile
@kyleferguson
kyleferguson / .vimrc
Created February 10, 2016 22:14
Show vim highlighting groups for work under cursor (ctrl-g)
" Show highlighting groups for current word
nmap <c-g> :call <SID>SynStack()<CR>
function! <SID>SynStack()
if !exists("*synstack")
return
endif
echo map(synstack(line('.'), col('.')), 'synIDattr(v:val, "name")')
endfunc
@kyleferguson
kyleferguson / .bashrc
Last active October 4, 2016 16:17
Easy pull requests
# Github plugin
# https://hub.github.com/
alias git="hub"
pull-request() {
default=$(git log -1 --pretty=%B | cat)
message=${1:-"$default"}
git pull-request -m $message | cat
}
@kyleferguson
kyleferguson / agnoster-custom.zsh-theme
Created January 6, 2017 20:10
agnoster-custom ZSH theme
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts).
# Make sure you have a recent version: the code points that Powerline
# uses changed in 2012, and older versions will display incorrectly,
# in confusing ways.
@kyleferguson
kyleferguson / Dockerfile
Last active December 19, 2023 06:10
Example Laravel deployment for Kubernetes
FROM php:7.1-apache
ADD . /var/www
ADD ./site.conf /etc/apache2/sites-enabled/000-default.conf
RUN apt-get update && apt-get install -y libmcrypt-dev mysql-client && \
docker-php-ext-install mcrypt pdo_mysql opcache && \
pecl install redis-3.1.2 && docker-php-ext-enable redis && \
a2enmod rewrite
@kyleferguson
kyleferguson / docker-compose.yml
Created May 21, 2017 01:36
Mainflux manager + nginx proxy + mock auth service
###
# Copyright (c) Mainflux
#
# Mainflux server is licensed under an Apache license, version 2.0 license.
# All rights not explicitly granted in the Apache license, version 2.0 are reserved.
# See the included LICENSE file for more details.
###
version: "2"

Keybase proof

I hereby claim:

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

To claim this, I am signing this object: