Skip to content

Instantly share code, notes, and snippets.

View PickledDragon's full-sized avatar
🏠
Working from home

Praveen Kottarathil PickledDragon

🏠
Working from home
View GitHub Profile
GRPC_DEFAULT_SSL_ROOTS_FILE_PATH=/Users/foo/Downloads/inspection-ca.cer
http_proxy=http://localhost:3128/
https_proxy=http://localhost:3128/
Additional variables for GRPC here: https://github.com/grpc/grpc/blob/master/doc/environment_variables.md
@PickledDragon
PickledDragon / IntelliJ-IDEA-license-server-self-signed-CA
Last active August 3, 2021 09:35
Configure IntelliJ IDEA to use self-signed certificates for license servers
What: Configure IntelliJ IDEA to use self-signed certificates for license servers
Background: Current employer hasan IntelliJ license server hosted at https://intellij.employer.domain and uses a proxy with self-signed inspection proxy(Pretty much MITM)
Solution:
1. Download the root CA, intermediate CA and inspection CA certificates from the employer's PKI registry
2. Go to `/Applications/IntelliJ\ IDEA.app/Contents/jbr/Contents/Home` (Tested for 2021.3 version)
3. Get an elevated prompt
4. Add root CA
@PickledDragon
PickledDragon / sync-github-fork
Created May 10, 2021 20:52
Sync a fork with its upsteam
1. Check what is the state - git remote -v
2. If the upstream is missing add it - git remote add upstream https://github.com/apache/camel
3. Fetch from upstream - git fetch upstream
4. Checkout local working copy master/main - git checkout master
5. Merge upstream master into local - git merge upstream/master
6. Push upstream - git push origin
@PickledDragon
PickledDragon / 2021-rust-notes
Last active February 1, 2021 13:34
Rust meetups
# Session 1
* Cargo new create a a ready to use git repository
* Where does cargo gets the author information?
If you have already set it for git you'd be OK.
For additional options, Look up: https://github.com/rust-lang/cargo/blob/rust-1.50.0/src/cargo/ops/cargo_new.rs#L798
*
yum install -y git libcgroup-tools
Welcome to StackOverflow! Your question is not quite clear.
Perhaps its worth rephrasing it so that someone would be able to help you further.
It is a great idea to refer to [this article](https://stackoverflow.com/help/how-to-ask) on how to ask a good question. Thanks.
/^[A-Za-z'\- ÇüÜéâÂäàÀåçêÊëËèèïÏîÎìÌÄÅÉôÔöòÒûÛùÙÖÜøØáÁóÓíÍúÚñÑß]+$/,
Acquire::http:Proxy "http://10.0.2.2:3128/";
Acquire::https:Proxy "http://10.0.2.2:3128/";
mvn -DgroupId=org.apache.camel.community.so -DartifactId=q59053263 -Dversion=1.0-SNAPSHOT -DarchetypeGroupId=org.apache.camel.archetypes -DarchetypeArtifactId=camel-archetype-spring-boot -DarchetypeVersion=3.0.0-RC3 org.apache.maven.plugins:maven-archetype-plugin:RELEASE:generate
Host jumphost.domain.net gitlab.domain.net 10.2.2.*
ProxyCommand none
Host *
ProxyCommand ssh -W %h:%p user@jumphost.domain.net
ServerAliveInterval 120
ControlMaster auto
ControlPersist=300s
ControlPath=~/.ssh/%u-at-%h