Skip to content

Instantly share code, notes, and snippets.

View ecgouvea's full-sized avatar
🗿
Life as usual

Eduardo Cortecione Gouvea ecgouvea

🗿
Life as usual
View GitHub Profile
@jeremywall
jeremywall / readme.txt
Last active August 9, 2023 08:09
Compile and install new TZDB for Java
# I recently had to try to update the TZDB of a JDK installation where I could not install lzip
# from any registered package repository and trying to compile lzip from source was failing.
# I discovered that as an alternative to using the tzdb-latest.tar.lz file I could just use both
# the tzcode-latest.tar.gz and the tzdata-latest.tar.gz to generate the needed rearguard tarballs.
# These instructions have been updated to no longer rely on lzip since it's not available out of
# the box in many environments.
# SHORTCUT ALERT: If you don't want to go through the whole process to build the rearguard tarball
# or use the ziupdater tool to generate and install a tzdb.dat file you can always just download
# the latest tar.gz and tzdb.dat files from a repo I created that automatically builds new TZDB
@rjmii
rjmii / chmod-400.ps1
Last active May 17, 2020 16:38 — forked from jaskiratr/chmod-400.cmd
Set permission of file equivalent to chmod 400 on Windows.
$path = ".\.vagrant\machines\default\hyperv\private_key"
icacls.exe $path /reset
icacls.exe $path /GRANT:R "$($env:USERNAME):(R)"
icacls.exe $path /inheritance:r
@jaskiratr
jaskiratr / chmod-400.cmd
Created June 29, 2018 01:03
Set permission of file equivalent to chmod 400 on Windows.
# Source: https://stackoverflow.com/a/43317244
$path = ".\aws-ec2-key.pem"
# Reset to remove explict permissions
icacls.exe $path /reset
# Give current user explicit read-permission
icacls.exe $path /GRANT:R "$($env:USERNAME):(R)"
# Disable inheritance and remove inherited permissions
icacls.exe $path /inheritance:r
@leonardofed
leonardofed / README.md
Last active March 14, 2025 18:19
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


@jboner
jboner / latency.txt
Last active March 14, 2025 07:37
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
@dngo
dngo / .gitconfig
Created April 18, 2012 18:29
colorize diff for git
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
@mtigas
mtigas / gist:952344
Last active January 10, 2025 18:03
Mini tutorial for configuring client-side SSL certificates.

Client-side SSL

For excessively paranoid client authentication.


Updated Apr 5 2019:

because this is a gist from 2011 that people stumble into and maybe you should AES instead of 3DES in the year of our lord 2019.

some other notes: