Skip to content

Instantly share code, notes, and snippets.

View Ulu2005's full-sized avatar

Kowa Ulu2005

View GitHub Profile
@Ulu2005
Ulu2005 / dnsmasq.md
Created February 24, 2016 20:06
(RT)在 OS X Mountain Lion 上使用 dnsmasq

dnsmasq 可以提供 DNS 缓存和 DHCP 服务功能。对于在本地搭建一个 DNS 是再好不过了。

我的需求如下:

  • 对于特定域,使用特定的 DNS
  • 对于特定的几个域名,手工指定 IP

我的环境如下:

@Ulu2005
Ulu2005 / install.sh
Last active November 1, 2015 01:43 — forked from akolosov/gist:cedaac86b333a4ced95f
Install Vim with lua support and GUI on Ubuntu 14.04
#!/bin/sh
sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-common vim-gui-common
sudo apt-get install liblua5.1-dev luajit libluajit-5.1 python-dev ruby-dev libperl-dev mercurial libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev
sudo mkdir /usr/include/lua5.1/include
sudo ln -s /usr/include/luajit-2.0 /usr/include/lua5.1/include
cd ~
git clone https://github.com/vim/vim.git

Bomb Lab necessities

The bomb lab is most easily completed if you understand the following tools and commands. Also, if I am describing a program, assume that you run it from command line.

Strings

In case you have never used strings before it basically just tells you all the strings in an executable. If I were to run it on the bomb I would simply run

#Newbie programmer
def factorial(x):
if x == 0:
return 1
else:
return x * factorial(x - 1)
print factorial(6)
#First year programmer, studied Pascal