Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View marc-hughes's full-sized avatar

Marc Hughes marc-hughes

  • Hughes Software Development LLC
  • Auburn, MA
View GitHub Profile
@marc-hughes
marc-hughes / gist:7ddfdb652215ddb7fb5d5fcea4daf11a
Created December 17, 2022 23:55 — forked from pitch-gist/gist:2999707
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
@marc-hughes
marc-hughes / anotherfile.js
Last active December 4, 2019 15:48
hi there
This is from vscode, neat.
It auto-saves!
@marc-hughes
marc-hughes / git-branch-delete.sh
Created October 9, 2017 13:45
An interactive bash shell script to delete remote git branches
#!/bin/bash
# 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 <develop@evanreeves.com>
#!/bin/sh
#
# /etc/rc.d/init.d/swap
#
# Daemon for swap
#
# chkconfig: - 05 99
# description: Enable swap space
### BEGIN INIT INFO
[alias]
cleanfeature = branch --merged | grep "feature/" | xargs -n 1 git branch -d
[merge]
tool = p4mergetool
renameLimit = 8000
[mergetool "p4mergetool"]
cmd = /Applications/p4merge.app/Contents/Resources/launchp4merge $PWD/$BASE $PWD/$REMOTE $PWD/$LOCAL $PWD/$MERGED
trustExitCode = false
[mergetool]
keepBackup = false
@marc-hughes
marc-hughes / gist:c66f68fbbac9ca61e74644f5751c5df7
Created May 3, 2016 17:57
Git Alias to clean merged feature branches
# Put this into .gitignore:
[alias]
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"
[
{
attachment_url: "",
created: "2015-10-14T08:46:05",
url: "https://scrumdo-attachments.s3.amazonaws.com:443/projects%2Fstory%2Fattachments_v2%2F169800_subtasks.png?Expires=1444828586&AWSAccessKeyId=AKIAJGOQ7F37VIQQCUYQ&Signature=F6CN3qbDUE%2F5ZrNAlI9dcgeki3Q%3D",
story_id: 169800,
id: 17506,
modified: "2015-10-14T08:46:05",
filename: "169800_subtasks.png",
attachment_name: "",
@NgController(
selector: '[kanban-cell]',
publishAs: 'cell'
)
class KanbanCell {
@NgTwoWay('card-id')
int cardId;
}