- Yapılandırmalar eski yerinde
/etc/unicorn unicorn-multi.sh(şimdilik)/etc/unicornaltında (executable olması gerekmiyorunicorn-multibetiği/etc/init.daltında- Bu sistemin çalışması için mevcut
unicornbetiğini kaldırmak gerekmiyor ama kaldırılırsa daha güvenli olabilir.
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 | |
| # | |
| # init.d script for single or multiple unicorn installations. Expects at least one .conf | |
| # file in /etc/unicorn | |
| # | |
| # Modified by [email protected] http://github.com/jaygooby | |
| # based on http://gist.github.com/308216 by http://github.com/mguterl | |
| # | |
| ## A sample /etc/unicorn/my_app.conf | |
| ## |
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 | |
| # | |
| # init.d script for single or multiple unicorn installations. Expects at least one .conf | |
| # file in /etc/unicorn | |
| # | |
| # Modified by [email protected] http://github.com/jaygooby | |
| # based on http://gist.github.com/308216 by http://github.com/mguterl | |
| # | |
| ## A sample /etc/unicorn/my_app.conf | |
| ## |
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 | |
| set -e | |
| CONFFILE="/etc/default/grub" | |
| [ $(id -u) -eq 0 ] || { echo >&2 "Betiği sudo ile çalıştırın"; exit 1; } | |
| [ -f "$CONFFILE" ] || { echo >&2 "$CONFFILE dosyası bulunamadı."; exit 1; } | |
| if grep -q bootchartd "$CONFFILE"; then |
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
| ### | |
| Module dependencies | |
| ### | |
| require.paths.unshift "#{__dirname}/lib/support/express-csrf/" | |
| require.paths.unshift "#{__dirname}/lib/support/node_hash/lib/" | |
| express = require 'express' | |
| app = module.exports = express.createServer() | |
| RedisStore = require 'connect-redis' |
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
| .gist-highlight { | |
| border-left: 3ex solid #eee; | |
| position: relative; | |
| } | |
| .gist-highlight pre { | |
| counter-reset: linenumbers; | |
| } | |
| .gist-highlight pre div:before { |
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/bash | |
| # markdown ile yazılan dosyalardan pdf üret. | |
| # Örnek: <betik> ~/examples.md | |
| PATH=/var/lib/gems/1.8/bin:$PATH | |
| [ $# -gt 0 ] || { | |
| echo >&2 "Kullanım: $0 < markdown dosyası>" | |
| echo >&2 "Örnek: $0 ~/examples.md" |
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
| from graphics import * | |
| def main(): | |
| win = GraphWin("My Circle", 100, 100) | |
| c = Circle(Point(50,50), 10) | |
| c.draw(win) | |
| win.getMouse() # Pause to view result | |
| win.close() # Close window when done | |
| main() |
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
| # graphics.py | |
| """Simple object oriented graphics library | |
| The library is designed to make it very easy for novice programmers to | |
| experiment with computer graphics in an object oriented fashion. It is | |
| written by John Zelle for use with the book "Python Programming: An | |
| Introduction to Computer Science" (Franklin, Beedle & Associates). | |
| LICENSE: This is open-source software released under the terms of the | |
| GPL (http://www.gnu.org/licenses/gpl.html). |