Skip to content

Instantly share code, notes, and snippets.

@rollbackpt
rollbackpt / dabblet.css
Last active November 9, 2018 05:31
One% CSS Grid - 12 Columns Fluid CSS Grid System
/* *********************************************************************************************************************
One% CSS Grid - 12 Columns Fluid CSS Grid System
Why One% ? Let’s count ...
we have 12 columns (magic number divided by 2, 3, 4, 6)
for 12 columns we need 11 margins
so if we count margin 3%, then 3% * 11 margins = 33%
@rollbackpt
rollbackpt / run_log_tail_commands.sh
Last active August 20, 2017 01:48
Script to Run Multiple Tail Commands in Different Command Line Tabs
#!/bin/bash
# Blog Post: http://joaoperibeiro.com/command-line-script-to-launch-multiple-tabs/
# Array of commands to run in different tabs
commands=(
'tail -f /var/log/apache2/access.log'
'tail -f /var/log/apache2/error.log'
'tail -f /usr/local/var/postgres/server.log'
)
// this code is not amazing. Was not suppose to be...
// like I was lazy to check the news, I was also lazy to code ahahah
// check the reason of this gist here: https://www.youtube.com/watch?v=7w9p3beJHyA
// define slideshow time in seconds
var slideTime = 3;
// fail safe clear
window.feedlySlide = undefined;
$(document).on('keyup', function(e) {
if(e.which == 81) { // use 'q' key to start the slideshow