Skip to content

Instantly share code, notes, and snippets.

João Ribeiro rollbackpt

Block or report user

Report or block rollbackpt

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@rollbackpt
rollbackpt / run_log_tail_commands.sh
Last active Aug 20, 2017
Script to Run Multiple Tail Commands in Different Command Line Tabs
View run_log_tail_commands.sh
#!/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'
)
View feedlySlideshow.js
// 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
@rollbackpt
rollbackpt / dabblet.css
Last active Nov 9, 2018
One% CSS Grid - 12 Columns Fluid CSS Grid System
View dabblet.css
/* *********************************************************************************************************************
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%
You can’t perform that action at this time.