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 -v -i xxxx.pem root@xxxxxx | |
OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011 | |
debug1: Reading configuration data /Users/XXX/.ssh/config | |
debug1: Reading configuration data /etc/ssh_config | |
debug1: /etc/ssh_config line 20: Applying options for * | |
debug1: Connecting to xxxxxx [50.18.XXX.XXX] port 22. | |
debug1: connect to address xxxxxx port 22: Connection refused | |
ssh: connect to host xxxxxx port 22: Connection refused |
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
var send = function(){ | |
var lpTag = lpTag || {}; lpTag.vars = lpTag.vars || []; lpTag.dbs = lpTag.dbs || []; | |
var arrLPvars = [ | |
{ scope:'page', name:'some-unit', value:'some-value' } | |
]; | |
lpTag.vars.push(arrLPvars); | |
lpTag.vars.send(); | |
} |
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
def get_content_length(dic): | |
length = 0 | |
for key,value in dic.iteritems(): | |
length += len(key) + len(value) | |
return length | |
def bump(session): | |
r = session.get('http://someurl') |
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
<VirtualHost *:80> | |
ServerName foo.com | |
ServerAdmin foo@bar.com | |
ServerAlias *.foo.* foo.* | |
DocumentRoot /var/www/html | |
<IfModule mod_rewrite.c> | |
options +FollowSymlinks | |
RewriteEngine on |
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
`member` ( | |
`id` int(10) unsigned NOT NULL AUTO_INCREMENT, | |
`member_id` varchar(32) NOT NULL, | |
`fullname` varchar(40) NOT NULL, | |
`email` varchar(200) NOT NULL, | |
`url_token` varchar(200) NOT NULL, | |
`password` char(40) NOT NULL, | |
`passhash` BINARY(60) NULL, | |
`headline` varchar(140) DEFAULT NULL, | |
`confirm_key` varchar(20) NOT NULL, |
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 Solution: | |
def generator(self, n): | |
n = str(n) | |
ret = "" | |
i = 0 | |
while i < len(n): | |
count = 1 | |
for j in xrange(i+1,len(n)): |
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 Solution: | |
# @return a boolean | |
def isPalindrome(self, x): | |
if x < 0 : | |
return False | |
first_digit = rest_digit = x | |
res = 0 | |
while rest_digit != 0 : | |
first_digit = rest_digit % 10 |
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
# Definition for singly-linked list. | |
# class ListNode: | |
# def __init__(self, x): | |
# self.val = x | |
# self.next = None | |
import math | |
class Solution: | |
def __init__(self,x): |
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 doubleLinkedListNode(object): | |
def __init__(self,key=None,elem=None): | |
self.prev = None | |
self.next = None | |
self.key = key | |
self.elem = elem | |
def moveFront(self,headNode): | |
if self.prev != None: |
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
/***************** | |
* bossFight.js * | |
***************** | |
* | |
* NO FARTHER, DR. EVAL!!!! | |
* YOU WILL NOT GET OUT OF HERE ALIVE!!!! | |
* IT'S TIME YOU SEE MY TRUE FORM!!!! | |
* FACE MY ROBOT WRATH!!!!! | |
*/ |
NewerOlder