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 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:
View smoothscroll.coffee
smoothscroll = require 'smoothscroll-polyfill'
smoothscroll.polyfill();
_ss_to_links = ($el)->
$el.each ()->
$(@).on 'click', (e)->
#console.log $(@)
e.preventDefault()
anchor = $(@).attr('href')
@biojazzard
biojazzard / extra-box.less
Created Jun 12, 2018
Boxes with table, table-cell... display
View extra-box.less
/* extra homepage */
.extra-img {
z-index: 0;
position: relative;
//display: table;
width: 100%;
//min-height: 20rem;
background-repeat: no-repeat;
background-position: 50% 50%;
@biojazzard
biojazzard / arlequin-shift-pattern-email.css
Created May 28, 2018
Email Pattern: Arlequin Order Shift Layout Pattern CSS
View arlequin-shift-pattern-email.css
/* Arlequin Order Shift Layout Pattern CSS */
@media only screen and (max-width: 599px) {
td[class="arlequin2col"] .product_image img {
width: 100%;
height: auto !important;
}
}
@media only screen and (max-width: 460px) {
td[class="arlequin2col"] .product { padding: 0 !important; }
View mailchimp-template.css
.templateColumns {
margin: 0 auto;
}
@media only screen and (max-width: 630px){
.templateColumns{
width:100% !important;
}
.templateColumnContainer{
display:block !important;
View mailchimp-template.pug
table.templateColumns.bgcolor(border='0', cellpadding='0', cellspacing='0', width='630')
// Mailchimp 2 Col
tr
td.templateColumnContainer(align='center', valign='top', width='50%')
table(border='0', cellpadding='0', cellspacing='0', width='100%')
tr
td.leftColumnContent
img.columnImage(src='http://placekitten.com/g/480/300', width='315')
h1 L1LLLLLLL
tr
@biojazzard
biojazzard / video2mp3.sh
Created May 5, 2017
video2mp3 -b:320[insane]
View video2mp3.sh
# Sacar el audio de cualquier mpeg, mov, avi... a mp3 -b:320(insane):
find ./ -name "*.mpeg" -exec ffmpeg -i {} -acodec:a libmp3lame -qscale:a 0 {}.mp3 \;
find ./ -name "*.mov" -exec ffmpeg -i {} -acodec:a libmp3lame -qscale:a 0 {}.mp3 \;
find ./ -name "*.avi" -exec ffmpeg -i {} -acodec:a libmp3lame -qscale:a 0 {}.mp3 \;
find ./ -name "*.m4v" -exec ffmpeg -i {} -acodec:a libmp3lame -qscale:a 0 {}.mp3 \;
# ...
# sustituye mpeg por tu extensión...
@biojazzard
biojazzard / ga-autotrack.html
Last active Apr 5, 2019
autotrack.js | Google Analytics
View ga-autotrack.html
<!-- by 1un.es: with love -->
<script>
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', '<!-- your google_analytics_tracking_id -->', 'auto');
// Autotrack plugins available
ga('require', 'urlChangeTracker');
ga('require', 'cleanUrlTracker');
ga('require', 'eventTracker');
ga('require', 'maxScrollTracker');
ga('require', 'outboundLinkTracker');
View ASCII-Folder-List.md

ASCII Markdown List

.
+-- Presupuestos
|   +-- ...
+-- Proyectos
|   +-- 1unes
|   	+-- Documentación
|   	+-- Facturas
|   	+-- src
You can’t perform that action at this time.