Skip to content

Instantly share code, notes, and snippets.

View bububa's full-sized avatar
💭
I may be slow to respond.

Prof Syd Xu bububa

💭
I may be slow to respond.
View GitHub Profile
@bububa
bububa / gist:8580106
Created January 23, 2014 15:11
获取内网IP
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>获取内网IP</title>
</head>
<body>
您的内网IP:
<span id="list"></span>
<script>
@bububa
bububa / gist:a35319fc6b4cadf95356
Created February 23, 2015 12:47
change nginx server name
cd ~/src/nginx/
vi +49 src/http/ngx_http_header_filter_module.c
static char ngx_http_server_string[] = "Server: XiBWebd";
static char ngx_http_server_full_string[] = "Server: XiBWebd";
:wq
@bububa
bububa / README.md
Created October 20, 2016 05:22
No name

README is empty

@bububa
bububa / UCoin.sol
Last active December 31, 2018 13:55
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=true&gist=
pragma solidity ^0.4.24;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address private _owner;