Skip to content

Instantly share code, notes, and snippets.

View BarisGece's full-sized avatar
🎯
Focusing

Barış Gece BarisGece

🎯
Focusing
View GitHub Profile
@BarisGece
BarisGece / tmux-cheatsheet.markdown
Created March 22, 2018 11:21 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
//AWS SDK 1.x.x
final PutObjectRequest putRequest = new PutObjectRequest(s3bucket, targetDirectory + “/” + file.getName(), file).withCannedAcl(CannedAccessControlList.PublicRead);
final Upload upload = transferManager.upload(putRequest);
//AWS SDK 2.0 — with ContentType
String fileType = Files.probeContentType(file);
final S3Client s3client;
s3client.putObject(PutObjectRequest.builder().bucket(s3bucket).key(targetDirectory + FileSystems.getDefault().getSeparator() + file.getFileName()).acl(ObjectCannedACL.PUBLIC_READ).contentType(fileType).build(),RequestBody.of(file));
@BarisGece
BarisGece / MyAbstractClass.java
Created January 12, 2018 20:49
Java Abstract Class Sample for Medium Story
public abstract class MyAbstractClass {
String qAbstractClassVar;
public void xVoidMethod() { }
public String yStringMethod() {
String y = "String Value";
return y;
}