most of these require logout/restart to take effect
# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
# Set a shorter Delay until key repeat| package no.smievoll.ad; | |
| import javax.naming.directory.BasicAttribute; | |
| import java.util.List; | |
| public class ADPasswordEncoder { | |
| private static byte[] generatePasswordByteArray(String clearTextPassword) throws UnsupportedEncodingException { | |
| /* NB: AD requires password string to be quoted. */ |
| // Oops: Defaut test runner timeout is 250ms | |
| buster.testCase("Async stuff", { | |
| "does things asynchonously": function (done) { | |
| setTimeout(function () { | |
| assert(true); | |
| done(); | |
| }, 100); | |
| }, |
| # Credit http://stackoverflow.com/a/2514279 | |
| for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r |
| <project> | |
| <build> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.codehaus.mojo</groupId> | |
| <artifactId>exec-maven-plugin</artifactId> | |
| <!-- outputFile doesn't work in the regular v1.2 (see MEXEC-86) --> | |
| <version>1.2.1-BRING</version> | |
| <executions> | |
| <execution> |
| # from i8ramin - http://getintothis.com/blog/2012/04/02/git-grep-and-blame-bash-function/ | |
| # runs git grep on a pattern, and then uses git blame to who did it | |
| ggb() { | |
| git grep -n $1 | while IFS=: read i j k; do git blame -L $j,$j $i | cat; done | |
| } | |
| # small modification for git egrep bash | |
| geb() { | |
| git grep -E -n $1 | while IFS=: read i j k; do git blame -L $j,$j $i | cat; done | |
| } |
| import javax.net.ssl.SSLParameters; | |
| import javax.net.ssl.SSLSocket; | |
| import javax.net.ssl.SSLSocketFactory; | |
| import java.io.*; | |
| /** Establish a SSL connection to a host and port, writes a byte and | |
| * prints the response. See | |
| * http://confluence.atlassian.com/display/JIRA/Connecting+to+SSL+services | |
| */ | |
| public class SSLPoke { |
| #!/bin/sh | |
| mkdir ${TMPDIR}/com.apple.IconServices |
| #!/bin/bash | |
| # Sometimes you need to move your existing git repository | |
| # to a new remote repository (/new remote origin). | |
| # Here are a simple and quick steps that does exactly this. | |
| # | |
| # Let's assume we call "old repo" the repository you wish | |
| # to move, and "new repo" the one you wish to move to. | |
| # | |
| ### Step 1. Make sure you have a local copy of all "old repo" | |
| ### branches and tags. |