Skip to content

Instantly share code, notes, and snippets.

View m-kyle's full-sized avatar

Mark m-kyle

  • United Kingdom
View GitHub Profile
@m-kyle
m-kyle / sa.yaml
Last active September 27, 2018 13:55
admin user serviceaccount
apiVersion: v1
kind: ServiceAccount
metadata:
name: admin-user
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: admin-user
@m-kyle
m-kyle / guestbook.yaml
Last active May 2, 2017 13:35
Redis Guestbook
apiVersion: v1
kind: Service
metadata:
name: redis-master
labels:
app: redis
tier: backend
role: master
spec:
ports:
@m-kyle
m-kyle / setup.md
Last active January 5, 2019 19:07
GitLab Source to Omnibus Migration

GitLab Source to Omnibus Migration

Virtual Machine Setup for GitLab Source

  • Ubuntu 14.04.5
  • MySQL - 5.5.53

GitLab Software

  • GitLab Source - 7.14.3
  • GitLab Shell - 2.6.5
  • GitLab API - v3
  • Ruby 2.1.6p336
@m-kyle
m-kyle / keybase.md
Created June 15, 2016 17:14
Keybase Proof

Keybase proof

I hereby claim:

  • I am m-kyle on github.
  • I am mkyle (https://keybase.io/mkyle) on keybase.
  • I have a public key whose fingerprint is 7208 164D 3406 1C6A 43BF DE6D 9054 2127 2CFB C86E

To claim this, I am signing this object:

@m-kyle
m-kyle / gitlab.md
Last active March 8, 2016 17:48
Gitlab Docker

Running GitLab in Docker

Clone GitLab repository

  • git clone https://gitlab.com/gitlab-org/gitlab-ce.git -b 7-9-stable gitlab
  • cd gitlab

Build into Docker image

  • docker build --tag gitlab_image:7.8.3 docker/
@m-kyle
m-kyle / NeuralEvolve.lua
Created March 15, 2015 00:08
SethBling's neural network & genetic algorithm for Super Mario
console.clear()
filename = "DP1.state"
boxRadius = 6
buttonNames = {
"A",
"B",
"X",
"Y",
"Up",
@m-kyle
m-kyle / gitlab-http.conf
Created February 27, 2015 10:35
GitLab Nginx configuration
# This file is managed by gitlab-ctl. Manual changes will be
# erased! To change the contents below, edit /etc/gitlab/gitlab.rb
# and run `sudo gitlab-ctl reconfigure`.
## GitLab
## Contributors: randx, yin8086, sashkab, orkoden, axilleas, bbodenmiller
##
## Modified from https://gitlab.com/gitlab-org/gitlab-ce/blob/master/lib/support/nginx/gitlab-ssl & https://gitlab.com/gitlab-org/gitlab-ce/blob/master/lib/support/nginx/gitlab
##
## Lines starting with two hashes (##) are comments with information.
@m-kyle
m-kyle / sample.md
Last active March 8, 2016 17:48
Sample to to help fix Git repositories/commits

Fixing Git Commits

Replace/Update Users

#!/bin/sh
 
git filter-branch -f --env-filter '

OLD_EMAIL="david@example.com"
@m-kyle
m-kyle / svn_clone.md
Last active August 8, 2017 10:10
Cloning SVN repository to git and pushing to GitLab

Import SVN repository to GitLab

  • Create new project in GitLab
  • Clone SVN to git

On local command line:

  1. Create users.txt file in folder where new repository will go. Add usernames, names and email address of each user, like so:
@m-kyle
m-kyle / README.md
Last active August 3, 2021 08:51
A tutorial for learning how to use git and GitLab

GitLab Tutorial

This document is still a work in progress. It will be used as a tutorial to help explain the basics of Git and GitLab to users unfamiliar with them.

Table of Contents

Git