Skip to content

Instantly share code, notes, and snippets.

View Hillrunner2008's full-sized avatar

David Norris Hillrunner2008

View GitHub Profile
@Hillrunner2008
Hillrunner2008 / example.json
Created October 4, 2024 16:10
example.json
{
"squadName": "Super hero squad",
"homeTown": "Metro City",
"formed": 2016,
"secret-base": "Super tower",
"active": true,
"members": [
{
"name": "Molecule Man",
"age": 29,
@Hillrunner2008
Hillrunner2008 / Json2Dto.java
Last active October 4, 2024 16:25
quick and dirty dto generator for nested dtos from json
//usr/bin/env jbang "$0" "$@" ; exit $?
//DEPS info.picocli:picocli:4.6.3
//DEPS com.fasterxml.jackson.core:jackson-databind:2.15.2
//DEPS com.google.guava:guava:32.1.2-jre
//DEPS org.projectlombok:lombok:1.18.26
import picocli.CommandLine;
import picocli.CommandLine.Command;
import picocli.CommandLine.Parameters;
import picocli.CommandLine.Option;
@Hillrunner2008
Hillrunner2008 / Json2Records.java
Last active March 26, 2025 07:11
generate java records from a json file
//usr/bin/env jbang "$0" "$@" ; exit $?
//DEPS info.picocli:picocli:4.7.6
//DEPS com.fasterxml.jackson.core:jackson-databind:2.15.2
//DEPS com.google.guava:guava:32.1.2-jre
import picocli.CommandLine;
import picocli.CommandLine.Command;
import picocli.CommandLine.Parameters;
import picocli.CommandLine.Option;
import com.fasterxml.jackson.annotation.JsonProperty;
@Hillrunner2008
Hillrunner2008 / secreta_santa_2023.md
Last active November 29, 2024 22:32
Sibling Secret Santa
@Hillrunner2008
Hillrunner2008 / BetterSSLPoke.java
Last active September 19, 2019 15:54
BetterSSLPoke
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
@Hillrunner2008
Hillrunner2008 / keybase.md
Created October 5, 2017 14:56
keybase proof

Keybase proof

I hereby claim:

  • I am hillrunner2008 on github.
  • I am dcnorris (https://keybase.io/dcnorris) on keybase.
  • I have a public key ASCZ2uVrNRWW4jlwHCUB3ILj6sGF9dsb0eenbd1bfJVf0go

To claim this, I am signing this object:

@Hillrunner2008
Hillrunner2008 / exampleLoopingImageExport.sh
Last active April 28, 2019 16:05
Example Bash Script for looping through a list of genomic coordinates and exporting an image from the Integrated Genome Browser using the 'Command Socket' plugin
#!/bin/sh
# This script requires the 'Command Socket' plugin be enabled from the 'Plugins' tab
locationsOfInterest=('chr1:2,246,108-2,271,426' 'chr2:9,488,819-9,531,295' 'chr3:8,407,934-8,454,574' )
function igbCommand(){
echo "$1" | ncat 127.0.0.1 7084
}
igbCommand 'genome A_thaliana_Jun_2009'