Skip to content

Instantly share code, notes, and snippets.

View edilsonborges's full-sized avatar
🚀

Edilson Borges edilsonborges

🚀
View GitHub Profile
@murparreira
murparreira / plugsugar.js
Last active January 2, 2016 21:09
Plug DJ sugar
/* Desktop Notification script */
/* This one only works on Google Chrome */
API.on(API.CHAT, function(data) {
var notification = window.webkitNotifications.createNotification("", "Nova Mensagem", data.from + " : " + data.message);
notification.show();
setInterval(function() { notification.close() }, 2000);
});
/* Notification script */
@aichbauer
aichbauer / apache, php, mysql for MAC OS X 10.11
Last active January 26, 2021 10:01
How to install or run apache, php, and mysql on Mac OSX 10.11 with the Terminal
/**ALLOW HIDDEN FOLDER**/
defaults write com.apple.finder AppleShowAllFiles YES
sudo killall Finder
/**APACHE**/
sudo apachectl start
sudo apachectl stop
sudo apachectl restart
@jakewtaylor
jakewtaylor / readme.md
Last active January 6, 2024 23:29
VS Code CSS addition to increase readability on file tree.

Increases indentation on the file tree and adds some lines to each directory/file.

Works 15 levels deep, but you can expand it by just adding more of each line thats repeating, i.e.:

  • add another box shadow
    • (n*-20px) 0 0 0 rgba(255, 255, 255, 0.4)
  • add another padding-left
    • .monaco-tree-row[aria-level="n"] { padding-left: ((n-1)*20)px; }
  • add another :before & :after with left positioning
    • .monaco-tree-row[aria-level="n"]:before { left: (((n-1)*20)-9)px; }
  • .monaco-tree-row[aria-level="n"]:after { left: (((n-1)*20)-9)px; }
@dylanmckay
dylanmckay / facebook-contact-info-summary.rb
Last active December 3, 2024 21:48
A Ruby script for collecting phone record statistics from a Facebook user data dump
#! /usr/bin/env ruby
# NOTE: Requires Ruby 2.1 or greater.
# This script can be used to parse and dump the information from
# the 'html/contact_info.htm' file in a Facebook user data ZIP download.
#
# It prints all cell phone call + SMS message + MMS records, plus a summary of each.
#
# It also dumps all of the records into CSV files inside a 'CSV' folder, that is created