Skip to content

Instantly share code, notes, and snippets.

View carlosal1015's full-sized avatar
πŸ‡΅πŸ‡ͺ
Studying mathematics

Oromion carlosal1015

πŸ‡΅πŸ‡ͺ
Studying mathematics
View GitHub Profile
@wildrun0
wildrun0 / compile-ffmpeg.sh
Last active July 18, 2025 06:03
Compiling ffmpeg for Raspberry Pi 4 (script only works fine on RPi OS 32bit). x64 does not support mmal (see https://github.com/raspberrypi/userland/issues/688)
#!/bin/bash
# Note that there's no libdrm because this lib cause errors
sudo apt update -y && sudo apt upgrade -y
sudo apt-get -y install \
autoconf \
automake \
build-essential \
@ld100
ld100 / ArchLinuxWSL2.md
Last active August 8, 2025 16:39
Steps for setting up Arch Linux on WSL2

Migrating from Ubuntu on WSL to ArchLinux on WSL2

Obsolete notice

This document was created back in 2020 and might not be actual nowadays. It is not supported anymore, so use thise information at your own risk.

Upgrading to WSL 2

  • Download WSL2 Kernel
  • run wsl --set-default-version 2 in windows command line, so that all future WSL machine will use WSL2.
@UrsaDK
UrsaDK / Caching multi-stage builds in GA.md
Last active January 21, 2025 12:06
Speed up your multistage builds in GitHub Actions

Caching multi-stage builds in GitHub Actions

Caching Docker builds in GitHub Actions is an excellent article by @dtinth which analyses various strategies for speeding up builds in GitHub Actions. The upshot of the article is a fairly decisive conclusion that the best two ways to improve build times are:

  1. Build images via a standard docker build command, while using GitHub Packages' Docker registry as a cache = Longer initial build but fastest re-build times.

  2. Build your images via docker integrated BuildKit (DOCKER_BUILDKIT=1 docker build), while using a local registry and actions/cache to persist build caches = Fastest initial build but slightly longer re-build times.

The problem

@chepecarlos
chepecarlos / Flisol Live 2020.md
Last active April 25, 2020 16:03
Agenda Flisol Live 2020

Flisol Live 2020

Objetivo: Celebrar el Festival Internacional de SoftWare libre, este aΓ±o en linea

Fecha

Sabado 25 de abril 2020

Horario

@hadi77ir
hadi77ir / PKGBUILD
Last active May 26, 2020 03:18
PKGBUILD for building Arch Linux EasyEDA package (with Electron 3.1.8)
pkgname=easyeda
pkgver=2.0.0
pkgrel=0
pkgdesc="EasyEDA Desktop Client, A Simple and Powerful Electronic Circuit Design Tool"
arch=('x86_64')
license=(custom)
depends=(gconf)
url="https://easyeda.com/page/download"
options=('!strip')
source=('https://image.easyeda.com/files/easyeda-linux-64bit-latest.zip' 'https://github.com/electron/electron/releases/download/v3.1.8/electron-v3.1.8-linux-x64.zip')
@ciscorn
ciscorn / matplotlib_animation_wave.py
Last active December 12, 2022 04:07
matplotlib animation:: 1-d & 2-d wave equation
from mpl_toolkits.mplot3d import Axes3D
from matplotlib.pylab import plt
from matplotlib import animation, cm
import numpy as np
from scipy.signal import convolve, convolve2d
class Wave1D:
K = np.array([1, -2, 1])
@Libbum
Libbum / PKGBUILD.Asl
Created November 28, 2019 10:36
Ipopt 3.13.0
# ASL
pkgname=coinasl
pkgver=1.4.1
pkgrel=1
pkgdesc="COIN-OR autotools harness to build AMPL Solver Library"
arch=('i686' 'x86_64')
url="https://github.com/coin-or-tools/ThirdParty-ASL/"
#license=('')
groups=('coin-or')
@krishnadey30
krishnadey30 / GSoC_2019UnitTestFramework.md
Last active November 9, 2024 14:43
GSoC 2019 Unit Test Framework
@pangyuteng
pangyuteng / CMakeLists.txt
Last active November 1, 2024 08:42
Sample code to build a cython module via Scikit Build; Dockfile also contains instructions for building ITK VTK Boost (with Python 3.7 via Conda) Zlib with CMake in Ubuntu.
cmake_minimum_required(VERSION 3.5)
project(_hello)
# Find python and Boost - both are required dependencies
find_package(PythonLibs REQUIRED)
find_package(PythonInterp REQUIRED)
find_package(PythonExtensions REQUIRED)
find_package(Cython REQUIRED)
find_package(ZLIB REQUIRED)
@KiaraGrouwstra
KiaraGrouwstra / arch.sh
Last active September 26, 2022 18:36
Arch install notes
# follow https://www.addictivetips.com/ubuntu-linux-tips/how-to-install-arch-linux/, except:
# - use `/dev/sdb`
# - let ext4 get 100%, not swap
# - ditch grub for systemd-boot, see https://www.addictivetips.com/ubuntu-linux-tips/set-up-systemd-boot-on-arch-linux/
# - in install step swap `xorg-server-utils` for `xorg-apps` -- just in case also install `dialog`, `dhcpcd`, `linux-firmware` and `wpa_supplicant`
# also see: https://wiki.archlinux.org/index.php/Installation_guide
# bluetooth
sudo pacman -S bluez bluez-utils
systemctl enable bluetooth