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 / rickroll.sh
Created November 21, 2021 19:17
[Rickroll] Troll program to start a rickroll in your terminal #troll
#!/usr/bin/env bash
# Rick Astley in your Terminal.
# By Serene Han and Justine Tunney <3
version='1.1'
rick='http://keroserene.net/lol'
video="$rick/astley80.full.bz2"
# TODO: I'll let someone with mac or windows machine send a pull request
# to get gsm going again :)
audio_gsm="$rick/roll.gsm"
audio_raw="$rick/roll.s16"
@bil0u
bil0u / brainfuck.c
Created November 21, 2021 19:12
[Brainfuck] Short program to read brainfuck files #C #42
#include <stdlib.h>
#include <unistd.h>
#define TAB_SIZE 2048
char *init_tab(void)
{
char *tab;
int i;
i = 0;
@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"
}
@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 / 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 / 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 / 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 / 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 / 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 / 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