Skip to content

Instantly share code, notes, and snippets.

View kyuumeitai's full-sized avatar

Álex Acuña Viera kyuumeitai

View GitHub Profile
@kyuumeitai
kyuumeitai / ffmpegloop.sh
Created January 2, 2020 19:36
extract screenshots from video folder
#! /bin/bash
srcExt=$1
destExt=$2
srcDir=$3
destDir=$4
opts=$5
@kyuumeitai
kyuumeitai / gist:28e605a9c4753dee4bacbdb62e0ab3fb
Created May 22, 2019 04:15
extract all subs from mkv files assuming that are srts
find . -iname \*.mkv -exec ffmpeg -i {} -map 0:s:0 {}.srt \;
@kyuumeitai
kyuumeitai / gist:4c6ceadd6b32dcacb1d444fad0e84665
Created February 27, 2019 18:51
FFMPEG flac + image to video
ffmpeg -loop 1 -i aa.jpg -i bb.flac -c:a copy -shortest cc.mkv
@kyuumeitai
kyuumeitai / c
Created December 30, 2018 15:28
idchanger
/*
* This program is derived from code bearing the following Copyright(s)
/* -*- linux-c -*-
* _ _ ____ __ _ ___ ____ ____ __ _ _ _ _ |
* . \/ |--| | \| | |--< [__] | \| | _X_ | s e c u r e s y s t e m s
*
* .vt|ar5k - PCI/CardBus 802.11a WirelessLAN driver for Atheros AR5k chipsets
*
* Copyright (c) 2002, .vantronix | secure systems
@kyuumeitai
kyuumeitai / remove.py
Created November 19, 2018 23:26
convert unicode filenames to pure ascii
#!/usr/bin/env python
# convert unicode filenames to pure ascii
import os
import sys
import glob
import unicodedata
EXT = u'*.*'
@kyuumeitai
kyuumeitai / gist:05f0b088bed73cec74dba8bf46ee4f7d
Created November 9, 2018 13:19
My ffmpeg video settings for background loop
ffmpeg -i loop-testimonio-1.mp4 -vcodec libx264 -preset veryslow -f mp4 -crf 26 -s 960x540 -an loop-testimonio-1-compressed.mp4
@kyuumeitai
kyuumeitai / nginx.conf
Created January 12, 2018 15:52 — forked from nrollr/nginx.conf
NGINX config for SSL with Let's Encrypt certs
# Advanced config for NGINX
server_tokens off;
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options nosniff;
# Redirect all HTTP traffic to HTTPS
server {
listen 80;
server_name www.domain.com domain.com;
return 301 https://$host$request_uri;
@kyuumeitai
kyuumeitai / piwik-nginx.conf
Created September 6, 2017 17:31 — forked from xenithorb/piwik-nginx.conf
Piwik flat-file nginx configuration
#-*- mode: nginx; mode: flyspell-prog; mode: autopair; ispell-local-dictionary: "american" -*-
## Define a zone for limiting the number of simultaneous
## connections nginx accepts. 1m means 32000 simultaneous
## sessions. We need to define for each server the limit_conn
## value refering to this or other zones.
## ** This syntax requires nginx version >=
## ** 1.1.8. Cf. http://nginx.org/en/CHANGES. If using an older
## ** version then use the limit_zone directive below
## ** instead. Comment out this
## ** one if not using nginx version >= 1.1.8.
@kyuumeitai
kyuumeitai / gist:cb0c78794719e4d278a7f3c0bf816c33
Created July 6, 2017 17:00 — forked from davidnunez/gist:1404789
list all installed packages in android adb shell
pm list packages -f
@kyuumeitai
kyuumeitai / package.json
Created March 21, 2017 22:02 — forked from corysimmons/package.json
babel, sass, npm-run-all
{
"devDependencies": {
"babel-cli": "^6.10.1",
"babel-preset-es2015": "^6.9.0",
"babel-preset-stage-0": "^6.5.0",
"node-sass": "^3.8.0",
"npm-run-all": "^2.2.2"
},
"babel": {
"presets": [