Skip to content

Instantly share code, notes, and snippets.

View miguelgonz's full-sized avatar

Miguel L Gonzalez miguelgonz

View GitHub Profile
@miguelgonz
miguelgonz / index.html
Created August 16, 2016 11:00
Duplicate finder
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Find duplicates</title>
<script type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.15.0/lodash.js"></script>
<script type="text/javascript" src="duplicates.js">
var els;
@miguelgonz
miguelgonz / docker-compose.yml
Last active July 8, 2016 10:42
Docker-compose for tr ci-cd
version: '2'
services:
frontend:
image: uncinimichel/unicorn-front:0.0.3
ports:
- "8080:8080"
links:
- backend
environment:
BACKEND_HOST: backend
@miguelgonz
miguelgonz / .gitconfig
Created March 2, 2015 11:33
.gitconfig
[core]
excludesfile = /Users/gonzlm01/.gitignore_global
editor = /usr/bin/vim
[alias]
b = branch
ba = branch -a
d = diff
ci = commit
co = checkout
@miguelgonz
miguelgonz / unit.feature
Last active August 29, 2015 14:08
BBC krispy blog post snippets
@unit
@p1
Scenario: Scenario: Programme information for each broadcast is present
When there's an on-air channel there's a progress bar for it
Then progress bar shows the correct progress for different on-air programmes
@miguelgonz
miguelgonz / git sync
Created August 28, 2014 14:30
git sync
#!/bin/sh
#To make use of this just copy it to your path, +x it, and do git sync
MAIN_BRANCH="develop"
CURRENT_CHANGES=`git status --porcelain`
CURRENT_BRANCH=`git symbolic-ref -q --short HEAD`
if [ "$CURRENT_CHANGES" != "" ]; then
git stash --include-untracked
fi
@miguelgonz
miguelgonz / git-clean-branches.sh
Created July 1, 2014 10:43
Git-clean-branches
#!/bin/sh
#To make use of this just copy it to your path, +x it, and do git sync
MAIN_BRANCH="develop"
CURRENT_BRANCH=`git symbolic-ref -q --short HEAD`
if [ "$CURRENT_BRANCH" != "$MAIN_BRANCH" ]; then
git checkout $MAIN_BRANCH
fi
@miguelgonz
miguelgonz / git_config.md
Created February 20, 2014 10:31
Git config stuff

Quick fix ups

[alias]
  fixup = commit --amend -C HEAD

Automatically rebase the current stages changes into your last commit. For quick fixes when you don't want to create new commits, you can just do that instead of git rebase -i HEAD~2 and mark the last commit as fixup.

@miguelgonz
miguelgonz / gist:8956315
Created February 12, 2014 14:17 — forked from craigtaub/gist:8956151
External access
=== Machine on wifi , dev on IE8
machine:
wifi to iplayer_mobile
-any turn proxies off
unplug eth
dev:
proxies off and extacess on
#reithproxies off
#extaccess pal-ct
@miguelgonz
miguelgonz / git-sync
Last active August 29, 2015 13:56
Git sync command to get the latest stuff from upstream
#!/bin/sh
#To make use of this just copy it to your path, +x it, and do git sync
MAIN_BRANCH="develop"
CURRENT_CHANGES=`git status --porcelain`
CURRENT_BRANCH=`git symbolic-ref -q --short HEAD`
if [ "$CURRENT_CHANGES" != "" ]; then
git stash --include-untracked
fi