- upper left corner hot corner turns on screensaver
- single press for a click
- turn off scroll direction natural
- speed up key repeat
- Keyboard - text
- turn off correct spelling automatically, capitalize words automatically, touch bar typing suggestions, use smart quotes and dashes
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 | |
# Pass project dir as a param (could be '.' for the current dir) | |
cd $1 | |
if [ ! -d .git ]; then | |
echo "This is not a valid git directory." | |
exit 1 | |
fi |
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
Show hidden characters
[ | |
{ "keys": ["ctrl+b"], "command": "toggle_side_bar" }, | |
// shortcuts for home and end keys because of the 6 row lenovo keyboard layout | |
{ "keys": ["ctrl+,"], "command": "move_to", "args": {"to": "bol", "extend": false} }, | |
{ "keys": ["ctrl+."], "command": "move_to", "args": {"to": "eol", "extend": false} }, | |
// shift shortcuts to select text with home & end shortcuts | |
{ "keys": ["shift+ctrl+,"], "command": "move_to", "args": {"to": "bol", "extend": true} }, | |
{ "keys": ["shift+ctrl+."], "command": "move_to", "args": {"to": "eol", "extend": true} }, |
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
package tbd; | |
import ch.qos.logback.classic.Level; | |
import ch.qos.logback.classic.Logger; | |
import ch.qos.logback.classic.spi.ILoggingEvent; | |
import ch.qos.logback.core.read.ListAppender; | |
import org.slf4j.LoggerFactory; | |
import java.util.Arrays; | |
import java.util.List; |
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
import lombok.extern.slf4j.Slf4j; | |
import org.apache.commons.lang3.StringUtils; | |
import org.springframework.context.annotation.Profile; | |
import org.springframework.context.event.ContextRefreshedEvent; | |
import org.springframework.context.event.EventListener; | |
import org.springframework.core.env.AbstractEnvironment; | |
import org.springframework.core.env.EnumerablePropertySource; | |
import org.springframework.core.env.Environment; | |
import org.springframework.core.env.MutablePropertySources; | |
import org.springframework.stereotype.Component; |
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 | |
#minikube start --vm-driver=xhyve | |
minikube start --memory=8000 --vm-driver=xhyve --container-runtime=docker --v=3 --v=10 --alsologtostderr --insecure-registry="docker...io:5000" | |
kubectl cluster-info |
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
// corrected from initial approach, using % 15. My first attempt was wrong. This is what I get for not writing tests. Although tests on println...hmm... | |
def fizzBuzz = { | |
for (int x=1; x <= 100; x++) { | |
if (x % (15) == 0) println "FizzBuzz" | |
else if (x % 3 == 0) println "Fizz" | |
else if (x % 5 == 0) println "Buzz" | |
else println x | |
} | |
} |
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
import json | |
import sublime | |
import sublime_plugin | |
import threading | |
import urllib | |
import urllib2 | |
# Sublime plugin to use Groovy REPL functionality as offered by a Spring Boot | |
# app with the necessary server-side support. | |
# |
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
groovy.grape.Grape.grab(group:'org.springframework', module:'spring-web', version:'4.2.5.RELEASE') | |
import org.springframework.web.util.UriComponentsBuilder |
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
// TODO: think about whether this makes more sense as a trait... | |
class ClassUtils { | |
// exclude all fields that start with these prefixes from the list returned by getFields() method | |
private static final List<String> EXCLUDED_FIELD_PREFIXES = ['grails_', '$', '__'] | |
// Added exclusion of "grails_" and "$" fields - causes problems with Validateable cmd objs. | |
// Added exclusion of "__" due to Cobertura adding "__cobertura_counters" field. | |
/** |
NewerOlder