Instructions on how to setup a secured Jenkins CI on a Mac.
All of these operations are done with your admin user.
Install the command line developer tools.
| # create spring boot container | |
| docker run -d -e "JAVA_OPTS=-agentlib:jdwp=transport=dt_socket,address=5005,server=y,suspend=n" | |
| -p 8081:8081 | |
| -p 5005:5005 | |
| --name <container name> <image name> | |
| # create debug configuration in intellij | |
| go Run/Debug Configurations | |
| click + button | |
| choose Remote |
| #!/usr/bin/env bash | |
| # | |
| # Convert .psd files to .png files keeping the transparency. | |
| # It uses `imagemagick` library. | |
| # Usage: | |
| # | |
| # sh to_png.sh path/ | |
| # | |
| # Author: Rafael Rinaldi (rafaelrinaldi.com) |
| socat TCP-LISTEN:2375,reuseaddr,fork,bind=localhost UNIX-CONNECT:/var/run/docker.sock & | |
| echo "Usage: tcp://localhost:2375 for binding API URL" | |
| echo "You can check this link for more detail: https://youtrack.jetbrains.com/issue/IDEA-153973" |
| #Check if an argument was supplied | |
| if [ -z "$1" ] | |
| then | |
| echo "No argument supplied, please provide video name" | |
| else | |
| # start recording | |
| adb shell screenrecord --bit-rate 6000000 /sdcard/$1.mp4 & | |
| # Get its PID | |
| PID=$! |
| <?xml version="1.0" encoding="utf-8"?> | |
| <resources> | |
| <!-- google's material design colours from | |
| http://www.google.com/design/spec/style/color.html#color-ui-color-palette --> | |
| <!--reds--> | |
| <color name="md_red_50">#FFEBEE</color> | |
| <color name="md_red_100">#FFCDD2</color> | |
| <color name="md_red_200">#EF9A9A</color> |
| package com.vnzit.testbingspeechapi; | |
| import com.google.gson.Gson; | |
| import org.apache.commons.io.IOUtils; | |
| import java.io.InputStream; | |
| import java.util.concurrent.TimeUnit; | |
| import okhttp3.FormBody; |
| PREFIX="android_screenshot" | |
| if [ $# -gt 0 ] | |
| then | |
| PREFIX=$1 | |
| fi | |
| adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > ~/Downloads/${PREFIX}_$(date +'%Y-%m-%d_%H-%M-%S').png |
| Unless specified otherwise, all of the below tinting applies to both Lollipop and pre-Lollipop using AppCompat v21. To use the support version of these attributes, remove the android namespace. For instance, "android:colorControlNormal" becomes "colorControlNormal". These attributes will be propagated to their corresponding attributes within the android namespace for devices running Lollipop. Any exceptions to this will be noted by including the "android:" prefix. | |
| All Clickable Views: | |
| ----------- | |
| * ripple effect (Lollipop only) -- "colorControlHighlight" | |
| Status Bar: | |
| ------------ | |
| * background (Lollipop only) - "colorPrimaryDark" |
| /* Copyright 2013 Google Inc. | |
| Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0.html */ | |
| package com.example.latlnginterpolation; | |
| import android.animation.ObjectAnimator; | |
| import android.animation.TypeEvaluator; | |
| import android.animation.ValueAnimator; | |
| import android.annotation.TargetApi; | |
| import android.os.Build; |