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
#!/bin/sh | |
#https://github.com/PythonicNinja/jetbrains-reset-trial-mac-osx/blob/master/runme.sh | |
for product in IntelliJIdea WebStorm DataGrip PhpStorm CLion PyCharm GoLand RubyMine Rider; do | |
echo "Closing $product" | |
ps aux | grep -i MacOs/$product | cut -d " " -f 5 | xargs kill -9 | |
echo "Resetting trial period for $product" |
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
REM Delete eval folder with licence key and options.xml which contains a reference to it | |
for %%I in ("WebStorm", "IntelliJ", "CLion", "Rider", "GoLand", "PhpStorm", "Resharper", "PyCharm") do ( | |
for /d %%a in ("%USERPROFILE%\.%%I*") do ( | |
rd /s /q "%%a/config/eval" | |
del /q "%%a\config\options\other.xml" | |
) | |
) | |
REM Delete registry key and jetbrains folder (not sure if needet but however) | |
rmdir /s /q "%APPDATA%\JetBrains" |
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
public class SynchronizationIssue2 { | |
static Integer val = 0; | |
static Integer lock = 0; | |
public static void main(String[] args) throws Exception { | |
CountDownLatch latch = new CountDownLatch(2); | |
ExecutorService ex = Executors.newFixedThreadPool(2); | |
for(int i = 0; i < 2; i++) { |
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
public class SynchronizationIssue { | |
static Integer a = 0; | |
public static void main(String[] args) throws Exception { | |
CountDownLatch latch = new CountDownLatch(2); | |
ExecutorService ex = Executors.newFixedThreadPool(2); | |
for(int i = 0; i < 2; i++) { | |
ex.submit(() -> { | |
int count = 1000; | |
while(count-- > 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
public class PrintOddEvenWithTwoDifferentThreads { | |
public static void main(String[] args) throws Exception { | |
State state = new State(StateEnum.ODD); | |
Thread th1 = new Thread(new PrinterNumber(state, StateEnum.EVEN, 0)); | |
Thread th2 = new Thread(new PrinterNumber(state, StateEnum.ODD, 1)); | |
th1.setName("Even"); | |
th2.setName("Odd"); | |
th1.start(); |
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
List of all books tagged with software-architecture on Goodreads with applied a simple algorithmic rules (relevant to software architecture, content is not obsolete, it must be tech agnostic and average rating > 3.5). Rating is based on the number of written reviews, but also including the average rating, the number of ratings, and the publishing date. | |
Categories and the best book in each one: | |
1. ๐ฆ๐๐๐๐ฒ๐บ ๐๐ฟ๐ฐ๐ต๐ถ๐๐ฒ๐ฐ๐๐๐ฟ๐ฒ: Clean Architecture, Robert C. Martin. https://lnkd.in/drQ_tyGg | |
2. ๐๐ฒ๐๐ถ๐ด๐ป ๐ฃ๐ฎ๐๐๐ฒ๐ฟ๐ป๐: Head First Design Patterns: Building Extensible and Maintainable Object-Oriented Software, Eric Freeman, Elisabeth Robson. https://lnkd.in/dbgnMGxB |
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
#!/bin/bash | |
# | |
# Run following commands on any node of vRLI cluster | |
# The command used in the varialbe `command` could be modified appropriately | |
# for every node you need pass ssh password, this way it kept simple. Without any extra package dependencies. | |
# below line could be modified appropriately | |
command="service loginsight restart" | |
file=`/usr/lib/loginsight/application/sbin/li-utility.sh --get_latest_config_file`; list=`cat $file | grep "daemon host" | sed 's/.*daemon host="\(.*\)" port.*/\1/'` |
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
kind: Service | |
apiVersion: v1 | |
metadata: | |
name: helloworldservice | |
spec: | |
selector: | |
app: hello-world | |
ports: | |
- protocol: "TCP" | |
# Port accessible inside cluster |
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
nmap 10.10.10.10 -p 443 --script ssl-enum-ciphers |