This file contains 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 | |
# tested with OpenSSL 1.0.1e-fips on Centos 6 | |
# Note hardcoded Keycloak URL and credentials. | |
# Keycloak public key is in ATS-ci.key.pem with -----BEGIN PUBLIC KEY----- (etc) | |
assert() { if [[ $1 != $2 ]]; then echo "assert" $3; exit; fi } | |
url=http://192.168.10.221:8088/auth/realms/ATS-ci/protocol/openid-connect/token | |
resp=$(curl -X POST $url \ |
This file contains 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 android.content.Context; | |
import android.preference.SwitchPreference; | |
import android.util.AttributeSet; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.Switch; | |
/** | |
* Custom preference for handling a switch with a clickable preference area as well |
This file contains 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 se.marteinn.ui; | |
import android.content.Context; | |
import android.util.AttributeSet; | |
import android.view.View; | |
import android.widget.ScrollView; | |
/** | |
* Triggers a event when scrolling reaches bottom. |
This file contains 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
# | |
# You will want to pick a real password here! | |
# | |
CREATE USER 'jirauser'@'localhost' IDENTIFIED BY 'some_pass'; | |
CREATE DATABASE jira CHARACTER SET utf8 COLLATE utf8_bin; | |
GRANT ALL PRIVILEGES ON jira.* to 'jirauser'@'localhost'; | |
FLUSH PRIVILEGES; | |
# In case you forgot to change the password above... | |
# SET PASSWORD for 'jirauser'@'localhost' = PASSWORD('someother_pass'); |
NewerOlder