This file contains 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
Processing Admin::OverviewController#index (for 127.0.0.1 at 2010-06-10 15:35:08) [GET] | |
Parameters: {"action"=>"index", "controller"=>"admin/overview"} | |
Cache miss: Spree::Config ({}) | |
Preference Load (0.5ms) SELECT * FROM `preferences` WHERE (`preferences`.owner_id = 1 AND `preferences`.owner_type = 'Configuration') | |
Configuration Columns (0.9ms) SHOW FIELDS FROM `configurations` | |
Configuration Load (0.1ms) SELECT * FROM `configurations` WHERE (`configurations`.`id` = 1) | |
CACHE (0.0ms) SELECT * FROM `configurations` WHERE (`configurations`.`id` = 1) | |
Cache write (will save 4.27ms): Spree::Config | |
Cache hit: Spree::Config ({}) | |
User Load (0.4ms) SELECT * FROM `users` WHERE (`users`.`id` = '1068482874') LIMIT 1 |
This file contains 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
#### source : deco.py #### | |
#!/usr/bin/env python | |
from time import ctime, sleep | |
def tsfunc(func): | |
def wrappedFunc(): | |
print "call" | |
return func() |
This file contains 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
#Newbie programmer | |
def factorial(x): | |
if x == 0: | |
return 1 | |
else: | |
return x * factorial(x - 1) | |
print factorial(6) | |
#First year programmer, studied Pascal |
This file contains 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
Is that a real opposition ? | |
Thanks for the pointers. | |
This file contains 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
import os | |
i = 1 | |
for line in open('tmp').readlines(): | |
print line | |
os.rename(line, "sup_" + str(i)) |
This file contains 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
DELIMITER // | |
CREATE TRIGGER tg1 AFTER INSERT ON bugs | |
FOR EACH ROW | |
BEGIN | |
\! echo "php algun_script_php.php" >> /tmp/yourlog.txt; | |
END// |
This file contains 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
PROXY="http://PROXY_URL:PROXY_PORT" | |
webdriver.DesiredCapabilities.HTMLUNIT['proxy'] = { | |
"httpProxy":PROXY, | |
"ftpProxy":PROXY, | |
"sslProxy":PROXY, | |
"noProxy":None, | |
"proxyType":"MANUAL", | |
"class":"org.openqa.selenium.Proxy", | |
"autodetect":False |
This file contains 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 TestBZWorkflow(unittest.TestCase): | |
def setUp(self): | |
self.driver = webdriver.Remote(command_executor='http://127.0.0.1:4444/wd/hub', | |
desired_capabilities=webdriver.DesiredCapabilities.HTMLUNIT) |
This file contains 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
$ ssh -vvvvvv USER@x.x.x.x | |
OpenSSH_6.0p1, OpenSSL 1.0.1c 10 May 2012 | |
debug2: ssh_connect: needpriv 0 | |
debug1: Connecting to x.x.x.x [x.x.x.x] port 22. | |
debug1: Connection established. | |
debug3: Incorrect RSA1 identifier | |
debug3: Could not load "/home/HELPDESK/.ssh/id_rsa" as a RSA1 public key | |
debug1: identity file /home/HELPDESK/.ssh/id_rsa type 1 | |
debug1: identity file /home/HELPDESK/.ssh/id_rsa-cert type -1 | |
debug1: identity file /home/HELPDESK/.ssh/id_dsa type -1 |
This file contains 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
#!/usr/bin/expect | |
set ip [lindex $argv 0] | |
set timeout 3 | |
spawn ssh -t login\@$ip 'su -c \"sh M13.1-15/list.sh\"' | |
expect "Password: $" { send "my_pass\n" } | |
set lineterminationChar "\r" |
OlderNewer