Skip to content

Instantly share code, notes, and snippets.

View os3albert's full-sized avatar
🎯
Focusing

Albert Bici os3albert

🎯
Focusing
View GitHub Profile
@wcomnisky
wcomnisky / README.md
Created November 29, 2023 22:10
Configuring vscode as Git diff tool

If you are using Visual Studio Code Insiders (for early adopters) you may need to have a vscode instance/window already running before running your difftool, otherwise it may crash once you finish reviewing the first file (when you have more than one file to check diffs)

git config --global diff.tool vscode
git config --global difftool.vscode.cmd 'code --wait --diff $LOCAL $REMOTE'
@vepo
vepo / curl-with-java-keystore.md
Last active March 13, 2024 08:52 — forked from Hakky54/curl-with-java-keystore.md
Curl with Java KeyStore

cURL with Java Keystore/Truststore

Curl doesn't have support for java keystore file, so therefor the file should be converted to a PEM format. It consists of the following multiple steps:

  1. Convert keystore to p12 file
  2. Convert p12 file to pem file
  3. Run curl command with pem files

Convert keystore to p12 file

@odan
odan / nginx-php-windows-setup.md
Last active January 31, 2026 17:57
Nginx and PHP Setup on Windows

Nginx and PHP Setup on Windows

For local development you could also use Nginx with PHP as an replacement for XAMPP.

Install Nginx

@ZacharyPatten
ZacharyPatten / ConsoleInput.md
Last active February 6, 2026 14:16
Beginner's Guide To Console Input In C#

Beginner's Guide To Console Input In C#

Note: I recommend reading this gist in order because Examples 1-6 build on each other.

@Hakky54
Hakky54 / curl-with-java-keystore.md
Last active May 11, 2025 15:14
Curl with Java KeyStore

Curl with Java KeyStore

Curl doesn't have support for java keystore file, so therefor the file should be converted to a PEM format. It consists of the following multiple steps:

  1. Convert keystore to p12 file
  2. Convert p12 file to pem file
  3. Run curl command with pem files

One way TLS/SSL/Authentication

Convert keystore to p12 file

@bradtraversy
bradtraversy / myscript.sh
Last active January 28, 2026 14:42
Basic Shell Scripting
#! /bin/bash
# ECHO COMMAND
# echo Hello World!
# VARIABLES
# Uppercase by convention
# Letters, numbers, underscores
NAME="Bob"
# echo "My name is $NAME"
@Eng-Fouad
Eng-Fouad / ssl-certs.md
Last active June 23, 2024 05:50
Generate self-signed PKCS#12 SSL certificate and export its keys using Java keytool and openssl.

Steps to generate self-signed PKCS#12 SSL certificate and export its keys:

1- Create PKCS#12 keystore (.p12 or .pfx file)

keytool -genkeypair -keystore myKeystore.p12 -storetype PKCS12 -storepass MY_PASSWORD -alias KEYSTORE_ENTRY -keyalg RSA -keysize 2048 -validity 99999 -dname "CN=My SSL Certificate, OU=My Team, O=My Company, L=My City, ST=My State, C=SA" -ext san=dns:mydomain.com,dns:localhost,ip:127.0.0.1
  • myKeystore.p12 = keystore filename. It can with .pfx extension as well.
  • MY_PASSWORD = password used for the keystore and the private key as well.
  • CN = commonName, it will be shown as certiciate name in certificates list.
  • OU = organizationUnit, department name for example.
@odan
odan / xampp_php7_xdebug.md
Last active February 9, 2026 17:21
Installing Xdebug for XAMPP
@subfuzion
subfuzion / global-gitignore.md
Last active December 25, 2025 13:16
Global gitignore

There are certain files created by particular editors, IDEs, operating systems, etc., that do not belong in a repository. But adding system-specific files to the repo's .gitignore is considered a poor practice. This file should only exclude files and directories that are a part of the package that should not be versioned (such as the node_modules directory) as well as files that are generated (and regenerated) as artifacts of a build process.

All other files should be in your own global gitignore file:

  • Create a file called .gitignore in your home directory and add any filepath patterns you want to ignore.
  • Tell git where your global gitignore file is.

Note: The specific name and path you choose aren't important as long as you configure git to find it, as shown below. You could substitute .config/git/ignore for .gitignore in your home directory, if you prefer.

@davidfowl
davidfowl / dotnetlayout.md
Last active February 6, 2026 19:18
.NET project structure
$/
  artifacts/
  build/
  docs/
  lib/
  packages/
  samples/
  src/
 tests/