Skip to content

Instantly share code, notes, and snippets.

View bil0u's full-sized avatar
🚀
Always in space

Ugo Popée bil0u

🚀
Always in space
  • Toulouse
View GitHub Profile
@bil0u
bil0u / macos-config.sh
Last active June 11, 2019 14:59 — forked from brandonb927/osx-for-hackers.sh
[macOS configuration] Performs an hard customization of macOS. Warning : this may not work on all macOS versions. #configuration #bash
#!/bin/sh
###
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos
###
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx
@bil0u
bil0u / docker-commands.md
Last active June 11, 2019 15:17
[Docker commands] Some useful docker commands #cheatsheet #docker
List Docker CLI commands

docker
docker <subcommand> --help

Display Docker version and info

docker version
docker info

@bil0u
bil0u / gitflow-commands.md
Last active June 19, 2019 14:05
[Git flow commands] Some useful git flow commands #gitflow #cheatsheet

INITIALIZE

Start using git-flow by initializing it inside an existing git repository

git flow init

FEATURES

Start/finish developing a new feature
@bil0u
bil0u / kubernetes-commands.md
Last active June 26, 2019 23:36
[Kubernetes commands] Some useful kubernetes commands #cheatsheet #kubernetes
List Kubernetes CLI commands

kubectl
kubectl <subcommand> --help

Create resource from file

kubectl create -f <path/to_file.yml>

@bil0u
bil0u / helm-commands.md
Last active June 27, 2019 00:32
[Helm commands] Some Helm useful commands #cheatsheet #helm #kubernetes
List Helm CLI commands

helm
helm <subcommand> --help

Add, update and list a repo

helm repo add <repo_name> <repo_url>
helm repo update
helm search -l

@bil0u
bil0u / git-commands.md
Created June 28, 2019 23:14
[Git commands] Some git useful commands #cheatsheet #git

Change remote url of a repo

git remote set-url <remote_name> <repo_http_or_ssh_url>

@bil0u
bil0u / git-repo-best-practices.md
Last active June 28, 2019 23:49
[Git repository best practices] Some best practices ot manage properly a git repo #git #bestpractices

Init repo

  • Set the remote URL

  • Create a .gitignore

  • Add a README.md

  • Init git flow * : git flow init

    Please use these prefixes to configure flow. Re-run git flow init -f if you made any mistake to override.

Key | Value

@bil0u
bil0u / init_env.sh
Created October 25, 2019 01:36
[Init .env] Asks for environment variable values #script #bash #env
#!/usr/bin/env bash
ENV_TMP="/tmp/.env_tmp"
ENV_FINAL=".env"
ask()
{
# Displaying prompt for current item
echo -n "[${1}] > ${2}"
[[ -n "${3}" ]] && echo -n " (default ${3})"
@bil0u
bil0u / nativescript-vue_class_components.md
Last active September 24, 2020 09:57
[NativeScript-Vue Class Components] Cheatsheet for Nativescript-Vue class component syntax #nativescript-vue #vuejs #cheatsheet

Input properties

Consider the following component :

<template>

	<Label :text="msg"/>

</template>
@bil0u
bil0u / docker-entrypoint.sh
Last active September 6, 2021 00:53
[Docker Entrypoint] Docker entrypoint template which handles multiple commands #docker #script
#!/usr/bin/env sh
# ---------------
# App Entrypoints
# ---------------
run_dev() {
echo "Starting development server"
}