Skip to content

Instantly share code, notes, and snippets.

View ivanrosolen's full-sized avatar
:octocat:
....

Ivan Rosolen ivanrosolen

:octocat:
....
  • Stone
  • São Paulo, Brasil
View GitHub Profile
@amysimmons
amysimmons / js-tricky-bits.md
Last active October 30, 2024 11:38
Understanding closures, callbacks and promises in JavaScript

#Understanding closures, callbacks and promises

For a code newbie like myself, callbacks, closures and promises are scary JavaScript concepts.

10 months into my full-time dev career, and I would struggle to explain these words to a peer.

So I decided it was time to face my fears, and try to get my head around each concept.

Here are the notes from my initial reading. I'll continue to refine them as my understanding improves.

@ursuad
ursuad / kafka-cheat-sheet.md
Last active March 12, 2025 10:08
Quick command reference for Apache Kafka

Kafka Topics

List existing topics

bin/kafka-topics.sh --zookeeper localhost:2181 --list

Describe a topic

bin/kafka-topics.sh --zookeeper localhost:2181 --describe --topic mytopic

Purge a topic

bin/kafka-topics.sh --zookeeper localhost:2181 --alter --topic mytopic --config retention.ms=1000

... wait a minute ...

@sophiaphillipa
sophiaphillipa / Dockerfile
Last active May 15, 2022 06:39
Configuring PHPStorm to work with xDebug and Docker, by listening.
FROM php:7-fpm
RUN apt-get update && \
apt-get install -y \
zlib1g-dev \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng12-dev
@sophiaphillipa
sophiaphillipa / compile_php_mongodb_driver.md
Last active March 15, 2019 18:57
Compile PHP MongoDb Driver for php 7 (even if you have more than one php on env)

Compile PHP MogoDbDriver for php 7

This gist took PHP - Manually Installing the MongoDB PHP Driver, as reference.

First locate your php-config file. To do so, you can trace it with locate php-config. It will be something like this:

/usr/php/7.0.9/exec/bin/php-config

It's the file that has all compiled php settings, and it will be used to tell config command, wich PHP should be compiled for.

@lisawolderiksen
lisawolderiksen / git-commit-template.md
Last active May 20, 2025 16:35
Use a Git commit message template to write better commit messages

Using Git Commit Message Templates to Write Better Commit Messages

The always enthusiastic and knowledgeable mr. @jasaltvik shared with our team an article on writing (good) Git commit messages: How to Write a Git Commit Message. This excellent article explains why good Git commit messages are important, and explains what constitutes a good commit message. I wholeheartedly agree with what @cbeams writes in his article. (Have you read it yet? If not, go read it now. I'll wait.) It's sensible stuff. So I decided to start following the

How to facilitate a retrospective

The role of Facilitator is fundamental for almost every meeting. The Facilitator ensures that the whole group is empowered to make decisions and that every individual has their voice heard.

During a retrospective, the Facilitator role is crucial. In a retrospective, it is ideal that everyone has at least some degree of participation, and it is the Facilitator that helps the participants with that.

#!/usr/bin/env bash
set -euo pipefail
declare -r IFS=$'\n'
declare -r SPAWNED_LIST=$(mktemp)
declare -r SPAWNED_LIMIT=20
task() {
@g4rcez
g4rcez / espanso.yml
Last active January 21, 2025 11:25
Configuração do espanso gerada pelo meu arquivo de configuração Typescript + Deno
matches:
- label: "Trigger: ;url\n\n\n \r```text\n \r$($HOME/.local/bin/mise which deno) run --allow-read $HOME/dotfiles/espanso/main.ts url --value \"$ESPANSO_CLIPBOARD\"\n \r```\n "
replace: '{{url}}'
trigger: ;url
vars:
- name: clipboard
type: clipboard
- name: url
params:
cmd: >-