This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sudo su | |
#### Install Postgresql 9.3 | |
# add repositories | |
echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list | |
apt-get update | |
# Ensure UTF-8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Encoding=UTF-8 | |
Name=JDownloader | |
Comment=Download Manager | |
Exec=java -jar ~/.jd/JDownloader.jar | |
Icon=~/.jd/JDownloader.png | |
Terminal=false | |
Type=Application | |
Categories=GNOME;Network; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Enable mongodb security | |
use admin | |
db.addUser({user:"user",pwd:"password",roles:["userAdminAnyDatabase"]}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/environments/development.rb | |
MyApp::Application.configure do | |
# Tell Rails to log to STDOUT instead Rails::Rack::LogTailer | |
config.logger = Logger.new(STDOUT) | |
config.logger.level = Logger.const_get( | |
ENV['LOG_LEVEL'] ? ENV['LOG_LEVEL'].upcase : 'DEBUG' | |
) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Documentation: http://docs.azk.io/Azkfile.js | |
*/ | |
function ruby_system(command, extra) { | |
var merge = require('azk')._.merge; | |
var extra = extra || {}; | |
return merge({ | |
// Dependent systems |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% | |
require 'cgi' | |
require 'uri' | |
begin | |
uri = URI.parse(ENV["DATABASE_URL"]) | |
rescue URI::InvalidURIError | |
raise "Invalid DATABASE_URL" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Proposta para colunas customizáveis | |
default_keys: status,system,instances,hostname,instances-ports,provisioned,image | |
Options: | |
--table : Imprime em formato tabela | |
--text : Imprime em formato tabela sem bordas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Documentation: http://docs.azk.io/Azkfile.js | |
*/ | |
// Adds the systems that shape your system | |
systems({ | |
umrum: { | |
// Dependent systems | |
depends: [], | |
// More images: http://images.azk.io |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ azk init | |
azk: `node` system was detected at '/Users/gullitmiranda/www/umrum' as 'umrum' | |
azk: 'Azkfile.js' generated | |
Tip: | |
Adds the `.azk` in .gitignore | |
echo '.azk' >> .gitignore | |
$ echo ‘.azk’ >> .gitignore |
OlderNewer