Skip to content

Instantly share code, notes, and snippets.

View davibusanello's full-sized avatar

Davi Busanello davibusanello

View GitHub Profile
git :init
plugin 'rspec',
:git => 'git://github.com/dchelimsky/rspec.git',
:submodule => true
plugin 'rspec-rails',
:git => 'git://github.com/dchelimsky/rspec-rails.git',
:submodule => true
plugin 'exception_notifier',
:git => 'git://github.com/rails/exception_notification.git',
@davibusanello
davibusanello / jquery.feis.js
Created April 7, 2012 05:57 — forked from paddy2k/jquery.feis.js
Faster Element by ID Selector for jQuery
/*Faster Element By ID Selector - @paddy2k*/(function($){$.id=function(id){return this(document.getElementById(id))}})($);
@davibusanello
davibusanello / gist:3057788
Created July 6, 2012 02:54 — forked from viniciusteles/gist:556029
Sete Atitudes para Hackear a Indústria de Software
Sete Atitudes para Hackear a Indústria de Software
By Klaus Wuestefeld
1) Torne-se excelente.
Seja realmente bom em alguma coisa. Não fique só choramingando ou
querendo progredir às custas dos outros. Não pense q pq vc sentou 4
anos numa faculdade ouvindo um professor falar sobre software q vc
sabe alguma coisa. Jogador de futebol não aprende a jogar bola tendo
# Copy the awesome fonts to ~/.fonts
cd /tmp
git clone http://github.com/gabrielelana/awesome-terminal-fonts
cd awesome-terminal-fonts
git checkout patching-strategy
mkdir -p ~/.fonts
cp patched/*.ttf ~/.fonts

# update the font-info cache
@davibusanello
davibusanello / mongo-docker.bash
Created May 20, 2018 19:03 — forked from davideicardi/mongo-docker.bash
Running mongodb inside a docker container (with mongodb authentication)
# Create a container from the mongo image,
# run is as a daemon (-d), expose the port 27017 (-p),
# set it to auto start (--restart)
# and with mongo authentication (--auth)
# Image used is https://hub.docker.com/_/mongo/
docker pull mongo
docker run --name YOURCONTAINERNAME --restart=always -d -p 27017:27017 mongo mongod --auth
# Using the mongo "localhost exception" (https://docs.mongodb.org/v3.0/core/security-users/#localhost-exception)
# add a root user
@davibusanello
davibusanello / README-Template.md
Created May 30, 2018 03:47 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@davibusanello
davibusanello / DellXPS15_9560_AHCI_RAID.md
Created August 18, 2018 22:52 — forked from chenxiaolong/DellXPS15_9560_AHCI_RAID.md
Switching between AHCI and RAID on the Dell XPS 15 (9560)

Switching between AHCI and RAID on the Dell XPS 15 (9560)

This guide likely applies to other models and, potentially, even laptops from other OEMs that have NVME drives. However, I've only tested this on my Dell XPS 15 (9560) with the OEM Windows installation from the Signature Edition model.

Switching from RAID to AHCI

Switching from RAID to AHCI is significantly simpler than switching from AHCI to RAID. All that's needed is a successful boot to Safe Mode.

  1. To set the default boot mode to Safe Mode, use msconfig.exe or open an admin cmd/PowerShell window and run:
@davibusanello
davibusanello / GitHub-Forking.md
Created December 4, 2018 15:27 — forked from Chaser324/GitHub-Forking.md
GitHub Standard Fork & Pull Request Workflow

Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.

In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.

Creating a Fork

Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j

@davibusanello
davibusanello / GPG-sign-git-commits.md
Created November 2, 2020 02:43 — forked from jonathanwall/GPG-sign-git-commits.md
Signing your Git Commits using GPG on MacOS Sierra/High Sierra

Using GPG

Step 1: Install software

We use the Homebrew package manager for this step.

brew install gpg2 gnupg pinentry-mac       

Step 2: Update ~/.gnupg/gpg-agent.conf

If this file does not exist, create it.

@davibusanello
davibusanello / renew-gpgkey.md
Created January 4, 2023 02:43 — forked from krisleech/renew-gpgkey.md
Renew Expired GPG key

Renew GPG key

Given that your key has expired.

$ gpg --list-keys
$ gpg --edit-key KEYID

Use the expire command to set a new expire date: