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
task :server do | |
fork do | |
exec 'bundle exec rackup -p 4567' | |
end | |
exec %{rerun -p "{Rules,Gemfile,content/**/*,lib/**/*,static/**/*,layouts/**/*}" -x nanoc compile} | |
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
guard 'nanoc' do | |
watch('nanoc.yaml') | |
watch('Rules') | |
watch(%r{^(content|layouts|static|lib)/.*$}) | |
callback(:start_begin) do | |
fork do | |
exec 'bundle exec rackup -p 4567' | |
end | |
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
vars: | |
fw_ports: | |
- ["5000", "6000"] | |
- "{{ groups['api-server'] }}" # this should map to a list of IP | |
tasks: | |
- name: Open ports | |
firewalld: | |
permanent={{ permanent }} | |
state=enabled |
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
# Generated by iptables-save v1.4.21 on Thu Nov 6 12:58:14 2014 | |
*nat | |
:PREROUTING ACCEPT [106:10938] | |
:INPUT ACCEPT [98:10528] | |
:OUTPUT ACCEPT [187:13179] | |
:POSTROUTING ACCEPT [194:13627] | |
:DOCKER - [0:0] | |
-A PREROUTING -m addrtype --dst-type LOCAL -j DOCKER | |
-A OUTPUT ! -d 127.0.0.0/8 -m addrtype --dst-type LOCAL -j DOCKER | |
-A POSTROUTING -s 172.17.0.0/16 ! -o docker0 -j MASQUERADE |
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
--- | |
- hosts: etcd | |
gather_facts: false | |
sudo: false | |
tasks: | |
- command: etcdctl get somepassword | |
register: somepassword | |
- hosts: other |
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_relative 'config/commands' | |
root = File.expand_path('..', __FILE__) | |
ENV['PATH'] = "#{File.join(root, 'node_modules', '.bin')}:#{ENV['PATH']}" | |
scss_dir = File.join(root, 'app', 'css') | |
css_dir = File.join(root, 'build', 'css') | |
image_dir = File.join(root, 'app', 'images') | |
js_dir = File.join(root, 'app', 'js') |
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
#import <Cocoa/Cocoa.h> | |
@interface FocusView : NSTextView | |
@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
var editor = new SGU.ScreenEditor('SGScreenEditor', | |
{screenWidth: SG.screenLayoutController.get('width'), | |
screenHeight:SG.screenLayoutController.get('height')}); | |
SG.currentScreenEditor = editor; | |
var surfaces = SG.screenLayoutController.get('surfaces'); | |
editor._surfaces = surfaces; | |
surfaces.forEach(function (s) { | |
s._zone = new SGU.ScreenEditor.Zone(editor); | |
s.addObserver('status', {cb:function(obj) { | |
console.log('status'); |
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
didCreateLayer:function() { | |
var bl = SG.broadcastLocationsController.get('firstObject'); | |
console.log('createLayer'); | |
if(!bl) return; | |
var redMarker = new google.maps.MarkerImage( | |
static_url('/images/2.png'), | |
new google.maps.Size(20, 20), | |
new google.maps.Point(0, 20) | |
); |
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
broadcastLocationsBinding:'SG.broadcastLocationsController', | |
_broadcastLocationsDidChange:function() { | |
console.log('bl changes'); | |
}.observes('broadcastLocations.[]'), |
OlderNewer