Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View seyDoggy's full-sized avatar

Adam Merrifield seyDoggy

View GitHub Profile
seyDoggy /
Last active October 16, 2022 11:02
Shell script to monitor HTTP server status and email me when the server is not responding.
TESTDATE=`date "+%B %e, %Y"`
TESTTIME=`date "+%H:%M:%S"`
auto_init() {
runTest() {
seyDoggy / SomeCtrl.js
Last active March 4, 2022 16:54
My version of the AngularJS ui-bootstrap alert service as derived from here: No $rootScopes were harmed in the making of this code.
(function () {
'use strict';
.controller('SomeCtrl', SomeCtrl);
SomeCtrl.$inject = ['$scope', '$http', ' alertService'];
function SomeCtrl($scope, $http, alertService) {
$http.put('http://some.url/user/44', {
// Bootstrap Mid-Small - col-ms-* - the missing grid set for Bootstrap3.
// LICENSE under MIT -
// Source:
// Forked:
// This is a hack to fill the gap between 480 and 760 pixels - a missing range
// in the bootstrap responsive grid structure. Use these classes to style pages
// on cellphones when they transition from portrait to landscape.
seyDoggy / zip all
Created October 31, 2012 13:37
Shell script to zip all files in a folder.
FILES=./*; for f in $FILES; do ditto -ck "$f" "$"; done
seyDoggy / let g:ctrlp_custom_ignore
Created December 3, 2014 14:02
Getting around spf13-vim's ctrlp_user_command in order to set ctrlp_custom_ignore
" The custom ignore feature in ctrlp.vim is a useful feature
" when you want to ignore files and folder in your directory
" structure. However if yo set g:ctrlp_user_command then
" g:ctrlp_custom_ignore had no effect. This is all well and
" and good unless you use a vim distribution like spf13-vim
" that just so happens to set g:ctrlp_user_command. So here
" is how you get around that issue in your own .vimrc.local:
" unlet the original spf13-vim settings
unlet g:ctrlp_custom_ignore
seyDoggy / responsive-sticky-footer.css
Last active November 30, 2017 03:04
Responsive sticky footer for bootstrap
seyDoggy /
Created April 7, 2017 13:28
Cloud Foundry: Consuming arrays with cloud config
@ConfigurationProperties(prefix = "users.service")
public class UsersData {
private String[] benefitType;
private String[] status;
// setters/getters…
seyDoggy / jetbrains-studio.desktop
Created February 24, 2017 13:08
Contents of Android Studio .desktop
[Desktop Entry]
Name=Android Studio
Exec="/usr/local/share/android-studio/bin/" %f
Comment=Develop with pleasure!
seyDoggy / restful.module.js
Last active September 4, 2016 05:29
An AngularJS RESTful Constructor
* @ngdoc module
* @name Restful
* @description
* Restful is a base class from which to extend and create more CRUD services
* without the need to repeat the same CRUD operations and implementation
* with each additional service.
* The Restful factory takes one argument, a configuration object.
seyDoggy / .profile
Last active August 31, 2016 12:03
to change shell on LDAP system
export SHELL=`which zsh`
# Works on Ubuntu
#[ -z "$ZSH_VERSION" ] && exec "$SHELL" -l
# Works on Fedora