Skip to content

Instantly share code, notes, and snippets.

View Xisabla's full-sized avatar

Gautier Miquet Xisabla

View GitHub Profile
@Xisabla
Xisabla / packages.list
Last active August 14, 2018 18:17
Raspberry pi packages to install
apache2
apt-transport-https
build-essential
ca-certificates
curl
dos2unix
gcc
gdb
git
golang-go
@Xisabla
Xisabla / Makefile
Created September 8, 2018 17:40
Makefile help parsing
help: ## Show this help.
@printf "\033[32m%-30s \033[32m %s\n" "VARIABLE NAME" "DEFAULT_VALUE"
@grep -E '^[a-zA-Z_-]+(\?=|=).*$$' $(MAKEFILE_LIST) |sort | awk 'BEGIN {FS = "(?=|=)"}; {printf "\033[36m%-30s \033[0m %s\n", $$1, $$2}'
@printf "\n\033[32m%-30s \033[32m %s\033[0m\n" "RECIPE" "DESCRIPTION"
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "make \033[36m%-30s\033[0m %s\n", $$1, $$2}'
#!/bin/bash
# Standard install
sudo dnf update -y
sudo dnf install arduino -y
sudo dnf install audacity -y
sudo dnf install chromium -y
sudo dnf install cmake -y
@Xisabla
Xisabla / .screenrc
Last active June 15, 2023 17:50
dotfiles
# $Id: screenrc,v 1.15 2003/10/08 11:39:03 zal Exp $
#
# /etc/screenrc
#
# This is the system wide screenrc.
#
# You can use this file to change the default behavior of screen system wide
# or copy it to ~/.screenrc and use it as a starting point for your own
# settings.
#
/*=========================================================================
Project: ${PROJECT_NAME}
File: ${FILE_NAME}
Copyright (c) $YEAR - All rights reserved
Distributed under the MIT License (https://opensource.org/licenses/MIT)
=========================================================================*/

Very basic

git clone https://github.com/Xisabla/DAUville
git config --global user.name "John Doe"
git config --global user.email johndoe@example.com
@Xisabla
Xisabla / proxy.sh
Last active September 10, 2023 10:14
Proxy profile management tool
#!/usr/bin/env bash
#
# A linux tool to create and manage proxy profiles.
#
# The primary purpose of this tool is to allow to easily switch between
# different proxies. Then it allows to create proxy profiles through
# `proxy create` and to switch to create profile through `proxy set`.
# It is also possible to delete old profiles with `proxy delete` and
# to list all avalaible profiles with `proxy list`.
@Xisabla
Xisabla / analysis.py
Created March 6, 2022 13:41
hfinger patched
import sys
import shutil
import tempfile
import os
import argparse
import magic
import subprocess
import json
import logging
@Xisabla
Xisabla / Makefile
Created June 10, 2022 13:10
Makefiles for C project with dynamic libraries (modules)
#[[--------------------------------------- Configuration ---------------------------------------]]#
# Make variables
CC = clang
CFLAGS = -Wall -g -O0 -DDEBUG
LDFLAGS =
LDLIBS = -ldl
MAKEFLAGS += --no-print-directory
@Xisabla
Xisabla / .tmux.conf
Created June 15, 2023 17:48
Some other dotfiles
# -- general -------------------------------------------------------------------
set -g default-terminal "screen-256color"
if 'infocmp -x tmux-256color > /dev/null 2>&1' 'set -g default-terminal "tmux-256color"'
setw -g xterm-keys on
set -s escape-time 10 # faster command sequences
set -sg repeat-time 600 # increase repeat timeout
set -s focus-events on