------------------------------- ------------------ Django --------------------
| Browser: GET /udo/contact/2 | === wsgi/fcgi ===> | 1. Asks OS for DJANGO_SETTINGS_MODULE |
------------------------------- | 2. Build Request (from wsgi/fcgi callback) |
| 3. Get settings.ROOT_URLCONF module |
| 4. Resolve URL/view from request.path | # url(r'^udo/contact/(?P<id>\w+)', view, name='url-identifier')
| 5. Apply request middlewares | # settings.MIDDLEWARE_CLASSES
Define these variables somewhere and let it go :
- ruby_current: the ruby version you want to deploy (e.g. "1.9.3-p374")
- ruby_user: Under which account we want ruby to be installed (e.g. "myappuser"; "ruby" in this playbook)
Note : this playbook only works with '-i' in the sudo line since it requires the target user environment to be fully loaded
Введение
Начать стоит отсюда. Не пугайтесь то, что это книга по незнакомой OS, эти термины практически везде одинаковые и здесь они изложены в понятной для начинающих форме.
http://www.qnx.com/developers/docs/6.4.1/neutrino/getting_started/s1_procs.html
Прочесть нужно треть главы до подраздела "Starting a process", если С не пугает, читайте полностью. После прочтения вы будете понимать, что такое process, thread, mutex, priorites, semaphores, scheduler, contex-switch, kernel states.
Ruby
We have moved: https://github.com/magnetikonline/linuxmicrosoftievirtualmachines
Due to the popularity of this Gist, and the work in keeping it updated via a Gist, all future updates will take place at the above location. Thanks!
{ | |
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
"drag_text": false, | |
"draw_white_space": "all", | |
"ensure_newline_at_eof_on_save": true, | |
"fallback_encoding": "Cyrillic (Windows 1251)", | |
"font_size": 12, | |
"highlight_line": true, | |
"ignored_packages": | |
[ |
#!/bin/bash | |
# ./encrypt.sh -keys public.pem private.pem | |
# ./encrypt.sh folder public.pem > decrypt-folder.sh | |
# chmod +x decrypt-folder.sh | |
# ./decrypt-folder.sh private.pem > folder.tar | |
# | |
# | |
# $ ./encrypt.sh | |
# Usage: ./encrypt-file.sh [directory] [public-key] > [decryption-script] |
class TaxpayerID | |
FACTORS = [ 3, 7, 2, 4, 10, 3, 5, 9, 4, 6, 8, 0 ] | |
def initialize value | |
@digits = value.to_s.chars.map(&:to_i) | |
raise ArgumentError, 'unexpected argument length (must be 10 or 12 chars)' unless @digits.length == 10 || @digits.length == 12 | |
@result = (@digits.length == 10 ? check_ten : check_twelve) | |
end |