This file contains hidden or 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
| <?php | |
| use Twitter\Tweet; | |
| class Controller_Pastes extends Controller_Template { | |
| public function action_new(){ | |
| if(\Input::post('paste') !== null){ | |
| $paste = \Input::post('paste'); | |
| $type = \Input::post('language'); |
This file contains hidden or 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 SourceFile | |
| #Class for handling the code files | |
| attr_accessor :name, :path, :hash, :content, :repo, :size, :commit_log, :branch | |
| # Custom object to json | |
| def json_create(o) | |
| new(*o['data']) | |
| end | |
| # Custom object to json | |
| def to_json(*a) | |
| { |
This file contains hidden or 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 Repo | |
| # class for Repos | |
| attr_accessor :repo, :scm, :path, :files, :directories, :pattern | |
| # setup new repo | |
| def initialize(repo,scm,path,pattern) | |
| @repo = repo | |
| @scm = scm | |
| @path = path |
This file contains hidden or 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 Repo | |
| # class for Repos | |
| attr_accessor :repo, :scm, :path, :files, :directories, :pattern | |
| # setup new repo | |
| def initialize(repo,scm,path,pattern) | |
| @repo = repo | |
| @scm = scm | |
| @path = path |
This file contains hidden or 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 Repo | |
| attr_accessor :repo, :scm, :path, :files, :directories, :pattern | |
| # setup new repo | |
| def initialize(repo,scm,path,pattern) | |
| @repo = repo | |
| @scm = scm | |
| @path = path | |
| @files = Array.new | |
| @directories = Array.new |
This file contains hidden or 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
| { | |
| "servers": { | |
| "frontend1": { | |
| "private_ip_address": "10.0.20.125", | |
| "ip_address": "10.0.20.125", | |
| "tags": [ "role:frontend=true" ] | |
| }, | |
| "frontend-ivan1": { | |
| "private_ip_address": "10.0.20.135", | |
| "ip_address": "10.0.20.135", |
This file contains hidden or 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
| [qoutcon] | |
| exten => 1,1,NoOp("finding correct vm") | |
| exten => 1,n,NoOp(${prefix}) | |
| exten => 1,n,GotoIf($[${prefix} == "CSMQ"]?vmCsm) ; csm | |
| exten => 1,n,GotoIf($[${prefix} == "REFQ"]?vmReflection) ; reflection | |
| exten => 1,n,GotoIf($[${prefix} == "jams"]?vmJams) ; jams | |
| exten => 1,n,GotoIf($[${prefix} == "voice"]?vmVoice) ; voice | |
| exten => 1,n,GotoIf($[${prefix} == "horizons"]?vmHorizons) ; horizons | |
| exten => 1,n,GotoIf($[${prefix} == "commq"]?vmComm) ; community | |
| exten => 1,n,GotoIF($[${prefix} == "test"]?vmTest) ;testq |
This file contains hidden or 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
| --- | |
| environment: production | |
| chdir: /path/to/my/app | |
| address: 127.0.0.1 | |
| user: root | |
| group: root | |
| port: 4567 | |
| pid: /path/to/my/app/thin.pid | |
| rackup: /path/to/my/app/config.ru | |
| log: /path/to/my/app/thin.log |
This file contains hidden or 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 cd /srv/mycrazyrepos/ | |
| for i in ls;do | |
| cd ${i}; | |
| git plom; | |
| cd .. | |
| ;done |
This file contains hidden or 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
| INFO ::2011-03-30 10:16:45::utils.py:62::TNArchipelHypervisor.check_acp (pdx01@pdx01/pdx01)::acp received: from: admin@pdx01/ArchipelController, type: get, namespace: archipel:hypervisor:control, action: rostervm | |
| INFO ::2011-03-30 10:16:45::utils.py:62::TNArchipelHypervisor.check_perm (pdx01@pdx01/pdx01)::checking permission for action rostervm asked by admin@pdx01/ArchipelController | |
| INFO ::2011-03-30 10:16:45::utils.py:62::TNArchipelHypervisor.check_acp (pdx01@pdx01/pdx01)::acp received: from: admin@pdx01/ArchipelController, type: get, namespace: archipel:hypervisor:control, action: rostervm | |
| INFO ::2011-03-30 10:16:45::utils.py:62::TNArchipelHypervisor.check_perm (pdx01@pdx01/pdx01)::checking permission for action rostervm asked by admin@pdx01/ArchipelController | |
| INFO ::2011-03-30 10:16:45::utils.py:62::TNArchipelHypervisor.check_acp (pdx01@pdx01/pdx01)::acp received: from: admin@pdx01/ArchipelController, type: get, namespace: archipel:hypervisor:network, action: get | |
| INFO ::2011-03-30 10:16 |