Skip to content

Instantly share code, notes, and snippets.

Avatar
😃

Emilio Cabrera emilio1625

😃
View GitHub Profile
View palabras.py
letters = set('áÁéÉíÍóÓúÚoOiIlLeEaAsSzZgGtTbBcCdDfF')
with open("Spanish.dic") as f:
words = f.read().splitlines()
for word in words:
if letters >= set(word):
print(word)
View palabras :D
ABS
ADSL
Abad
Abadía
Abalá
Abasolo
Abasticos
Abello
Aboabo
Acacias
@emilio1625
emilio1625 / bandit.overthewire.sh
Last active Mar 31, 2020
Script to help you to connect to the next level of the bandit game of overthewire.org
View bandit.overthewire.sh
#!/bin/bash
# $1 = starting level, zero if unset
# $2 = end level, 34 if unset
NORMAL="\e[0m"
RED="\e[1;31m"
i=${1:-0}
end=${2:-34}
@emilio1625
emilio1625 / convert_videos.sh
Created Nov 30, 2018
Converts MOV videos to MKV using FFMPEG and NVIDIA HW accel
View convert_videos.sh
#!/bin/bash
for video in *; do
extension="${video##*.}"
nombre="${video%.*}"
if [ $extension == "MOV" ]; then
ffmpeg -hwaccel cuvid -c:v h264_cuvid -i $nombre.$extension -c:v h264_nvenc -preset slow $nombre.mkv
if [ $? -ne 0 ]; then
echo $nombre.$extension >> failed.txt
fi
fi
View str27seg.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
File: str27seg.py
Author: emilio1625
Email: emilio1625@gmail.com
Github: https://github.com/emilio1625
Description: Creates a hex file with the bytes needed to display a string in a
7 segment display. Useful for programming an EEPROM to display text.
"""
@emilio1625
emilio1625 / sp
Last active Jul 4, 2018 — forked from rarrais/sp
sp is a command-line client for Spotify's dbus interface. Play, pause, skip and search tracks from the comfort of your command line.
View sp
#!/usr/bin/env bash
#Edited to allow for authentication with Spotify API required for search function.
#
# This is sp, the command-line Spotify controller. It talks to a running
# instance of the Spotify Linux client over dbus, providing an interface not
# unlike mpc.
#
# Put differently, it allows you to control Spotify without leaving the comfort
@emilio1625
emilio1625 / gst-omx_install.sh
Last active Apr 24, 2018
Compilling gst-omx on fedberry 27 (fedora)
View gst-omx_install.sh
# Setup a development enviroment
sudo dnf group install "Development Tools" "Development Libraries"
sudo dnf install gstreamer1-plugins-base-devel gstreamer1-plugins-base-devel libtool raspberrypi-vc-libs-devel
# Maybe (not) necessary
sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
sudo dnf install gstreamer1-plugins{-good,-ugly,-bad{-free,-nonfree,-freeworld}} ffmpeg libomxil-bellagio
# Clone the repo (github mirror)
git clone -b 1.12 https://github.com/GStreamer/gst-omx.git
You can’t perform that action at this time.