Skip to content

Instantly share code, notes, and snippets.

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

rwifeng

💭
I may be slow to respond.
View GitHub Profile
@lidaobing
lidaobing / auto_route.py
Created September 26, 2010 03:07 — forked from KidFeng/gist:584331
automatic route config
#!/usr/bin/env python
# Usage:
# This script will generate two files(vpnup and vpndown) after executing.
# Do chmod a+x on the two newly created files, and then move them to the
# openvpn config folder. then add the following two lines to the vpn config file:
# up vpnup
# down vpndown
# you might also need 'redirect-gateway' in the config file, if you don't use vpn
# as the default gateway.
var dnsd = require('dnsd')
var http = require('http')
var datx = require('ipip-datx');
var value;
dnsd.createServer(function(req, res) {
var key = JSON.stringify(req.question).split(",")[0].split(":")[1]
value = req.connection.remoteAddress.toString()
@leonardofed
leonardofed / README.md
Last active April 24, 2024 01:47
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.