Skip to content

Instantly share code, notes, and snippets.

View gaboratorium's full-sized avatar

gaboratorium gaboratorium

View GitHub Profile
@gaboratorium
gaboratorium / gist:79609ce23e8e7a6cee0f65ab101b2d11
Last active February 28, 2018 20:44
TextMate shortcuts #textmate

TextMate

TextMate is a fancy, shiny and nevertheless free and open-source text editor for mac.

Command Action
cmd + t Go to file...
ctrl + tab Switch between drawer and editor
cmd + ctrl + n Create file
cmd + shift + n Create folder
@gaboratorium
gaboratorium / intellij.md
Last active May 22, 2018 08:48
IntelliJ IDEA shortcuts #intellij #idea #shortcuts

Useful IntelliJ IDEA keyboard shortcuts

The following shortucts are highly recommended to learn, as they speed up your development process dramatically.

Views

Command Action
cmd + 1 Project View
cmd + 4 Run View
@gaboratorium
gaboratorium / MyCollection.java
Created January 24, 2018 12:12
Duplicate removal #java #stream
myCollection
.collect(Collectors.toMap(MyClass::getProperty, b -> b, (duplicate1, duplicate2) -> duplicate1))
@gaboratorium
gaboratorium / DOCKER.md
Last active November 7, 2023 14:21
Docker Cheatsheet #docker #cheatsheet

Docker cheatsheet

Docker

Terminology

Image -> Container (called Task if it's in a Service) -> Service -> Stack -> Swarm

  • Image: An ordered collection of root filesystem changes and the corresponding execution parameters for use within a container runtime. Portable Docker images are defined by something called a Dockerfile.
  • Container: A container is a runtime instance of a docker image.
@gaboratorium
gaboratorium / README.md
Last active October 17, 2023 14:30
How to monitor http/https traffic in JVM #jvm #java #http #https #intellij
@gaboratorium
gaboratorium / bash.md
Created September 14, 2017 11:15
Bash #bash
  • printenet to print environment variables
  • printenv | grep APPLICATION to filter for APPLICATION
  • export $(./path/to/file) to export file's content
@gaboratorium
gaboratorium / IntelliJ.md
Last active January 17, 2021 18:45
IntelliJ shortcuts #intellij #ide #shortcuts

IntelliJ tips & tricks

UI customization

  • Settings > Editor > General > Breadcrumbs, disable Show breadcrumbs
    • Adjust braces placement as preferred
  • Settings > Ediotr > Code Style > Java > Wrapping and Braces,

Replace cmd with Git Bash on Windows

@gaboratorium
gaboratorium / gitfile.txt
Created September 13, 2017 11:47
Remove commited file form commit #git
git rm --cached /path/to/file
@gaboratorium
gaboratorium / Main.java
Created August 25, 2017 12:13
Gson deserialization #java #gson #json
final String json = "{ username: 'Han Solo', password: 'jabbawockeez'}";
final Gson gson = new GsonBuilder().create();
final Person han = gson.fromJson(json, new TypeToken<Person>(){}.getType());
@gaboratorium
gaboratorium / tsconfig.json
Created June 26, 2017 12:34
Ultimate TypeScript #typescript #ts #tsconfig
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"allowJs": false,
"allowUnreachableCode": false,
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"alwaysStrict": true,