This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----------------------------------com.example.ResponseObject.java----------------------------------- | |
package com.example; | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; | |
import javax.annotation.Generated; | |
import com.fasterxml.jackson.annotation.JsonAnyGetter; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----------------------------------com.example.Example.java----------------------------------- | |
package com.example; | |
import java.util.HashMap; | |
import java.util.Map; | |
import javax.annotation.Generated; | |
import com.fasterxml.jackson.annotation.JsonAnyGetter; | |
import com.fasterxml.jackson.annotation.JsonAnySetter; | |
import com.fasterxml.jackson.annotation.JsonInclude; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----------------------------------com.example.Credential.java----------------------------------- | |
package com.example; | |
import java.util.HashMap; | |
import java.util.Map; | |
import javax.annotation.Generated; | |
import com.fasterxml.jackson.annotation.JsonAnyGetter; | |
import com.fasterxml.jackson.annotation.JsonAnySetter; | |
import com.fasterxml.jackson.annotation.JsonInclude; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public enum FuBar | |
{ | |
ONE("one"), | |
TWO("two"); | |
private static final String PATT; | |
private static final Map<String,FuBar> MAP; | |
static |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "Index Refs Address Size Wired Name (Version) <Linked Against>"; \ | |
kextstat -l | \ | |
awk '{ printf "%-6s %-5s %-18s %-10d %-10d %-40s\n", $1, $2, $3, $4, $5, $6}' | \ | |
awk '{ printf "%-6s %-5s %-18s %-10d %-10d %-40s\n", $1, $2, $3, (($4/1024)), (($4/1024)), $6}' | \ | |
sort -rn -k4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Stash | |
export STASH_HOME="$HOME/.stash" | |
export STASH_VERSION="3.0.4" | |
export STASH_CATALINA_HOME="$HOME/Servers/stash/$STASH_VERSION" | |
# Jira | |
export JIRA_HOME="$HOME/.jira" | |
export JIRA_VERSION="6.2.7" | |
export JIRA_CATALINA_HOME="$HOME/Servers/jira/$JIRA_VERSION" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# The path to the chrome binary | |
CHROME_BINARY=/opt/google/chrome/chrome | |
# As long as this is set to 1 the script will | |
# block at the end | |
RUNNING=1 | |
get_chrome_binary_pid () |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.flickr.com/gp/akutz/E5Ri8e |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# flag for debug logging | |
DEBUG=true | |
# store the args passed to this script, just in case | |
ARGS=$@ | |
# mark this build with an epoch. this is also the only place in the | |
# file where it's necessary to use a subshell |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
STAT_FILE_SIZE = stat --format '%s' $$FILE 2> /dev/null || stat -f '%z' $$FILE 2> /dev/null | |
CALC_FILE_SIZE := BYTES=$$($(STAT_FILE_SIZE)); SIZE=$$(($$BYTES / 1024 / 1024)); printf "$${SIZE}MB" | |
PRINT_FILE_SIZE := $(STAT_FILE_SIZE) $(CALC_FILE_SIZE) | |
MAX_PAD := 80 | |
STATUS_DELIM := .................................................................................................... | |
START_STATUS = export FILE=$(1); export PAD_LEN=$$(($(MAX_PAD) - $${\#FILE})); printf "$$FILE" | |
PRINT_STATUS = export EC=$$?; cd $(_); if [ "$$EC" -eq "0" ]; then printf "%*.*s%s\n" 0 $$PAD_LEN "$(STATUS_DELIM)" "SUCCESS!"; else exit $$EC; fi | |
PARSE_RESULT = export EC=$$?; cd $(_); if [ "$$EC" -ne "0" ]; then exit $$EC; fi | |
GET_GOOS = $(shell echo $(1) | tr A-Z a-z) |