Skip to content

Instantly share code, notes, and snippets.

View Gumichan01's full-sized avatar
💻
I am back

LuxonJP Gumichan01

💻
I am back
View GitHub Profile
@Gumichan01
Gumichan01 / audeo.sh
Created January 28, 2023 19:45
A simple script I use in order to generate a video from audio
#!/bin/bash
# Generate video from audio and a cover image
if (( $# < 3 )); then
echo "Usage: audeo.sh <img_file> <audio_file> <dest-video-file>"
else
ffmpeg -i $2 -loop 1 -i $1 -loop 1 -filter_complex "[0:a]showwaves=s=1920x200:mode=cline:colors=0xFFFFFF|0x333333[fg];[1:v]scale=1920:-1[bg];[bg][fg]overlay=shortest=1:820:format=auto,format=yuv420p[v]" -map "[v]" -map 0:a -c:v libx264 -c:a copy -shortest $3
fi
@Gumichan01
Gumichan01 / docker-bashrc
Last active January 10, 2020 08:58
Simple Jib + docker aliases
# Jib
alias mvn-jbuild='mvn jib:build'
alias mvn-jdocker='mvn jib:dockerBuild'
alias gradle-jbuild='gradle jib'
alias gradle-jdocker='gradle jibDockerBuild'
# Docker
alias docker-img='docker images'
alias docker-history='. ~/bin/docker-image-history.sh'
alias docker-ps='docker process'
@Gumichan01
Gumichan01 / appimage-tree.sh
Last active May 20, 2018 12:58
Simple script for automatically creating an 'AppDir' in order to create an AppImage
#!/usr/bin/env bash
#
# Simple script for automatically creating an 'AppDir'
#
# https://github.com/AppImage/AppImageKit/wiki/AppDir
# https://github.com/AppImage/AppImageKit/wiki/Creating-AppImages
#
SCRIPT=`basename $0`
@Gumichan01
Gumichan01 / build-lunatix.md
Last active September 7, 2018 09:48
LunatiX - Build

How to build LunatiX

This is a simple way to install LunatiX on Linux. This method works on Ubuntu 14.04+ and Debian. It should also work on other Linux distributions.

Duration : 30-60 mins

Commands

@Gumichan01
Gumichan01 / circle.cpp
Last active August 20, 2024 14:29
[SDL2] Draw and fill a circle
int
SDL_RenderDrawCircle(SDL_Renderer * renderer, int x, int y, int radius)
{
int offsetx, offsety, d;
int status;
CHECK_RENDERER_MAGIC(renderer, -1);