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
| @Slf4j | |
| @ApplicationScoped | |
| public class QuasiSync | |
| { | |
| @Inject | |
| @Channel("out-topic") | |
| Emitter<String> requestEmitter; | |
| private final ConcurrentHashMap<String, CompletableFuture<String>> responseMap; |
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
| @ApplicationScoped | |
| @Slf4j | |
| public class ListenerService | |
| { | |
| @Incoming("in-topic") | |
| public void consumeMessage(String kafkaMessage) | |
| { | |
| log.info("Received message: {}", kafkaMessage); | |
| // Here you can process the kafkaMessage as needed | |
| } |
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
| @ApplicationScoped | |
| @Slf4j | |
| public class EmitterService | |
| { | |
| @Inject | |
| @Channel("out-topic") | |
| Emitter<String> sender; | |
| // Create an event and put it on a queue | |
| public void createEvent(String message) |
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
| tmutil listlocalsnapshotdates | |
| tmutil deletelocalsnapshots xxxxxxx, where 'xxxxxx' is the name of one of the backups listed. |
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
| find . -name ".DS_Store" -delete |
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
| git reset --hard f92265e5dc3c82ed14a61e4b4e60688b2525c6c8 | |
| git push -f | |
| Note that the master branch is PROTECTED against forced pushes. |
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
| docker system prune --all --force --volumes |
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
| GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=video" |
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
| pkgutil --pkgs|grep -i com.oracle # Know installed JDKs | |
| pkgutil --info com.oracle.jdk8u77 # Know where particular JDK is located (ie: jdk8u77) | |
| sudo rm -R /Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk # Remove JDK | |
| sudo pkgutil --forget com.oracle.jdk8u77 # Remove package | |
| pkgutil --pkgs|grep com.oracle # Confirm removal |
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
| git rm -r --cached some-directory | |
| git commit -m 'Remove the now ignored directory "some-directory"' | |
| git push origin master |
NewerOlder