Skip to content

Instantly share code, notes, and snippets.

View edpittol's full-sized avatar
👻
Buuuhhh!!!

Eduardo Pittol edpittol

👻
Buuuhhh!!!
  • Aztec Online Solutions
  • Lajeado, RS, Brasil
  • X @edpittol
View GitHub Profile
@donaldpipowitch
donaldpipowitch / README.md
Last active January 29, 2025 18:07
Use GitLab Pages to deploy a Storybook per branch

It's quite straightforward to use GitLab Pages to deploy a Storybook instance per branch (and remove it whenever the branch will be removed). And yeah, it's irony to document this in a GitHub Gist 😅

You just need a .gitlab-ci.yml like this one:

stages:
  - setup
  - build-and-test
  - deployment
  - pages
@lox
lox / make_docker_great_again.sh
Last active January 19, 2023 07:17
Tweak flush and sync settings for Docker for Mac
#!/bin/bash
set -euo pipefail
# via https://github.com/docker/for-mac/issues/668#issuecomment-284028148
cd ~/Library/Containers/com.docker.docker/Data/database
git config --global user.useconfigonly false
git reset --hard > /dev/null
mkdir -p ./com.docker.driver.amd64-linux/disk
touch ./com.docker.driver.amd64-linux/disk/full-sync-on-flush
@johnpbloch
johnpbloch / composer.json
Created April 18, 2013 13:07
Install PHPUnit globally with composer
{
"name": "phpunit",
"description": "PHPUnit Composer Package",
"require": {
"phpunit/phpunit": "3.7.*"
},
"config": {
"bin-dir": "/usr/local/bin/"
}
}