Skip to content

Instantly share code, notes, and snippets.

View danielpetrica's full-sized avatar
🏠
Working from home

Daniel, Petrica Andrei-Daniel danielpetrica

🏠
Working from home
View GitHub Profile
@yehgdotnet
yehgdotnet / install_phpzip.md
Last active February 7, 2023 13:14
MAMP PRO for Mac OSX - Installing PHP ZIP extension

From Terminal

# install dependencies
brew install autoconf # required by pecl 
brew install libzip


# install zip extenion in your selected MAMP PHP version 
ls /Applications/MAMP/bin/php/
@simonghales
simonghales / revised.ts
Last active March 23, 2024 23:26
Running a game loop on a web worker
export const createNewPhysicsLoopWebWorker = (stepRate: number) => {
return new Worker('data:application/javascript,' +
encodeURIComponent(`
var start = performance.now();
var updateRate = ${stepRate};
function getNow() {
return start + performance.now();
}
@danielpetrica
danielpetrica / Readme.md
Last active May 14, 2022 18:03
A docker compose example file to use with laravel projects locally

A docker compose example file to use with laravel projects for development on local machines (tested with wsl2).

Before starting you should startup a docker network called local_docker from the cli. If you don't need to connect to external dockers you can remove the network configs altogheter.

Feel free to change the services name. PLease set the .env file before starting docker.