Skip to content

Instantly share code, notes, and snippets.


Kevin O'Neal Scuilion

View GitHub Profile
Scuilion / gist:41b1386e1af67c454dbcecf9ca18f25b
Last active May 29, 2020
does not work with code blocks #6
View gist:41b1386e1af67c454dbcecf9ca18f25b
## This is a test
first issue, quote does not escape so `#` will be treated as header.
second issue, the end of this line is again treated as header # as comments
# this should not be a header but it is by markdowndrawer - third issue
echo "testing"
Scuilion / addToGroup.exp
Created Jul 10, 2018
Expect Script to add user to group where usermod is not usuable.
View addToGroup.exp
#!/usr/bin/expect -f
set user [lindex $argv 0];
set hosts {
"host1" "host2"
stty -echo
send_user -- "Enter your password:"
expect_user -re "(.*)\n"
Scuilion / gist:036c53fd7fee2de89701a95822c0fb60
Last active Sep 21, 2017
Serialize/Deserialize values into an enum
View gist:036c53fd7fee2de89701a95822c0fb60
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.HashMap;
import java.util.Map;
public enum DeviceScheduleFormat {
Scuilion / gist:7feaec2a987c53f2a45c096085e4ffde
Created Aug 16, 2017
Cascading Select Creation Using Jira Rest Java Client
View gist:7feaec2a987c53f2a45c096085e4ffde
final IssueInputBuilder issueInputBuilder = new IssueInputBuilder("SUP", 10900L, "summary");
final Map<String, Object> childField = new HashMap<>();
childField.put("value", "Outage");
final Map<String, Object> customField = new HashMap<>();
customField.put("value", "Customer Call");
customField.put("child", new ComplexIssueInputFieldValue(childField));
issueInputBuilder.setFieldInput(new FieldInput("customfield_12345", new ComplexIssueInputFieldValue(customField)));
Scuilion /
Last active Oct 26, 2016 — forked from bartoszmajsak/
How to automatically prepend git commit with a branch name
#!/usr/bin/env bash
BRANCHES_TO_SKIP=(master develop test)
BRANCH_NAME=$(git symbolic-ref --short HEAD)
if [ ${#DASHES} -gt 1 ]; then
View find-jar
ClassLoader classLoader = TestContact.class.getClassLoader();
URL resource = classLoader.getResource("org/apache/http/impl/client/HttpClientBuilder.class");
public class Utils {
public static List<IArtist> cull(List<IArtist> artists, List<GenreType> include, List<GenreType> exclude) {
List<GenreType> optExclude = Optional.ofNullable(exclude).orElse(new ArrayList<GenreType>());
List<GenreType> optInclude = Optional.ofNullable(include).orElse(new ArrayList<GenreType>());
View gist:ba7597c4b9b5f8e5d653
<title>Daily Standup</title>
<style type="text/css">
#dailyStatus {
width: 100%; height: 100%; left: 0; top: 0; z-index: 10; padding: 4rem; font-size:2rem; font-family:Helvetica; line-height:1.4; margin:0 auto;white-space: pre;overflow: auto
Scuilion / gist:d1609aa3bcdf606be163
Created Sep 27, 2015
Because Learning Deprecated Features is Great
View gist:d1609aa3bcdf606be163
var standup = {};
standup.webdb = {};
standup.webdb.db = null; = function() {
var dbSize = 5 * 1024 * 1024; // 5MB
standup.webdb.db = openDatabase("Standup", "1", "standup manager", dbSize);
View pre-commit-encoding
#!/usr/bin/env bash
files=$(git diff --name-only HEAD | tr '\n' ' ' )
for f in $files
if ! git show :"$f" | iconv -f UTF-8 -t UTF-8 "$f" >/dev/null 2>&1
echo "The following file is not UTF-8: $f"