Skip to content

Instantly share code, notes, and snippets.

View biojazzard's full-sized avatar
😇
I´m a Saint

Alfredo Llanos biojazzard

😇
I´m a Saint
View GitHub Profile
@biojazzard
biojazzard / ApplescriptQuicktimeFullScreen
Created May 29, 2012 15:53
Applescript Open a Movie in FullScreen
-- Version: QT 7 for OSX 10.6
on run
set unixpath to "/Volumes/Mac HD/Users/Movies/thefilm.mov"
set macfile to (POSIX file unixpath)
delay 1
tell application "QuickTime Player 7"
activate
delay 1
open file macfile
set looping of document 1 to true
@biojazzard
biojazzard / gist:19dea7a987103c3eb473a0ac11dd2f19
Created June 7, 2023 06:56
MP3 to WAV for BOSS RC-500 Looper
ffmpeg -i input.mp3 -acodec pcm_s16le -ar 44100 out.wav
@biojazzard
biojazzard / run-php.sh
Created February 11, 2020 21:23
run PHP in Plesk Obsidian
# shell:
$ /opt/plesk/php/<PHP_VERSION>/bin/php php-script.php
@biojazzard
biojazzard / facebook_page_latest_post_no_php_sdk.php
Created March 6, 2016 11:32
Get Latest Post From a Facebook Page without PHP SDK (Graph Version v2.5)
<?php
/*
1.- Create an App.
2.- Go to: https://developers.facebook.com/tools/explorer/
+ Select your new created app on the right top.
+ Select "Get App Token"
@biojazzard
biojazzard / flac-to-mp3,sh
Created November 1, 2020 14:38
FLAC to mp3 all in current folder
parallel ffmpeg -i {} -qscale:a 0 {.}.mp3 ::: ./*.flac
@biojazzard
biojazzard / NIF-CIF-Validation-Spanish-IDs-w--Bootstrap-+-CoffeeScript.markdown
Created January 22, 2015 13:04
NIF CIF Validation Spanish IDs w/ Bootstrap + CoffeeScript

NIF CIF Validation Spanish IDs w/ Bootstrap + CoffeeScript

CoffeeScript NIF CIF Validation for Spanish Individuals, Small Bussiness and Companies.

Forked Form Here: https://gist.github.com/afgomez/5691823 It had a serious, validation problem returning false positives. This bug HAS BEEN FIXED.

A Pen by Alfredo Llanos on CodePen.

@biojazzard
biojazzard / run-ffmpeg.sh
Created February 15, 2020 10:13
Some ffmpeg
# Clean shity MacOS .mov stuff for instagram
$ ffmpeg -threads 2 -i smileyz.mov -vcodec copy -acodec copy smileyz.mp4
# png + mp3 to video
$ ffmpeg -i test.wav -loop 1 -i test.png -c:a aac -b:a 256k -ar 44100 -c:v libx264 -pix_fmt yuv420p -preset faster -tune stillimage -shortest test.mp4
@biojazzard
biojazzard / Plesk-Help-Clean.md
Created December 12, 2019 15:36
Plesk MayDay Clean Help
@biojazzard
biojazzard / gist:540f5fa86548b9c22349e39beb561b3d
Created November 14, 2019 17:59
httpd.conf | MacOS Catalina | Homebrew
### httpd.conf located at
/usr/local/etc/apache2/2.4
### It loads:
/usr/local/etc/apache2/2.4/other/php73.conf
### The php.ini and php-fpm.ini file can be found in:
/usr/local/etc/php/7.3/
@biojazzard
biojazzard / email-microdata-json.json
Created October 9, 2019 11:41
email microdata json+ld sample
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"description": "Consulta el email de...",
"potentialAction": {
"@type": "ViewAction",
"target": "${URL}",
"name": "Action name long description..."
}