Skip to content

Instantly share code, notes, and snippets.

Avatar
😇
I´m a Saint

Alfredo Llanos biojazzard

😇
I´m a Saint
View GitHub Profile
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';
View gulp4css.js
(() => {
'use strict';
/**************** Gulp.js 4 configuration ****************/
const
// development or production
devBuild = ((process.env.NODE_ENV || 'development').trim().toLowerCase() === 'development'),
View gulp3css.js
(() => {
'use strict';
/**************** Gulp.js 3 configuration ****************/
const
// development or production
devBuild = ((process.env.NODE_ENV || 'development').trim().toLowerCase() === 'development'),
View gist:43e0a541b72aea79b721349ea83a9378
### BREW UPGRADE MYSQL
DocumentRoot is /usr/local/var/www.
The default ports have been set in /usr/local/etc/httpd/httpd.conf to 8080 and in
/usr/local/etc/httpd/extra/httpd-ssl.conf to 8443 so that httpd can run without sudo.
To have launchd start httpd now and restart at login:
brew services start httpd
Or, if you don't want/need a background service you can just run:
You can’t perform that action at this time.