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
/* http://l3net.wordpress.com/2012/12/09/a-simple-telnet-client/ */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <arpa/inet.h> | |
#include <termios.h> | |
#include <fcntl.h> | |
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
#192.168.1.100 ddld.loc.al | |
#127.0.0.1 ddld.loc.al | |
#127.0.0.1 www.gstatic.com | |
127.0.0.1 www.google-analytics.com | |
127.0.0.1 www.googletagmanager.com | |
#127.0.0.1 www.googleadservices.com | |
#127.0.0.1 ade.googlesyndication.com | |
#127.0.0.1 tpc.googlesyndication.com | |
#127.0.0.1 pagead2.googlesyndication.com | |
#127.0.0.1 securepubads.g.doubleclick.net |
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
from __future__ import unicode_literals | |
from __future__ import print_function | |
import argparse | |
a = argparse.ArgumentParser() | |
b = a.add_subparsers(dest='command') | |
b.add_parser('test') | |
c = a.parse_args([]) | |
print(c.command is 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
#! /usr/bin/env python3 | |
import sys | |
from PySide import QtGui, QtWebKit | |
app = QtGui.QApplication(sys.argv) |
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/env python3 | |
import asyncio | |
import contextlib | |
async def ping(ip): | |
p = await asyncio.create_subprocess_exec('ping', '-c', '4', ip, stdout=asyncio.subprocess.PIPE) | |
async for line in p.stdout: | |
print(line) |
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
Index: debian/changelog | |
=================================================================== | |
--- debian/changelog (revision 14903) | |
+++ debian/changelog (working copy) | |
@@ -1,3 +1,9 @@ | |
+boost1.55 (1.55.0+dfsg-4.1~coroutine1) experimental; urgency=low | |
+ | |
+ * Enable coroutine shared library. | |
+ | |
+ -- Wei-Cheng Pan <[email protected]> Fri, 26 Jun 2015 04:34:46 +0000 |
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/env python3 | |
import asyncio | |
import json | |
import sys | |
import yaml | |
def main(args=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
#include "mozilla/StackWalk.h" | |
#include "nsPrintfCString.h" | |
// HACK forward declartion | |
extern "C" char* PrintJSStack(); | |
void JS_smprintf_free(char*); | |
#define DEBUG_STACK_PATH "/tmp/raw_stacks.txt" | |
namespace debug { |
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/env python3 | |
import re | |
import shutil | |
import sys | |
import asyncio | |
class BaseParser(object): |
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
#! /bin/sh | |
set -e -x | |
BUILD_DIR='/tmp/llvm-clang' | |
INSTALL_DIR='~/local/opt/llvm-clang' | |
LLVM_VERSION='3.9.0' | |
DARWIN_VERSION='16.1.0' | |