Skip to content

Instantly share code, notes, and snippets.

@dlee35
dlee35 / rtir_elastalert.py
Last active November 27, 2022 01:11
ElastAlert to RTIR
#! /usr/bin/env python
# requires pip
# pip install rt
import rt
import urllib3
import argparse
"""
Create ticket using python-rt interface
https://github.com/CZ-NIC/python-rt
@emory
emory / rt-heavenly-style.css
Last active November 27, 2022 01:11
Request Tracker Stylesheet: Heavenly Gradient
/* Page */
@import url(https://fonts.googleapis.com/css?family=Fira+Sans:300,400,700,300italic,400italic,700italic|Fira+Mono:400,700|Over+the+Rainbow|Merriweather:400,300italic,300,400italic,700,700italic);
/* Fonts
font-family: 'Fira Sans', sans-serif;
font-family: 'Merriweather', serif;
font-family: 'Fira Mono', monospace;
font-family: 'Over the Rainbow', cursive, fancy;
@palewire
palewire / albums.py
Created December 16, 2014 19:57
Mechanize scrape with Python
from mechanize import Browser
from BeautifulSoup import BeautifulSoup
def extract(html):
soup = BeautifulSoup(html)
table = soup.find("table", border=1)
list_of_rows = []
for row in table.findAll('tr')[1:]:
list_of_cells = []
for cell in row.findAll('td'):
@kevinoconnor7
kevinoconnor7 / bootstrap.css
Created August 14, 2013 19:50
Bootstrap themed request tracker
@import url(http://fonts.googleapis.com/css?family=Titillium+Web:200);
/* ===[ Page ]=== */
body { background: #ccc url(/NoAuth/images/custbg.png) repeat }
/* ===[ Page title ]=== */
div#header h1 {
margin-top: 0px;
font-family: 'Titillium Web', sans-serif;
font-weight: 200;
font-size: 1.8em;
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active March 27, 2024 06:36
A badass list of frontend development resources I collected over time.
@suziewong
suziewong / tcpdump.md
Last active August 13, 2019 08:31
Tcpdump

Tcpdump

看了蛮久的tcpdump,也一直很想尝试抓包这类的技能。

tcpdump

-i 指定监听网卡 lo eth0
-c 数量
-w xxx.cap(直接是wireshark的2进制文件)

-A ACSII显示内容

@kix
kix / cap.rb
Created October 5, 2012 08:04
Capistrano cheat sheet
http://www.dizzy.co.uk/cheatsheets
This work is licensed under the Creative Commons
Attribution-NonCommercial-NoDerivs 2.0 License. To
view a copy of this license, visit
http://creativecommons.org/licenses/by-nc-nd/2.0/uk
########## Shell Commands ##########
Installation:
$ gem install capistrano

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@pithyless
pithyless / gist:1208841
Created September 10, 2011 21:49
Install Python 2.7 (homebrew + pip + virtualenv) on Mac OS X Lion

Install Python

$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7

Symlinks...