Skip to content

Instantly share code, notes, and snippets.

View dianaarnos's full-sized avatar

Diana Ungaro Arnos dianaarnos

View GitHub Profile
@dianaarnos
dianaarnos / dockerfile_python
Last active May 8, 2020 15:04
Basic python 3 Dockerfile
FROM python:3-alpine
WORKDIR /usr/src/app
COPY requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
COPY src/ .
#VOLUME src/ /usr/src/app
@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/

@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 / pcs2020.md
Last active April 3, 2023 00:10
PHP Communit Summit 2020
@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 / 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 / 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