Skip to content

Instantly share code, notes, and snippets.

View renannprado's full-sized avatar
:shipit:
Working...

Renann Prado renannprado

:shipit:
Working...
View GitHub Profile
@renannprado
renannprado / JavaScript.java
Created October 5, 2025 16:44
A Java script
///usr/bin/env -S java --source 25 "$0" "$0" ; exit $?
void main() {
IO.println("hi");
}
{
"@context": "http://schema.org/extensions",
"@type": "MessageCard",
"title": "{{severity}}: {{category}} on {{entity.name}}",
"text": "Below you can find some information about the incident.",
"potentialAction": [
{
"@type": "OpenUri",
"name": "View Incident",
"targets": [
@renannprado
renannprado / docker-compose.yaml
Created October 16, 2020 21:37
kafka docker compose
version: '3'
services:
zookeeper:
image: debezium/zookeeper:1.2
ports:
- 2181:2181
- 2888:2888
- 3888:3888
kafka:
image: debezium/kafka:1.2
@renannprado
renannprado / pagination.md
Created October 12, 2020 14:09 — forked from mislav/pagination.md
"Pagination 101" by Faruk Ateş

Pagination 101

Article by Faruk Ateş, [originally on KuraFire.net][original] which is currently down

One of the most commonly overlooked and under-refined elements of a website is its pagination controls. In many cases, these are treated as an afterthought. I rarely come across a website that has decent pagination, and it always makes me wonder why so few manage to get it right. After all, I'd say that pagination is pretty easy to get right. Alas, that doesn't seem the case, so after encouragement from Chris Messina on Flickr I decided to write my Pagination 101, hopefully it'll give you some clues as to what makes good pagination.

Before going into analyzing good and bad pagination, I want to explain just what I consider to be pagination: Pagination is any kind of control system that lets the user browse through pages of search results, archives, or any other kind of continued content. Search results are the o

@renannprado
renannprado / TAO.md
Created April 8, 2020 23:57 — forked from shagunsodhani/TAO.md
Notes on TAO: Facebook’s Distributed Data Store for the Social Graph

TAO

  • Geographically distributed, read-optimized, graph data store.
  • Favors availability and efficiency over consistency.
  • Developed by and used within Facebook (social graph).
  • Link to paper.

Before TAO

  • Facebook's servers directly accessed MySQL to read/write the social graph.

FWIW: I didn't produce the content presented here (the outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.


Effective Engineer - Notes

What's an Effective Engineer?

@renannprado
renannprado / userChrome.css
Created January 8, 2020 10:04
Move Firefox (up until 71?) address bar to the bottom
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/* tabs on bottom of window */
#navigator-toolbox { -moz-box-ordinal-group: 10; }
#TabsToolbar { -moz-box-ordinal-group: 10; }
.urlbarView {
margin-top: -50vh;
}
.tab-background { border-top: none !important; }
#navigator-toolbox::after { border: none; }
@renannprado
renannprado / SSLPoke.java
Last active July 15, 2024 09:06
Java SSL issues
import javax.net.ssl.SSLSocket;
import javax.net.ssl.SSLSocketFactory;
import java.io.*;
/** Establish a SSL connection to a host and port, writes a byte and
* prints the response. See
* http://confluence.atlassian.com/display/JIRA/Connecting+to+SSL+services
*/
public class SSLPoke {
public static void main(String[] args) {
@renannprado
renannprado / keybase.md
Created July 22, 2019 17:49
keybase.md

Keybase proof

I hereby claim:

  • I am renannprado on github.
  • I am renannprado (https://keybase.io/renannprado) on keybase.
  • I have a public key ASDLbyr0k5GrsvoaL8o0Q94lESxYxhlfAe2D16RHV6yORQo

To claim this, I am signing this object: