Skip to content

Instantly share code, notes, and snippets.

View JMBattista's full-sized avatar

John Battista JMBattista

  • Redmond, WA
View GitHub Profile

Install Android SDK CLI Ubuntu 20.04 WSL2 (Work in Progress)

Install Java 8

sudo apt install openjdk-8-jdk-headless

Android SDK

{
"Working Directory" : "\/Users\/jbattist",
"Prompt Before Closing 2" : 0,
"Selected Text Color" : {
"Green Component" : 0.56485837697982788,
"Red Component" : 0.50599193572998047,
"Blue Component" : 0.56363654136657715
},
"Rows" : 25,
"Ansi 11 Color" : {
@JMBattista
JMBattista / DetailedDarcula.icis
Last active October 20, 2021 17:24
IntelliJ Color Scheme
<scheme name="DetailedDarcula" version="142" parent_scheme="Darcula">
<metaInfo>
<property name="created">2021-10-20T10:17:55</property>
<property name="ide">idea</property>
<property name="ideVersion">2021.2.2.0.0</property>
<property name="modified">2021-10-20T10:18:03</property>
<property name="originalScheme">_@user_Darcula</property>
</metaInfo>
<attributes>
<option name="DEFAULT_CLASS_NAME">
# Don't run the integration tests
^(?!.*IntegrationTesting$).*$
@JMBattista
JMBattista / install_java_jdk
Created October 22, 2016 20:03
Upgrade JDK Codeship
#!/bin/bash
# Allows manually configuring the java version to use with http://codeship.io
#
# This should not be necessary for most users thanks to the jdk_switcher
# (see: https://documentation.codeship.com/languages/java-and-jvm-based-languages/)
# However if you need to test against a specific version of the JDK it could still be useful.
wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" $JAVA_URL
mkdir -p ~/java
tar -xzf $JAVA.tar.gz -C ~/java --strip-components=1
@JMBattista
JMBattista / .zshrc
Last active November 23, 2022 09:48
Machine setup
## Modify the plugins line to contain the plugins below
# more plugins can be found at https://github.com/unixorn/awesome-zsh-plugins
plugins=(git jsontools history-substring-search)
# https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/jsontools
# history-substring-search is not necessary for iterm2 since it has a built in support
# Add bindings for history search
bindkey "^[[A" history-substring-search-up
bindkey "^[[B" history-substring-search-down
@JMBattista
JMBattista / jbattista.zsh-theme
Created May 26, 2015 19:04
Modified Pygmalion theme
# Modified version of pygmalion, to hide my username and show a shorter path
prompt_setup_jbattista(){
ZSH_THEME_GIT_PROMPT_PREFIX="%{$reset_color%}%{$fg[green]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[yellow]%}⚡%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN=""
user_prompt='%{$fg[magenta]%}%n%{$reset_color%}%{$fg[cyan]%}@%{$reset_color%}'
machine_prompt='%{$fg[yellow]%}%m%{$reset_color%}%{$fg[red]%}:'
@JMBattista
JMBattista / Gruntfile.js
Created May 1, 2015 17:49
Use forever to run a grunt command
module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
watch: {
scripts: {
files: ['<The file(s) to watch'],
tasks: ['<The task to run>'],
options: {
spawn: false
@JMBattista
JMBattista / install_gradle
Last active April 24, 2018 17:31
Upgrade Gradle Codeship
#!/bin/bash
# Allows using different Gradle versions with http://codeship.io
#
# As @altfatterz points out below this isn't necessary if you choose to check in your .gradle and gradlew.bat/gradlew.sh files.
# I prefer not to check-in the generated files so I set this up.
#
# We update the path here instead of via the environment variables because you cannot control the order
# that environment variables are set in the Environment tab, and this results in the path NOT having the version number
# see test_commands for info on how to run gradle without settings the path here if you want to avoid it.
#