Skip to content

Instantly share code, notes, and snippets.

Marc Hughes marc-hughes

View GitHub Profile
View anotherfile.js
This is from vscode, neat.
It auto-saves!
marc-hughes /
Created Oct 9, 2017 — forked from JadedEvan/
An interactive bash shell script to delete remote git branches
# An interactive script that allows you to delete multiple remote branches from
# a git repository with confirmation before deletion.
# Provide the path to the git repo as an argument to the script or it will
# prompt you for the path to the repo
# @version 0.1
# @author Evan Reeves <>
View gist:dfebccd90f9be324fe73eb30c39d0857
# /etc/rc.d/init.d/swap
# Daemon for swap
# chkconfig: - 05 99
# description: Enable swap space
View .gitconfig
cleanfeature = branch --merged | grep "feature/" | xargs -n 1 git branch -d
tool = p4mergetool
renameLimit = 8000
[mergetool "p4mergetool"]
cmd = /Applications/ $PWD/$BASE $PWD/$REMOTE $PWD/$LOCAL $PWD/$MERGED
trustExitCode = false
keepBackup = false
marc-hughes / gist:c66f68fbbac9ca61e74644f5751c5df7
Created May 3, 2016
Git Alias to clean merged feature branches
View gist:c66f68fbbac9ca61e74644f5751c5df7
# Put this into .gitignore:
cleanfeature = branch --merged | grep "feature/" | xargs -n 1 git branch -d
# Then, run git cleanfeature - it will delete every branch with name containing feature/ that has been fully merged into the current branch.
We couldn’t find that file to show.
class DisableMigrations(object):
def __contains__(self, item):
return True
def __getitem__(self, item):
return "notmigrations"
View attachments.json
attachment_url: "",
created: "2015-10-14T08:46:05",
url: "",
story_id: 169800,
id: 17506,
modified: "2015-10-14T08:46:05",
filename: "169800_subtasks.png",
attachment_name: "",
View kanbancell.dart
selector: '[kanban-cell]',
publishAs: 'cell'
class KanbanCell {
int cardId;
View gist:10918197
<li kanban-cell
ng-repeat="state in | filter:{column:'backlog'} "
You can’t perform that action at this time.