Skip to content

Instantly share code, notes, and snippets.

@WalkerWalker
WalkerWalker / pysocket log
Created March 19, 2017 04:55
pysocket log
2017-03-19 11:59:17 DEBUG accept
2017-03-19 11:59:21 DEBUG accept
2017-03-19 12:45:53 INFO starting server at 172.31.12.118:8333
2017-03-19 12:45:53 INFO starting server at 172.31.12.118:8334
2017-03-19 12:45:53 DEBUG using event model: epoll
2017-03-19 12:46:22 DEBUG accept
2017-03-19 12:46:22 DEBUG [socket] add 183.193.xxx.xxx:37378
2017-03-19 12:46:22 DEBUG [socket] add 183.193.xxx.xxx:37378
2017-03-19 12:46:22 INFO connecting s.youtube.com:443 from 183.193.xxx.xxx:37378
2017-03-19 12:46:22 DEBUG resolving s.youtube.com with type 1 using server 172.31.0.2
2017-03-19 16:40:50 INFO starting server at 172.31.12.118:8333
2017-03-19 16:40:50 INFO starting server at 172.31.12.118:8334
2017-03-19 16:40:50 DEBUG using event model: epoll
2017-03-19 16:41:49 DEBUG accept
2017-03-19 16:41:49 DEBUG [socket] add 13.124.xxx.xxx:24993
2017-03-19 16:41:49 INFO connecting clients4.google.com:443 from 13.124.xxx.xxx:24993
2017-03-19 16:41:49 DEBUG resolving clients4.google.com with type 1 using server 172.31.0.2
2017-03-19 16:41:51 DEBUG accept
2017-03-19 16:41:51 INFO connecting www.google.com:443 from 13.124.xxx.xxx:24996
2017-03-19 16:41:51 DEBUG resolving www.google.com with type 1 using server 172.31.0.2
@WalkerWalker
WalkerWalker / shadowsocks.log
Created March 19, 2017 09:36
pysocket dev switch 4G/wifi log
2017-03-19 17:04:51 INFO starting server at 172.31.12.118:8333
2017-03-19 17:04:51 INFO starting server at 172.31.12.118:8334
2017-03-19 17:04:51 DEBUG using event model: epoll
2017-03-19 17:05:27 DEBUG accept
2017-03-19 17:05:27 DEBUG [socket] add 101.90.***.***:20500
2017-03-19 17:05:27 INFO connecting yt3.ggpht.com:443 from 101.90.***.***:20500
2017-03-19 17:05:27 DEBUG resolving yt3.ggpht.com with type 1 using server 172.31.0.2
2017-03-19 17:05:28 DEBUG accept
2017-03-19 17:05:28 INFO connecting suggestqueries.google.com:443 from 101.90.***.***:20501
2017-03-19 17:05:28 DEBUG resolving suggestqueries.google.com with type 1 using server 172.31.0.2
@WalkerWalker
WalkerWalker / chrom sock5 connect.log
Last active March 19, 2017 13:53
chrom sock5 connect log
2017-03-19 21:45:14 DEBUG accept
2017-03-19 21:45:14 DEBUG [socket] add 13.124.***.***:31652
2017-03-19 21:45:14 DEBUG [socket] add 13.124.***.***:31652
2017-03-19 21:45:14 INFO connecting 192.168.11.1:80 from 13.124.***.***:31652
2017-03-19 21:45:19 DEBUG accept
2017-03-19 21:45:19 DEBUG [socket] add 13.124.***.***:31654
2017-03-19 21:45:19 DEBUG [socket] add 13.124.***.***:31654
2017-03-19 21:45:19 INFO connecting chrome.google.com:443 from 13.124.***.***:31654
2017-03-19 21:45:19 DEBUG resolving chrome.google.com with type 1 using server 172.31.0.2
2017-03-19 21:45:20 DEBUG accept
# Define a procedure is_palindrome, that takes as input a string, and returns a
# Boolean indicating if the input string is a palindrome. A palindrome is a string that is the same backwards and forwards. For example, “dad”, “malayalam”, and “wow” are examples of palindromes.
def is_palindrome(s):
s_length = len(s)
pos = 0
while pos <= len(s)/2:
if s[pos] = s[s_length-pos]:
pos + 1
else: