Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

IP Addresses of Google Global Cache
www.kookle.co.nr
Bulgaria 93.123.23.1 93.123.23.2 93.123.23.3 93.123.23.4 93.123.23.5 93.123.23.6 93.123.23.7 93.123.23.8 93.123.23.9
93.123.23.10 93.123.23.11 93.123.23.12 93.123.23.13 93.123.23.14 93.123.23.15 93.123.23.16 93.123.23.17 93.123.23.18 93.123.23.19
93.123.23.20 93.123.23.21 93.123.23.22 93.123.23.23 93.123.23.24 93.123.23.25 93.123.23.26 93.123.23.27 93.123.23.28 93.123.23.29
93.123.23.30 93.123.23.31 93.123.23.32 93.123.23.33 93.123.23.34 93.123.23.35 93.123.23.36 93.123.23.37 93.123.23.38 93.123.23.39
93.123.23.40 93.123.23.41 93.123.23.42 93.123.23.43 93.123.23.44 93.123.23.45 93.123.23.46 93.123.23.47 93.123.23.48 93.123.23.49
93.123.23.50 93.123.23.51 93.123.23.52 93.123.23.53 93.123.23.54 93.123.23.55 93.123.23.56 93.123.23.57 93.123.23.58 93.123.23.59
Egypt 197.199.253.1 197.199.253.2 197.199.253.3 197.199.253.4 197.199.253.5 197.199.253.6 197.199.253.7 197.199.253.8 197.199.253.9
@period331
period331 / meta_class.py
Last active August 29, 2015 14:05
meta class
# coding: utf-8
_STANDARDS = '__standards__'
class _StdData(type):
def __new__(mcs, name, bases, attrs):
super_new = super(_StdData, mcs).__new__
parents = [b for b in bases if isinstance(b, _StdData)]
#import <Foundation/Foundation.h>
@interface FKItem : NSObject
@property(nonatomic) NSString * name;
@property(nonatomic) int price;
@end
@implementation FKItem
#import <Foundation/Foundation.h>
@interface FKFruit : NSObject
@property(nonatomic, assign) double weight;
@property(nonatomic, assign) int a;
-(void) info;
@end
@period331
period331 / EqualTest.m
Created December 9, 2014 15:09
== and isEqual Objective-C
#import <Foundation/Foundation.h>
int main(int argc, char * argv[])
{
@autoreleasepool {
NSString * str1 = @"hello";
NSString * str2 = [NSString stringWithFormat:@"hello"];
NSLog(@"str1 == str2 ??; %d", (str1 == str2)); // 输出 0
@period331
period331 / proc.py
Created December 11, 2013 09:51
python subProcess problem
# coding: utf8
from multiprocessing import Process
import os
import time
import setproctitle
setproctitle.setproctitle('subprocess')
def targ(x):
from multiprocessing import Process
import os
import time
import setproctitle
setproctitle.setproctitle('subprocess')
def targ(x):
setproctitle.setproctitle('subprocess_' + str(x))
print '这是一个进程任务' + str(os.getpid())
@period331
period331 / nginx.sh
Created December 29, 2013 15:29 — forked from marshluca/nginx.sh
# /etc/init.d/nginx
#! /bin/sh
### BEGIN INIT INFO
# Provides: nginx
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6

原文

警告:请务必读完本文!全篇读完!

无论新老用户,都有可能掉进陷阱。 下面我们列出了常见的问题,并解释如何解决他们。 在 Freenode IRC 的 #nginx 频道,我们经常看到这些问题。

[TOC]

@period331
period331 / esnextbin.md
Last active April 22, 2016 03:57
esnextbin sketch