Skip to content

Instantly share code, notes, and snippets.

Ricardo Nascimento RicardoWEBSiTE

Block or report user

Report or block RicardoWEBSiTE

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
RicardoWEBSiTE /
Created May 2, 2017 — forked from erichrobinson/
SwitchResX Configuration

#SwitchResX Settings for LG 21:9 UltraWide

SwitchResX is a utility that allows users to override the default resolution settings in OSX. For more information, including download links, vist .

##Disabling System Integrity Protection (SIP)

If you are running OSX 10.11 or higher, SIP must be disabled. To disable SIP do the following:

  • Boot into the recovery partition by pressing CMD + R when starting up your Mac.
  • Once in recovery mode, open a terminal window.
  • Type the command csrutil disable
# sudo apt-get update
# sudo apt-get install git automake make libcurl4-openssl-dev libssl-dev -y
# git clone
# cd cpuminer-multi/
# ./
# ./configure --with-crypto --with-curl
# make
# # start the miner
# ./cpuminer -a cryptonight -o stratum+tcp:// -u -p x
RicardoWEBSiTE /
Created Feb 11, 2014
Sync installed packages & preferences across machines with Dropbox
echo -n "Sublime Text 2 or 3? "
read version
echo "Removing file system packages"
rm -r ~/Library/Application\ Support/Sublime\ Text\ $version/Installed\ Packages
rm -r ~/Library/Application\ Support/Sublime\ Text\ $version/Packages
rm -r ~/Library/Application\ Support/Sublime\ Text\ $version/Pristine\ Packages
RicardoWEBSiTE /
Created Feb 5, 2014
Vagrant Bootstrapping Ubuntu Precise 32bit for Laravel 4, Apache 2.2.22, PHP 5.4, MySQL 5.5 , Vim, cURL, Git, Composer, pip, HTTPie
#!/usr/bin/env bash
# Configurable variables
echo ''
echo ' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
echo ' Bootstrapping Ubuntu Precise 32bit for Laravel 4'
View vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Configure your Laravel 4 project for this virtual machine
# 1- Add this environment in your project's start.php file:
# bootstrap/start.php:
# $env = $app->detectEnvironment(array(
# 'vagrant' => array('vagrant-laravel4')

Mac web developer apps

This gist's comment stream is a collection of webdev apps for OS X. Feel free to add links to apps you like, just make sure you add some context to what it does — either from the creator's website or your own thoughts.

— Erik

RicardoWEBSiTE /
Created Sep 3, 2013
PHP References Documentation and Examples


A database system.

Logging into MySQL

$ mysql




To create a new object, use the new keyword followed by a call to a constructor function. Javascript provides the Object() constructor out-of-the-box:

var toilet = new Object();


Once you have an object, you can set and get properties on it, like this:

You can’t perform that action at this time.