docker container rm <id>
docker image rm <id>
docker container rm $(docker ps -aq) -f
This file contains hidden or 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
| Java SE Major version | |
| 1.0.2 45 | |
| 1.1 45 | |
| 1.2 46 | |
| 1.3 47 | |
| 1.4 48 | |
| 5.0 49 | |
| 6 50 | |
| 7 51 | |
| 8 52 |
This file contains hidden or 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 com.prashanth; | |
| public class StringMatching { | |
| public static void main(String[] args) { | |
| String pattern = "eeccd"; | |
| String word = "cceeccd"; | |
| int k = 0; |
This file contains hidden or 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 java.io.FileWriter; | |
| import java.util.*; | |
| import java.util.concurrent.ForkJoinPool; | |
| import java.util.concurrent.TimeUnit; | |
| import java.util.stream.Stream; | |
| class CSVWriter { | |
| public static void main(String[] args) throws Exception { | |
| String[] names = {"beam", "maa", "saket", "alli", "jakid"}; |
Intellij Shortcuts:
Shift + Command + A -> Show Shortcuts
Command + O -> Navigate Class
Shift + Command + O -> Navigate Files
Font ligatures for ->, !=
This file contains hidden or 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
| Topics | |
| kafka-topics.sh --zookeeper localhost:2181 --list | |
| Delete topics | |
| kafka-topics.sh — zookeeper localhost:2181 — delete — topic |
This file contains hidden or 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
| Topics | |
| kafka-topics.sh --zookeeper localhost:2181 --list | |
This file contains hidden or 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 java.io.BufferedReader; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.io.InputStreamReader; | |
| import java.nio.file.Files; | |
| import java.nio.file.Path; | |
| import java.nio.file.Paths; | |
| import java.util.Objects; |
This file contains hidden or 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
| Kafka commands in windows | |
| Go to Kafka directory | |
| Start Kafka | |
| .\bin\windows\kafka-server-start.bat .\config\server.properties | |
| List Topics |
This file contains hidden or 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
| def printstars(rows): | |
| for i in range(rows): | |
| print ' '*(rows-i-1)+'*'*(2*i+1) |
NewerOlder