Skip to content

Instantly share code, notes, and snippets.

View dianaarnos's full-sized avatar

Diana Ungaro Arnos dianaarnos

View GitHub Profile
@dianaarnos
dianaarnos / auth_oauth2.md
Last active May 22, 2024 18:14
De Auth a OAuth 2.0 - Mais Simples do Que Parece
@dianaarnos
dianaarnos / add_key.sh
Created September 23, 2022 17:45
Add ssh key to ssh daemon
#!/bin/bash
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/private_key_you_wish_to_add
@dianaarnos
dianaarnos / switch_java_ver.sh
Last active September 23, 2022 17:48
Switch between different java versions installed on Ubuntu Linux
#!/bin/bash
sudo update-alternatives --config java
sudo update-alternatives --config javac
@dianaarnos
dianaarnos / wsl.md
Last active January 9, 2022 16:57
WSL on Win 11

Run Snap successfully (it fails due to a systemd dependency). Source: microsoft/WSL#5126 (comment)

sudo apt-get update && sudo apt-get install -yqq daemonize dbus-user-session fontconfig
sudo daemonize /usr/bin/unshare --fork --pid --mount-proc /lib/systemd/systemd --system-unit=basic.target
exec sudo nsenter -t $(pidof systemd) -a su - $LOGNAME
@dianaarnos
dianaarnos / profilers.md
Last active February 2, 2021 13:56
Profilers - ref

A Evolução de Profilers e Tracers na Netflix - Martin Spier - https://www.youtube.com/watch?v=cgtfkoUH_Hk
analysis tools for Linux ftrace and perf_events - https://github.com/brendangregg/perf-tools
Open source on-host performance monitoring framework - https://github.com/Netflix/vector
Webinar: PHP Profiling with Xdebug - https://www.youtube.com/watch?v=V5MYWBBAMA4
Fundamentals of Performance Profiling - https://smartbear.com/learn/code-profiling/fundamentals-of-performance-profiling/
Sampling profiler for PHP - https://github.com/nikic/sample_prof
phpspy - https://github.com/adsr/phpspy
Introduction to Software Engineering/Testing/Profiling - https://en.wikibooks.org/wiki/Introduction_to_Software_Engineering/Testing/Profiling
Profiling (computer programming) - https://en.wikipedia.org/wiki/Profiling_(computer_programming)
What Is Deterministic Profiling? - https://docs.python.org/3.5/library/profile.html#what-is-deterministic-profiling

@dianaarnos
dianaarnos / pcs2020.md
Last active April 3, 2023 00:10
PHP Communit Summit 2020

Códigos de exemplo: https://github.com/dianaarnos/pcs2020
Slides: https://speakerdeck.com/dianaarnos/pcs2020-php-alem-do-sincrono
Exemplo Parallel: https://github.com/dianaarnos/php-paralelo/blob/master/hello_world.php
Discussão sobre a extensão Parallel - https://www.reddit.com/r/PHP/comments/aquer0/on_parallel_php_the_next_chapter/
Video do Krakjoe falando sobre a extensão Pthreads: https://www.youtube.com/watch?v=HAZfDy6HTos
Doc da extensão parallel no php.net: https://www.php.net/manual/pt_BR/book.parallel.php
Steve Maraspin - Meet a parallel, asynchronous PHP world -https://www.youtube.com/watch?v=dk-D3g2MD2U
Issue anunciando fim da extensão pthreads: krakjoe/pthreads#929
Cooperative multitasking using coroutines (in PHP!) https://nikic.github.io/2012/12/22/Cooperative-multitasking-using-coroutines-in-PHP.html
Parallel PHP: The Next Chapter - https://blog.krakjoe.ninja/2019/02/parallel-php-next-chapter.html

@dianaarnos
dianaarnos / vdpweekend2020-ref
Last active July 17, 2020 20:24
Lista com referências complementares da apresentação no VDP Weekend de 2020
- HackerRank - https://www.hackerrank.com/
- CoderByte - https://coderbyte.com/
- Daily Coding Problem - https://www.dailycodingproblem.com/
- GeeksForGeek - https://www.geeksforgeeks.org/algorithm-practice-question-beginners-set-1/
- Khan Academy - https://www.khanacademy.org/computing/computer-science/algorithms
- Glassdoor - https://www.glassdoor.com.br/
- CoderPad - https://coderpad.io/
@dianaarnos
dianaarnos / phppr-live-2-referencias.md
Last active July 1, 2020 21:14
Links com referências e materiais sobre a extensão Parallel e multithreading

Código de exemplo apresentado na palestra: https://github.com/dianaarnos/php-paralelo
Repositório oficial da extensão Parallel: https://github.com/krakjoe/parallel
Documentação oficial no PHP.net: https://www.php.net/parallel
Blog post do criador, Joe Watkins (krakjoe): https://blog.krakjoe.ninja/2019/02/parallel-php-next-chapter.html
Entrevista do Joe Watkins no PHP Internals News: https://phpinternals.news/11
Exemplo de webcrawler usando Parallel: https://gist.github.com/krakjoe/0ee02b887288720d9b785c9f947f3a0a
PHP Swoole: https://www.swoole.co.uk/