Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Osny Netto osnysantos

🏠
Working from home
View GitHub Profile
View gist:2fd3a2586e13010f76baff6f053724c5
diff --git a/indra/newview/lltoolbar.cpp b/indra/newview/lltoolbar.cpp
index 8d4820d..fb1aa99 100644
--- a/indra/newview/lltoolbar.cpp
+++ b/indra/newview/lltoolbar.cpp
@@ -84,8 +84,8 @@
class LLFakeResizeHandle : public LLResizeHandle
{
public:
- LLFakeResizeHandle(const std::string& name, const LLRect& rect, S32 min_width, S32 min_height, ECorner corner = RIGHT_BOTTOM )
- : LLResizeHandle(name, rect, min_width, min_height, corner )
@osnysantos
osnysantos / application.html.slim
Created Aug 23, 2016 — forked from hmans/application.html.slim
Application layout for Rails (4), Slim style.
View application.html.slim
doctype html
html
head
title My App
meta name="viewport" content="width=device-width, initial-scale=1.0"
= stylesheet_link_tag "application", media: 'all', 'data-turbolinks-track' => true
= javascript_include_tag "application", 'data-turbolinks-track' => true
= csrf_meta_tags
body
View *.rb
ActiveRecord::Base.connection.tables.each do |t|
ActiveRecord::Base.connection.reset_pk_sequence!(t)
end
View sublime-text-3-setup.md

Sublime Text 3 Setup

Install Package Control

Install Package Control for easy package management.

  1. Open the console with Ctrl+`
  2. Paste in the following:
@osnysantos
osnysantos / mac-dev-setup.md
Last active May 20, 2021 — forked from kevinelliott/osx-10.10-setup.md
MacOS Sierra Dev Setup
View mac-dev-setup.md

MacOS Sierra Dev Setup

Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your own needs.

Install Software

@osnysantos
osnysantos / 0_reuse_code.js
Created Jun 26, 2016
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@osnysantos
osnysantos / digital_ocean_setup.md
Created Feb 3, 2016 — forked from ChuckJHardy/digital_ocean_setup.md
DigitalOcean Ubuntu 14.04 x64 + Rails 4 + Nginx + Unicorn + PostgreSQL + Capistrano 3 Setup Instructions
View digital_ocean_setup.md

DigitalOcean Ubuntu 14.04 x64 + Rails 4 + Nginx + Unicorn + PostgreSQL + Capistrano 3

Create a Droplet

SSH into Root

$ ssh root@123.123.123.123

Change Root Password