# wifi
iwctl station wlan0 connect SSID
# check
ip a # ip addres info
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.text.ParseException; | |
import java.text.RuleBasedCollator; | |
import java.util.Arrays; | |
/** | |
* <b>UzLatinSort</b><br> | |
* Sorting strings based on uzbek latin alphabet using RuleBasedCollator | |
* | |
* @author Ilyos Khurozov | |
*/ |
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.IOException; | |
import java.net.URISyntaxException; | |
import java.nio.file.Files; | |
import java.nio.file.Path; | |
import java.util.*; | |
/** | |
* <b>WordleFinder</b> helps you find daily Wordle answer<br> | |
* <br> | |
* Steps: |
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.util.Random; | |
public class ULID { | |
public static final long MIN_TIME = 0x0L; | |
public static final long MAX_TIME = 0xffffffffffffL; | |
// Crockford's Base32 | |
private static final char[] ENCODE_TABLE = new char[]{ | |
'0', '1', '2', '3', '4', '5', '6', '7', | |
'8', '9', 'A', 'B', 'C', 'D', 'E', '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
import java.math.BigDecimal; | |
public class Why0_30000000000000004 { | |
private static final int PRECISION = 52; | |
public static void main(String[] args) { | |
int na = 1; // 0.1 | |
int nb = 2; // 0.2 | |
System.out.println("0."+na); | |
boolean[] a = binPrecision(na); | |
binPrint(a); |
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
certbot certonly --manual -d example.com -d *.example.com --preferred-challenges=dns |
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
mvn install:install-file -Dfile=<path-to-file.jar> -DgroupId=<groupId> -DartifactId=<artifactId> -Dversion=<version> -Dpackaging=jar |
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
{ | |
"psFormat": "ID\t{{.ID}}\nNAME\t{{.Names}}\nImage\t{{.Image}}\nPORTS\t{{.Ports}}\nCREATED\t{{.CreatedAt}}\nSTATUS\t{{.Status}}\n" | |
} |
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
SELECT | |
kcu.CONSTRAINT_SCHEMA, kcu.TABLE_NAME, kcu.COLUMN_NAME, kcu.REFERENCED_TABLE_NAME, kcu.REFERENCED_COLUMN_NAME | |
FROM | |
INFORMATION_SCHEMA.KEY_COLUMN_USAGE kcu | |
join INFORMATION_SCHEMA.TABLE_CONSTRAINTS tc | |
on kcu.CONSTRAINT_NAME = tc.CONSTRAINT_NAME and tc.CONSTRAINT_TYPE = 'FOREIGN KEY' |
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
# generate module-info.java file | |
jdeps --generate-module-info . <path to jar file> | |
# compile module-info.class | |
javac --patch-module <module name>=<path to jar file> <path to module-info.java file> | |
# add module-info.class to jar archive |
NewerOlder