Skip to content

Instantly share code, notes, and snippets.

View phoenix24's full-sized avatar
🎯
Focusing

Chaitanya Sharma phoenix24

🎯
Focusing
View GitHub Profile
Hey,
I've been a long time observer and recent user of vitess, and planetscale's recent launch of db-as-a-service encouraged me to put down the following three requests/ ideas.
I look forward to hearing your thoughts.
-Chaitanya
PS: I was hoping to reachout with a pr, turns out it'll take a tad longer.
@phoenix24
phoenix24 / gist:6248a828a9da4cedc266035cdbf6c02d
Created March 20, 2021 06:55
10 signs of awesome company culture:
10 Signs of AWESOME Company Culture:
1. Your boss excitedly tells your team she's taking her son to football practice early on Wednesday afternoons.
2. You hear laughter, often.
3. Innovation and failures are welcomed, not feared.
4. The company handbook is written in simple, plain language.
5. Your colleagues come from different backgrounds and nationalities.
6. Meetings start on time.
7. Your kids are welcome to drop-in at any time.
8. You're rarely the smartest person in a meeting.
@phoenix24
phoenix24 / JioMeet_v2.24.74_apkpure.com.apk
Created July 3, 2020 08:18
JioMeet_v2.24.74 APK Extract
Archive: JioMeet_v2.24.74_apkpure.com.apk
inflating: ex1/AndroidManifest.xml
extracting: ex1/HACKED-META-INF/services/io.grpc.ManagedChannelProvider
extracting: ex1/HACKED-META-INF/services/io.grpc.NameResolverProvider
extracting: ex1/META-INF/androidx.activity_activity.version
extracting: ex1/META-INF/androidx.appcompat_appcompat-resources.version
extracting: ex1/META-INF/androidx.appcompat_appcompat.version
extracting: ex1/META-INF/androidx.arch.core_core-runtime.version
extracting: ex1/META-INF/androidx.asynclayoutinflater_asynclayoutinflater.version
extracting: ex1/META-INF/androidx.cardview_cardview.version
"""allows collecting not explicitly assigned values into
a placeholder variable"""
a, *b, c = range(10)
print(a, b, c)
"""advanced example"""
[(c, *d, [*e]), f, *g] = [[1, 2, 3, 4, [5, 5, 5]], 6, 7, 8]
print(c, d, e, f, g)
public class Problem8 {
public static void main(String[] args) {
int i = 0;
char x = 'X';
System.out.print(true? x: 0);
System.out.print(false? i: x);
}
}
@phoenix24
phoenix24 / errorlog.sh
Created October 4, 2019 06:54
apache james build error
➜ james-project git:(master) ✗ mvn clean compile package -DskipTests
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:00 min
[INFO] Finished at: 2019-10-04T12:21:04+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project james-server-util: Fatal error compiling: invalid flag: --release -> [Help 1]
@phoenix24
phoenix24 / terraform script
Last active April 19, 2019 17:10
terraform script
provider "google-beta" {
region = "${var.region}"
version = "2.5.0"
}
//create dns.
//create vpn.
//create ssh gateway.
//create mysql / cloudsql.
@phoenix24
phoenix24 / openjdk9-flags.txt
Last active January 20, 2019 10:07
openjdk9 flags.
➜ openjdk9 ./build/macosx-x86_64-normal-server-slowdebug/jdk/bin/java -XX:+UnlockDiagnosticVMOptions -XX:+PrintFlagsFinal -version | pbcopy
[Global flags]
ccstrlist AOTLibrary = {product} {default}
ccstr AbortVMOnException = {diagnostic} {default}
ccstr AbortVMOnExceptionMessage = {diagnostic} {default}
uintx AdaptiveSizeDecrementScaleFactor = 4 {product} {default}
uintx AdaptiveSizeMajorGCDecayTimeScale = 10 {product} {default}
uintx AdaptiveSizePolicyCollectionCostMargin = 50 {product} {default}
uintx AdaptiveSizePolicyGCTimeLimitThreshold = 5 {develop} {default}
@phoenix24
phoenix24 / SyncTest.java
Created January 17, 2019 13:12
sync experiment 7
public class SyncTest {
volatile Boolean lock1 = true;
public void testr() {
String name = Thread.currentThread().getName();
synchronized(lock1) {
lock1 = !lock1;
long time1 = System.currentTimeMillis();
System.out.println("bef: name:" + name + ", time: " + time1 + ", lock1:" + lock1);
@phoenix24
phoenix24 / SyncTest.java
Last active August 15, 2022 21:16
sync experiment 6
public class SyncTest {
Integer lock1 = 1;
public void testr() {
String name = Thread.currentThread().getName();
synchronized(lock1) {
lock1 = lock1 + 1;
long time1 = System.currentTimeMillis();
System.out.println("bef: name:" + name + ", time: " + time1 + ", lock1:" + lock1);