Skip to content

Instantly share code, notes, and snippets.

View mcarpenterjr's full-sized avatar
:octocat:
Always be shipping...

Mark Carpenter Jr mcarpenterjr

:octocat:
Always be shipping...
View GitHub Profile
@mcarpenterjr
mcarpenterjr / godaddy_ddns.sh
Created July 17, 2017 15:13
Linux bash script for updating dns on godaddy dynamically. You need a developer account to access the godaddy api to get your secret and token.
#!/bin/bash
# This script is used to check and update your GoDaddy DNS server to the IP address of your current internet connection.
# Special thanks to mfox for his ps script
# https://github.com/markafox/GoDaddy_Powershell_DDNS
#
# First go to GoDaddy developer site to create a developer account and get your key and secret
#
# https://developer.godaddy.com/getstarted
# Be aware that there are 2 types of key and secret - one for the test server and one for the production server
@mcarpenterjr
mcarpenterjr / haproxy.md
Created August 11, 2022 20:04 — forked from guycalledseven/haproxy.md
haproxy conditions

Haproxy conditions

Since I keep forgetting them I've put them here.

To form a condition, you can use the following syntax after the rule that it applies to:

<HAProxy action statement> if|unless [!]acl1 <AND|OR|or|'||'> [!]acl2 ...

  • if - the condition is TRUE if the result of the ACLs is TRUE.
{
"globals" :
{
"alwaysShowTabs" : true,
"defaultProfile" : "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"initialCols" : 120,
"initialRows" : 30,
"keybindings" :
[
{
@mcarpenterjr
mcarpenterjr / .hyper.js
Created October 8, 2019 17:34
HyperConfig
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
@mcarpenterjr
mcarpenterjr / jquery-bootstrap-datepicker.css
Created October 8, 2018 19:23 — forked from gabrieljenik/jquery-bootstrap-datepicker.css
jQuery UI Datepicker Bootstrap 3 Style
.ui-datepicker {
background-color: #fff;
border: 1px solid #66AFE9;
border-radius: 4px;
box-shadow: 0 0 8px rgba(102,175,233,.6);
display: none;
margin-top: 4px;
padding: 10px;
width: 240px;
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
@mcarpenterjr
mcarpenterjr / markdown-to-email
Created June 7, 2018 13:40 — forked from cleverdevil/markdown-to-email
markdown-to-email A simple script to send beautifully formatted emails that you write in Markdown. The email will have an HTML payload and a plain-text alternative, so you'll make everyone happy, including yourself.
#!/usr/bin/env python
'''
Send an multipart email with HTML and plain text alternatives. The message
should be constructed as a plain-text file of the following format:
From: Your Name <your@email.com>
To: Recipient One <recipient@to.com>
Subject: Your subject line
---
@mcarpenterjr
mcarpenterjr / gitlab-ci.yml
Created February 14, 2018 14:04
GITLAB YML Example
stages:
- test
- build
- user-test
- deploy
test:
stage: test
before_script:
# Find the SSH Agent
@mcarpenterjr
mcarpenterjr / README
Created November 13, 2017 16:47 — forked from ncr/README
Code
$("button").single_double_click(function () {
alert("Try double-clicking me!")
}, function () {
alert("Double click detected, I'm hiding")
$(this).hide()
})
@mcarpenterjr
mcarpenterjr / chosen-boot-3.css
Last active October 11, 2017 13:58
Chosen CSS overrides for bootstrap 3
.chosen-container-single .chosen-single {
height: 34px;
border-radius: 4px;
border: 1px solid #CCCCCC;
}
.chosen-container-single .chosen-single span {
padding-top: 4px;
}
.chosen-container-single .chosen-single div b {
margin-top: 4px;
@mcarpenterjr
mcarpenterjr / knockout-chosen.js
Created October 6, 2017 14:11 — forked from tomazy/knockout-chosen.js
knockout + jquery chosen binding handler http://jsfiddle.net/tomazy/6A57J/
ko.bindingHandlers.chosen = {
init: function(element, valueAccessor, allBindings, viewModel, bindingContext){
var $element = $(element);
var options = ko.unwrap(valueAccessor());
if (typeof options === 'object')
$element.chosen(options);
else
$element.chosen();