Skip to content

Instantly share code, notes, and snippets.

@jeromedumas
jeromedumas / docker_utils.sh
Created August 8, 2019 14:26
Commandes dockers utiles
# secure cleaning with docker
docker system prune
# remove all untagged docker images
docker rmi -f $(docker images | grep "<none>" | awk "{print \$3}")
# remove all unused docker images
docker images -q |xargs docker rmi
@jeromedumas
jeromedumas / Chuck_Norris_API
Last active October 3, 2018 14:02
Formation Ionic
API_BASE_URL : https://formation-ionic.herokuapp.com
#### POST `/users`
You can do a POST to `/users` to create a new user.
The body must have:
* `username`: The username
* `password`: The password
@jeromedumas
jeromedumas / git_branch_rename.sh
Last active August 8, 2019 14:17
[Git] Rename git branch locally and remotely
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
@jeromedumas
jeromedumas / create_ipa.sh
Created February 5, 2018 08:30
Building Ionic iOS Release And Generate ipa File Script
#!/bin/bash
# Thanks to: https://gist.github.com/DavidFrahm/4409d6b74e46377e7be7
# Usage: ./create_ipa.sh <Scheme Name> <Provisioning Profile>
echo "Building Ionic iOS release..."
ionic build --release ios
pushd platforms/ios/
echo "Building archive file..."
xcodebuild -scheme "$1" -configuration Release clean archive -archivePath "build/$1.xcarchive"
@jeromedumas
jeromedumas / README.txt
Last active November 3, 2017 14:07
docker-compose with mysql/phpmyadmin
Create this directories structure:
.
├── docker-compose.yml
├── dump
└── myDb.sql
Start the docker container with docker compose command :
docker-compose up -d
Manual version :