#Mac OS X
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
http://www.andrewgertig.com/2013/11/setting-up-a-digital-ocean-droplet-vps-on-ubuntu-with-rails-nginx-unicorn-postgres-redis-and-capistrano | |
Setting up a Digital Ocean Droplet (VPS) on Ubuntu with Rails, Nginx, Unicorn, Postgres, Redis and Capistrano | |
November 16, 2013 | |
Create a Droplet on Digital Ocean | |
I stuck with the defaults: | |
Size | |
512MB / 1 CPU | |
20GB SSD |
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 | |
SSID = "YOUR_WIFI_NAME" | |
PASSWORD = "YOUR_WIFI_PASSWORD" | |
TIMEOUT = 30000000 -- 30s | |
--- Station modes | |
STAMODE = { | |
STATION_IDLE = 0, | |
STATION_CONNECTING = 1, | |
STATION_WRONG_PASSWORD = 2, |
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
source: https://marciocabreira.wordpress.com/2011/08/14/criando-links-simbolicos-no-windows-com-mklink/ | |
J:\Steam\steamapps\common\Grand Theft Auto V | |
C:\Grand Theft Auto V | |
mklink /D "J:\Steam\steamapps\common\Grand Theft Auto V" "C:\Grand Theft Auto V" |
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
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "hellobits" | |
config.vm.box_url = "file:///d:/vagrant/hellobits-trusty64-virtualbox.box" | |
config.vm.network :forwarded_port, guest: 3000, host: 3000 | |
end | |
VAGRANTFILE_API_VERSION = "2" |
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
pin = 4 | |
status,temp,humi,temp_decimial,humi_decimial = dht.read(pin) | |
if( status == dht.OK ) then | |
-- Integer firmware using this example | |
print( | |
string.format( | |
"DHT Temperature:%d.%03d;Humidity:%d.%03d\r\n", | |
math.floor(temp), | |
temp_decimial, | |
math.floor(humi), |
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 | |
SSID = "Dark side of the Force" | |
PASSWORD = "senhasupersecreta" | |
TIMEOUT = 30000000 -- 30s | |
--- Station modes | |
STAMODE = { | |
STATION_IDLE = 0, | |
STATION_CONNECTING = 1, | |
STATION_WRONG_PASSWORD = 2, |
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
class Task < ActiveRecord::Base | |
extend Enumerize | |
has_ancestry | |
attr_accessible :title, :description, :parent_id, :project_id | |
enumerize :status, in: [:created, :working, :waiting, :paused, :stopped, :finished] | |
belongs_to :project |
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
class Task < ActiveRecord::Base | |
extend Enumerize | |
has_ancestry | |
attr_accessible :title, :description, :parent_id, :project_id, :status | |
enumerize :status, in: { | |
:created => 0, | |
:working => 1, |
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
Tasker.Projects = {} if Tasker.Projects is undefined | |
Tasker.Projects.Show = -> | |
$('.new-task-button').click -> | |
url = $(this).data('url') | |
$.ajax | |
url: url | |
type: "GET" | |
success: (data)-> | |
$('#newTask .modal-body').html(data) |
OlderNewer