Toggle Hidden Files in Finder - Automator Service Script
https://blog.bertvanlangen.com/articles/toggle-hidden-files-finder-os-x-10-10-yosemite/
https://github.com/moritzregnier/create-reminder-from-mail-mac
# | |
# Description: | |
# Various additional git utility commands | |
# | |
# git recursive <command>: | |
# from the current working folder search recursively for local git repos and run 'git <command>' on each of them. | |
# | |
# git recursive-exec <command>: | |
# from the current working folder search recursively for local git repos and run '<command>' on each of them. | |
# |
https://blog.bertvanlangen.com/articles/toggle-hidden-files-finder-os-x-10-10-yosemite/
https://github.com/moritzregnier/create-reminder-from-mail-mac
@SneakyThrows | |
private static <T> void assertThatWithSpinWait(Callable<T> actual, Matcher<? super T> matcher, long timeoutMillis) { | |
long endMillis = System.currentTimeMillis() + timeoutMillis; | |
while (System.currentTimeMillis() < endMillis) { | |
try { | |
assertThat("", actual.call(), matcher); | |
return; | |
} catch (AssertionError ignored) { | |
// ignore | |
} |
@SuppressWarnings("unchecked") | |
static <R, T> Observable<R> zip(Iterable<? extends Observable<T>> ws, Func1<List<T>, ? extends R> zipFunction) { | |
FuncN<R> funcN = (Object[] array) -> { | |
List<T> l = new ArrayList<T>(); | |
for (Object o : array) { | |
l.add((T) o); | |
} | |
return zipFunction.call(l); | |
}; |
package de.porsche.pcc.instrumentation; | |
import com.github.tomakehurst.wiremock.client.WireMock; | |
import com.github.tomakehurst.wiremock.junit.WireMockRule; | |
import lombok.SneakyThrows; | |
import lombok.extern.slf4j.Slf4j; | |
import org.apache.http.HttpException; | |
import org.apache.http.HttpHeaders; | |
import org.apache.http.HttpResponse; | |
import org.apache.http.HttpResponseInterceptor; |
#To Decrypt Jenkins Password from credentials.xml | |
#<username>jenkins</username> | |
#<passphrase>your-sercret-hash-S0SKVKUuFfUfrY3UhhUC3J</passphrase> | |
#go to the jenkins url | |
http://jenkins-host/script | |
#In the console paste the script | |
hashed_pw='your-sercret-hash-S0SKVKUuFfUfrY3UhhUC3J' |
#!/usr/bin/env bash | |
# | |
# For my own reference in the future demo's various ways to resolve a script's full qualified path | |
# Usage: copy this file to /tmp/resolve_paths_demo.sh and run it from root | |
# | |
# Note: this script uses the 'realpath' utility - to get this on OSX, you need to install 'brew install coreutils' | |
if [ -z "${doit+x}" ]; then # for if [exists $var] technique, see http://stackoverflow.com/a/13864829/51264 | |
scriptfilereal=$(realpath -P "$0") |
# this script uses syntax for bitbucket server. | |
# For bitbucket cloud see https://confluence.atlassian.com/bitbucket/use-the-bitbucket-cloud-rest-apis-222724129.html | |
# | |
# Note: replace username, password and PROJECTNAME with your values | |
USERNAME=xxxx | |
PASSWORD=xxxx | |
PROJECTNAME=xxxxx | |
# jq syntax helpful links: |
# it's inconvenient to pollute knownhosts with temporary AWS EC2 instances - use aws_ssh instead of ssh to ssh into EC2 instances | |
alias aws_ssh='ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' | |
# | |
# This function allows to easily switch between AWS CLI profiles. If necessary, it will assume the given role | |
# | |
# usage: | |
# set-aws-profile rolename[@accountname] | |
# | |
# "rolename": the profilename as defined in your ~/.aws/config |