Skip to content

Instantly share code, notes, and snippets.

@lumin3000
lumin3000 / build_raylib_for_sonoma.sh
Created April 25, 2024 06:04 — forked from wilsonsilva/build_raylib_for_sonoma.sh
Build raylib 4.5 dylib for macOS Sonoma
#!/bin/bash
FIXED_MINIAUDIO_URL="
https://raw.githubusercontent.com/mackron/miniaudio/fe5f17ecf3189c680855b030467bcfa9f8d26143/miniaudio.h"
curl -L $FIXED_MINIAUDIO_URL -o src/external/miniaudio.h
mkdir -p build
cd build
cmake \
#!/bin/bash
# README: A more updated version is on the comments by (ashmna)[https://gist.github.com/ashmna]
# See at: https://gist.github.com/allangarcia/938b052a7d55d1652052e4259364260b?permalink_comment_id=4265898#gistcomment-4265898
# this is for tools required
brew update
brew install ninja
brew install cmake
@lumin3000
lumin3000 / osx-setup.sh
Created April 17, 2018 04:48 — forked from somebox/osx-setup.sh
Set up an OSX machine from zero to awesome. Uses Homebrew (and cask, fonts, etc). Focused on Ruby/Rails development, includes rvm, xquartz, editor fonts, sublime text, and many tools.
#!/bin/bash
# A script to set up a new mac. Uses bash, homebrew, etc.
# Focused for ruby/rails development. Includes many utilities and apps:
# - homebrew, rvm, node
# - quicklook plugins, terminal fonts
# - browsers: chrome, firefox
# - dev: iterm2, sublime text, postgres, chrome devtools, etc.
# - team: slack, dropbox, google drive, skype, etc
Rails3 - CheatSheet - CommandLine
rails new ApplicationName – Create a new application
rails _3.0.9_ new ApplicationName – Create a new application with a specific version of rails
rails generate/g model ModelName – Creates a model with the specified model_name
rails generate/g controller ControllerName – Creates a controller with the specified controller_name
rails generate/g migration MigrationName – Creates a migration with the specified migration_name
rails generate/g scaffold ModelName ControllerName – A shortcut for creating your controller, model and view files etc.
rails destroy controller ControllerName – Destroys the created controller and its related file.
rails destroy model - Destroys the created model and its related file.
@lumin3000
lumin3000 / gist:3274214
Created August 6, 2012 12:48 — forked from g3d/gist:2709563
Clean Install – Mountain Lion OS X 10.8 DP3
@lumin3000
lumin3000 / gist:2490794
Created April 25, 2012 15:48 — forked from reidransom/gist:2341103
Use nowjs with node-static server
var fs = require('fs');
var node_static = require('node-static');
var file = new(node_static.Server)('./public');
var server = require('http').createServer(function(request, response){
request.addListener('end', function() {
file.serve(request, response);
});
});
server.listen(8080);
@lumin3000
lumin3000 / meta-tags.md
Created March 6, 2012 00:11 — forked from lancejpollard/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">