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 / Makefile
Created September 14, 2025 01:06
Makefile - C Project
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: upopee <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2018/01/15 11:05:28 by upopee #+# #+# #
# Updated: 2018/02/20 19:49:39 by upopee ### ########.fr #
# #
@bil0u
bil0u / Makefile
Last active September 14, 2025 01:05
Makefile - C Libraries
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: upopee <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2016/11/28 11:42:57 by upopee #+# #+# #
# Updated: 2018/02/21 05:20:49 by upopee ### ########.fr #
# #
@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 / 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
@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