Skip to content

Instantly share code, notes, and snippets.

View Carleslc's full-sized avatar

Carlos Lázaro Costa Carleslc

View GitHub Profile
@Carleslc
Carleslc / ffmpeg-formats.txt
Last active February 6, 2023 22:32
ffmpeg -formats
ffmpeg version 4.2.7-0ubuntu0.1 Copyright (c) 2000-2022 the FFmpeg developers
built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
configuration: --prefix=/usr --extra-version=0ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-li
@Carleslc
Carleslc / knight-tour-8.py
Last active August 4, 2020 01:24
Solve Knight's Tour problem graphically step by step using Warndsdorff's rule on a classic chess board
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# KNIGHT'S TOUR PROBLEM
# https://en.wikipedia.org/wiki/Knight%27s_tour
# This program solves the problem using Warndsdorff's rule for a 8x8 board
# Further investigation: https://github.com/douglassquirrel/warnsdorff/blob/master/5_Squirrel96.pdf?raw=true
@Carleslc
Carleslc / iframe.html
Created July 14, 2020 20:34
Full Page Iframe Embed
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Full Page Iframe Embed</title>
<!-- Style -->
@Carleslc
Carleslc / thank-you.html
Created July 14, 2020 20:31
Thank You Page
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Recurso a&ntilde;adido</title>
<!-- Style -->
@Carleslc
Carleslc / redirect.html
Last active July 14, 2020 20:30
Redirect Page
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Redirecting...</title>
<!-- Redirect -->
@Carleslc
Carleslc / virtualenv.sh
Created July 1, 2020 13:42
Install and activate Python environment with virtualenv
sudo pip install virtualenv
virtualenv env
. env/bin/activate # Bash/Tcsh console
#. env/bin/activate.fish # Fish console
@Carleslc
Carleslc / n-queens-backtracking.py
Created April 30, 2020 07:57
N queens problem solver (backtracking)
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# N queens problem
# https://en.wikipedia.org/wiki/Eight_queens_puzzle
# usage: n-queens-backtracking.py [-h] [--n N] [--verbose] [--count-only] [--first]
# [--solution SOLUTION]
# optional arguments:
@Carleslc
Carleslc / n-queens-permutations.py
Last active April 30, 2020 08:09
N queens problem solver (brute-force permutations)
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# N queens problem
# https://en.wikipedia.org/wiki/Eight_queens_puzzle
# usage: n-queens-permutations.py [-h] [--n N] [--verbose] [--count-only] [--first]
# [--solution SOLUTION]
# optional arguments:
@Carleslc
Carleslc / paypal-donation
Created May 13, 2019 18:19
PayPal Donation with Item Name
https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=carlos.lazaro.costa@gmail.com&currency_code=EUR&amount=29.99&&item_name=Test
@Carleslc
Carleslc / gitc
Last active May 13, 2019 16:55
Git utility for grouping pull/status & add/commit/push
#!/bin/bash
set -e
if [ "$1" == "-h" ]; then
echo "Pull & Status with: gitc"
echo "Stage and commit all changes with: gitc MESSAGE"
elif [ "$1" != "" ]; then
git pull --all
git add -A
git commit -m "$*"
git push --all