Skip to content

Instantly share code, notes, and snippets.

View abdennebi's full-sized avatar
🎯
Focusing

Mohamed Abdennebi abdennebi

🎯
Focusing
View GitHub Profile
@abdennebi
abdennebi / pom.xml
Created May 5, 2014 09:35
Servlet API 3.0 Maven Dependency
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version>
<scope>provided</scope>
</dependency>
@abdennebi
abdennebi / pom.xml
Created May 5, 2014 09:36
Servlet API 2.5 Maven Dependecy
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
</dependency>
@abdennebi
abdennebi / gist:30d50067f394e3b4b61a
Last active January 3, 2018 15:37
Java HTTP Proxy
@abdennebi
abdennebi / steps.md
Last active September 20, 2022 11:54
How to avoid merge-commit

Ensure all commits are fast-forward. You do this by making sure the feature branch rebases cleanly onto master :

git checkout master
git checkout -b feature

...

git checkout master
git pull origin master 
@abdennebi
abdennebi / git-create-branch-from-commit.md
Last active August 29, 2015 14:05
[Git] Create branch from commit

Create the branch by using the hash :

git branch branchname <commit>

Or

git checkout -b branchname <commit>

Or by using a symbolic ref :

@abdennebi
abdennebi / fedora-add-dropbox-repo.md
Created August 18, 2014 11:11
[Fedora] Add dropbox repository
@abdennebi
abdennebi / save_cert-from-remote-site.md
Last active August 29, 2015 14:06
Save certificate from remote site

openssl s_client -connect gist.github.com:443 -showcerts

Show certificate fingerprint (sha-1)

openssl x509 -subject -dates -fingerprint -in $DOMAIN.key.pem

Show certificate fingerprint (md5)

openssl x509 -subject -dates -fingerprint -md5 -in $DOMAIN.key.pem

keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore -list -storepass android

$ keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore -list -v Google Play Services

Publisher Xamarin Inc. Category Libraries Price Free Published On

@abdennebi
abdennebi / gist:a9a8ea1a3c38daaa620c
Created May 26, 2015 14:57
Get Certificate from LDAP Server
echo -n | openssl s_client -connect 192.168.1.225:636 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > ldapserver.pem
@abdennebi
abdennebi / gist:c73eba7d113ad3cd0fea
Created July 7, 2015 10:08
Get certificates from server
openssl s_client -showcerts -connect google.com:443 </dev/null