On the server:
$ /etc/init.d/unicorn stop
On the server, in mysql client:
| # Eğer rvm kullanılıyorsa kullanıcı için default rvm'in set edilmiş olması gerekiyor. | |
| # O da şu komutla yapılır: rvm use 1.9.3-p125 --default | |
| 10 15 * * * /bin/bash -l -c 'cd /home/ozgun/rails_app/current && bundle exec rake sys:update_currencies RAILS_ENV=production' |
| class A | |
| protected | |
| def p1 | |
| "p1" | |
| end | |
| end |
| <!-- jQuery ve jQuery-ui gerekli --> | |
| <!-- Kullanılan plugin: https://github.com/trentrichardson/jQuery-Timepicker-Addon --> | |
| <!-- yüklenmesi gereken javascript dosyaları: jquery-ui-timepicker-addon.js ve jquery-ui-timepicker-tr.js --> | |
| <!-- CSS dosyaları da gerekli --> | |
| <script> | |
| $(document).ready(function() { | |
| $.datepicker.setDefaults( $.datepicker.regional[ "" ] ); |
| {"parked_vehicles":{"chart1":{"total":562,"in_park":266,"left_park":296},"chart2":{"total":296,"paid":188,"unpaid":108},"chart3":{"total":108,"runaway":47,"subscriber":22,"free_of_charge":39}},"profit":{"total":8451,"ratio":0},"loss":{"total":935,"ratio":935}} |
| import XMonad | |
| import XMonad.Hooks.DynamicLog | |
| import XMonad.Hooks.ManageDocks | |
| import XMonad.Util.Run(spawnPipe) | |
| import XMonad.Config.Desktop | |
| ---import XMonad.Config.Gnome | |
| import XMonad.Config.Xfce | |
| import qualified Data.Map as M | |
| import XMonad.Hooks.SetWMName | |
| import XMonad.Actions.CycleWS |
| # Bitiş tarihinin başlangıç tarihinden sonra olup olmadığını kontrol eden validator. | |
| # | |
| # Başlangıç tarihinin attribute'u "start_date_field" parametresi ile gönderilir. | |
| # | |
| # == Example: | |
| # | |
| # class Subscription | |
| # validates :end_date, end_date: { start_date_field: :start_date } | |
| # end | |
| # |
| #!/bin/bash | |
| # Hangi desktop secilerek login olunursa olunsun bu okunuyor ve bu dosyadaki | |
| # programlar calistiriliyor. | |
| # xmonad'da login olduktan sonra bu dosya okunuyor. Kontrol etmek için | |
| # aşağıdaki touch komutu kullanılabilir. | |
| #/usr/bin/touch /tmp/xsession-touch | |
| /usr/bin/gnome-keyring-daemon & |
| $ ls -lh app/assets/fonts/ | |
| total 3,7M | |
| -rwxrwxr-x 1 ozgun ozgun 20K Haz 23 12:21 glyphicons-halflings-regular.eot | |
| -rwxrwxr-x 1 ozgun ozgun 62K Haz 23 12:21 glyphicons-halflings-regular.svg | |
| -rwxrwxr-x 1 ozgun ozgun 41K Haz 23 12:21 glyphicons-halflings-regular.ttf | |
| -rwxrwxr-x 1 ozgun ozgun 23K Haz 23 12:21 glyphicons-halflings-regular.woff | |
| -rwxrwxr-x 1 ozgun ozgun 67K Haz 30 19:49 inconsolata-bold.eot | |
| -rwxrwxr-x 1 ozgun ozgun 106K Haz 30 19:49 inconsolata-bold.svg | |
| -rwxrwxr-x 1 ozgun ozgun 66K Haz 30 19:49 inconsolata-bold.ttf | |
| -rwxrwxr-x 1 ozgun ozgun 33K Haz 30 19:49 inconsolata-bold.woff |
| worker_processes 2 | |
| preload_app true | |
| timeout 30 | |
| app_name = "myapp" | |
| app_dir = "/home/ozgun/#{app_name}" | |
| working_directory "#{app_dir}/current" | |
| listen "#{app_dir}/shared/tmp/unicorn.sock", :backlog => 64 | |
| #listen "/tmp/unicorn.sock", :backlog => 64 |