Skip to content

Instantly share code, notes, and snippets.

View decoda's full-sized avatar
:octocat:
nothing happend

decoda decoda

:octocat:
nothing happend
  • gz
View GitHub Profile
@decoda
decoda / makefile
Created June 23, 2017 04:31
通用的makefile模版
#############################################################
# Generic Makefile for C/C++ Program
#
# License: GPL (General Public License)
# Author: whyglinux <whyglinux AT gmail DOT com>
# Date: 2006/03/04 (version 0.1)
# 2007/03/24 (version 0.2)
# 2007/04/09 (version 0.3)
# 2007/06/26 (version 0.4)
# 2008/04/05 (version 0.5)
@decoda
decoda / reload.sh
Last active February 17, 2017 02:44
远程执行
#!/bin/bash
sshac="/usr/bin/ssh -p 22 -o StrictHostKeyChecking=no -o ConnectTimeout=5"
host=("172.16.10.48")
if [ $# -lt 3 ]; then
echo "$0 a2s trunk lib_common 5"
exit 1
fi
src=$1
des=$2
file=$3
@decoda
decoda / iplocator.py
Last active November 9, 2016 12:55
python版读取纯真ip数据库qqwry.dat
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import socket
from struct import pack, unpack
class IPInfo(object):
def __init__(self, dbname = "qqwry.dat"):
self.dbname = dbname