Skip to content

Instantly share code, notes, and snippets.

Avatar
😇
I´m a Saint

Alfredo Llanos biojazzard

😇
I´m a Saint
View GitHub Profile
@biojazzard
biojazzard / facebook_page_latest_post_no_php_sdk.php
Created Mar 6, 2016
Get Latest Post From a Facebook Page without PHP SDK (Graph Version v2.5)
View facebook_page_latest_post_no_php_sdk.php
<?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 Nov 1, 2020
FLAC to mp3 all in current folder
View flac-to-mp3,sh
parallel ffmpeg -i {} -qscale:a 0 {.}.mp3 ::: ./*.flac
@biojazzard
biojazzard / NIF-CIF-Validation-Spanish-IDs-w--Bootstrap-+-CoffeeScript.markdown
Created Jan 22, 2015
NIF CIF Validation Spanish IDs w/ Bootstrap + CoffeeScript
View NIF-CIF-Validation-Spanish-IDs-w--Bootstrap-+-CoffeeScript.markdown

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.

View run-ffmpeg.sh
# 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 / run-php.sh
Created Feb 11, 2020
run PHP in Plesk Obsidian
View run-php.sh
# shell:
$ /opt/plesk/php/<PHP_VERSION>/bin/php php-script.php
@biojazzard
biojazzard / Plesk-Help-Clean.md
Created Dec 12, 2019
Plesk MayDay Clean Help
View Plesk-Help-Clean.md
@biojazzard
biojazzard / gist:540f5fa86548b9c22349e39beb561b3d
Created Nov 14, 2019
httpd.conf | MacOS Catalina | Homebrew
View gist:540f5fa86548b9c22349e39beb561b3d
### 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 Oct 9, 2019
email microdata json+ld sample
View email-microdata-json.json
<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..."
}
View keybase.md

Keybase proof

I hereby claim:

  • I am biojazzard on github.
  • I am biojazzard (https://keybase.io/biojazzard) on keybase.
  • I have a public key ASCThVK3COVKLw-N2AgYMfFXpGe6rOer17S85Ypp1n3azgo

To claim this, I am signing this object:

View css-layout-hack.js
// create a bookmark and use this code as the URL, you can now toggle the css on/off
// thanks+credit: https://dev.to/gajus/my-favorite-css-hack-32g3
javascript: (function() {
var styleEl = document.getElementById('css-layout-hack');
if (styleEl) {
styleEl.remove();
return;
}
styleEl = document.createElement('style');
styleEl.id = 'css-layout-hack';
You can’t perform that action at this time.