Skip to content

Instantly share code, notes, and snippets.

View fortable1999's full-sized avatar

Meng Zhao fortable1999

View GitHub Profile
#!/usr/bin/python
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford ([email protected])
# The author disclaims copyright to this source code.
import sys
import struct
import socket
import time
import select
@komasaru
komasaru / .tmux.conf
Last active March 13, 2022 17:29
tmux config(setting) file.
# ==== Basic
# Default shell
set-option -g default-shell /bin/bash
set-option -g default-command /bin/bash
# Allow UTF-8
set-window-option -g utf8 on
# Disable ESC delay
set-option -s escape-time 0
# ==== Reload config (r)
import bisect
class NFA(object):
EPSILON = object()
ANY = object()
def __init__(self, start_state):
self.transitions = {}
self.final_states = set()
self._start_state = start_state
@zhengjia
zhengjia / capybara cheat sheet
Created June 7, 2010 01:35
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')