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 software.amazon.awssdk.auth.credentials.ProfileCredentialsProvider | |
import software.amazon.awssdk.regions.Region | |
import software.amazon.awssdk.services.s3.S3Client | |
import software.amazon.awssdk.services.s3.model.{S3Exception,CopyObjectRequest,CopyObjectResponse,HeadBucketRequest} | |
import scala.util.{Try,Success,Failure} | |
/** | |
Cross region copy object example with region code discovery for a bucket. | |
**/ |
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/sh -e | |
# | |
# rc.local | |
# | |
# This script is executed at the end of each multiuser runlevel. | |
# Make sure that the script will "exit 0" on success or any other | |
# value on error. | |
# | |
# In order to enable or disable this script just change the execution | |
# bits. |
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
[user] | |
name = <name> | |
email = <email> | |
username = <username> | |
[color] | |
branch = auto | |
diff = auto | |
status = auto | |
[color "branch"] |
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
@JsonIgnoreProperties(ignoreUnknown = true) | |
@Value | |
public class JsonExample { | |
@NonFinal | |
@JsonView(SerializedViews.Response.class) | |
boolean broken; | |
@NonFinal | |
@JsonView(SerializedViews.Response.class) | |
Boolean working; |
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
#include <iostream> | |
using namespace std; | |
void overloaded(int a) { | |
cout << "This is an int: " << a << endl; | |
} | |
void overloaded(double a) { | |
cout << "This is a double: " << a << endl; |
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
unbind-key C-b | |
set-option -g prefix C-s | |
bind-key C-s last-window | |
bind s send-prefix | |
# large history | |
set-option -g history-limit 100000 | |
# enable mouse mode |
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
library(caret) | |
set.seed(300) | |
wine.r <- read.csv('https://archive.ics.uci.edu/ml/machine-learning-databases/wine-quality/winequality-red.csv', sep=';') | |
wine.w <- read.csv('https://archive.ics.uci.edu/ml/machine-learning-databases/wine-quality/winequality-white.csv', sep=';') | |
wine.r$style <- "red" | |
wine.w$style <- "white" |
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
HOME =$ENV::HOME | |
RANDFILE =$ENV::HOME/.rnd | |
[ ca ] | |
default_ca =CA_default | |
[ CA_default ] | |
dir =$ENV::ROOT | |
certs =$dir |
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 | |
############################################################################### | |
# NOTICE: This script is intended to be used in conjunction with a openssl.cnf | |
# template such as this one: | |
# https://gist.github.com/jameskyle/8106d4d5c6dfa5395cef | |
# (C) Copyright 2014 James A. Kyle. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder