on macOS - minikube | kubectl | docker
saml2aws login #
saml2aws # Opt: configure. To configure user details.
export AWS_PROFILE=<my_profile> # Set default profile
public class SpringRestTemplateBasicAuthExample { | |
public static void main(String... args){ | |
RestTemplate rt = new RestTemplate(); | |
rt.getMessageConverters().add(new MappingJackson2HttpMessageConverter()); | |
rt.getMessageConverters().add(new StringHttpMessageConverter()); | |
String uri = new String("https://some.api.provider.com/rest/authenticate"); | |
String plainCreds = "[email protected]:sfdfsdf$%&^$%4"; |
// lets create our index | |
PUT /t | |
{ | |
"mappings": { | |
"t": { | |
"_all": { | |
"enabled": true | |
}, | |
"properties": { | |
"one": { |
// Merge two Maps together of type: Map<String, List<String>> | |
static BiFunction<Map<String, List<String>>, Map<String, List<String>>, Map<String, List<String>>> mergeMaps() { | |
return (Map<String, List<String>> map1, Map<String, List<String>> map2) -> { | |
Map<String, List<String>> mergedMapped = new HashMap<>(map1); | |
map2.forEach((String k, List<String> v) -> mergedMapped.merge(k, v, (strings, strings2) -> { | |
strings.addAll(strings2); | |
return strings; | |
}) | |
); |
### Keybase proof | |
I hereby claim: | |
* I am daddymoe on github. | |
* I am daddy_moe (https://keybase.io/daddy_moe) on keybase. | |
* I have a public key ASAfMlHY38ZDURK5lBgy1PhSHjtBOxDt3wqhhtGukCZ9sAo | |
To claim this, I am signing this object: |
#!/usr/bin/env bash | |
# | |
# Start Elasticsearch and kibana in the background. | |
# But only for the instance of the running terminal. | |
# | |
echo "starting sonar" | |
~/dev/apps/sonarqube-7.7/bin/macosx-universal-64/sonar.sh start |
-- Create table | |
create table t1(doc jsonb); | |
-- Verify | |
SELECT * FROM t1; | |
-- insert some data | |
INSERT INTO t1 | |
VALUES |
Either follow this simple guide here or leverage other heavily oppinionated guides that are more comprehensive and community supported | |
# Option 1: Community support versions | |
First follow [xmlking's complete Mac setup](https://xmlking.gitbook.io/macos-setup/applications/sublime-text) | |
- General mac setup | |
- System preparedness and preferences - folders setup etc | |
- Application installations |