I hereby claim:
- I am AntonyKapustin on github.
- I am akapustin (https://keybase.io/akapustin) on keybase.
- I have a public key whose fingerprint is 7770 F4AF 62A6 E905 F801 C992 D0C3 B088 0430 DC49
To claim this, I am signing this object:
#!/usr/bin/env bash | |
IFS=$'\n' clusters=($(kubectl config get-contexts --no-headers | awk '{print $2}')) | |
active_cluster=$(kubectl config current-context) | |
for i in ${!clusters[@]}; | |
do | |
: | |
if [ "${clusters[$i]}" == $active_cluster ]; then | |
echo -e "\e[34m[*] \e[36m"${clusters[$i]} |
#!/usr/bin/env bash | |
IFS=$'\n' clusters=($(kubectl config get-contexts --no-headers | awk '{print $2}')) | |
active_cluster=$(kubectl config current-context) | |
for i in ${!clusters[@]}; | |
do | |
: | |
if [ "${clusters[$i]}" == $active_cluster ]; then | |
echo -e "\e[34m[*] \e[36m"${clusters[$i]} |
I hereby claim:
To claim this, I am signing this object:
using System; | |
public class TimeUtils { | |
private static readonly DateTime Jan1st1970 = new DateTime | |
(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc); | |
public static long CurrentTimeMillis() | |
{ | |
return (long) (DateTime.UtcNow - Jan1st1970).TotalMilliseconds; | |
} |
public static void main(String[] args) throws IOException { | |
// OptionalInt max = Files.lines(Paths.get("/", "1.txt"), Charset.forName("windows-1251")) | |
// .flatMap(s -> Arrays.stream(s.split("[\\P{L}]+"))) | |
// .peek(System.out::println) | |
// .mapToInt(s -> s.length()) | |
// .max(); | |
// | |
//(max.getAsInt()); | |
String content = new String(Files.readAllBytes(Paths.get("/", "1.txt")), Charset.forName("windows-1251")); | |
//System.out.println(content); |
import java.util.LongSummaryStatistics; | |
/** | |
* | |
* @author Anton Kapustin antonkapystin@hotmail.com | |
*/ | |
public class LongSynchronizedSummaryStatistics extends LongSummaryStatistics { | |
public LongSynchronizedSummaryStatistics() { | |
super(); |