yeni bir oturum başlatmak
tmux new -s oturum_adi
açılan oturumu "detach" etmek.
(görünürde çıkıyoruz ama arkaplanda komut(lar) çalışmaya devam ediyor.)
| #!/bin/sh | |
| SESSION=$USER | |
| tmux start-server | |
| tmux new-session -d -s $SESSION -n 'general' | |
| tmux new-window -t $SESSION:2 -n 'development' | |
| tmux new-window -t $SESSION:3 -n 'irc' | |
| tmux new-window -t $SESSION:4 -n 'ssh' |
| def sifir_zarar(satis_fiyati, komisyon): | |
| anapara = satis_fiyati - (satis_fiyati * komisyon) | |
| anapara = float("{0:.2f}".format(anapara)) | |
| sifir_zararli_fiyat = satis_fiyati + (satis_fiyati * komisyon) | |
| return anapara, sifir_zararli_fiyat | |
| def run_tests(): | |
| assert sifir_zarar(100, 0.006) == (99.4, 100.6) |
| import requests | |
| import time | |
| ORDER_PK = '1' | |
| while True: | |
| r = requests.post( | |
| "http://www.baklavasiparisi.com/index.asp?page=siparissorgula.asp", | |
| data={ | |
| 'siparisno': ORDER_PK, |
| function vactivate() { | |
| source bin/activate; | |
| source ../bin/activate; | |
| source ../../bin/activate; | |
| } |
| function south_first() { | |
| ./manage.py schemamigration --initial "$@"; | |
| ./manage.py migrate "$@"; | |
| } | |
| function south_update() { | |
| ./manage.py schemamigration --auto "$@"; | |
| ./manage.py migrate "$@"; | |
| } |
| from PIL import ImageFont | |
| from PIL import Image | |
| from PIL import ImageDraw | |
| from flask import request, make_response | |
| import os | |
| import StringIO |
| function TweetFreezer(casper_instance) { | |
| this.casper = casper_instance; | |
| this.tweet_url = false; | |
| this.set_tweet_url = function(tweet_url) { | |
| this.tweet_url = tweet_url; | |
| return this; |
| #!/usr/bin/python | |
| import os | |
| import sys | |
| try: | |
| import simplejson as json | |
| except ImportError: | |
| import json |
Secilen satiri alt satiri kopyalar.
Secilen satirlari comment icine alir. comment edilmisse commentten cikartir.