Skip to content

Instantly share code, notes, and snippets.

View howmp's full-sized avatar
👁️‍🗨️
你正在被做成表

guage howmp

👁️‍🗨️
你正在被做成表
View GitHub Profile
@icecr4ck
icecr4ck / idapython_cheatsheet.md
Last active April 23, 2024 18:45
Cheatsheet for IDAPython
@fate0
fate0 / pymarshal.py
Last active May 21, 2024 07:33
onmyoji: test
import types
import cStringIO
TYPE_NULL = '0'
TYPE_NONE = 'N'
TYPE_FALSE = 'F'
TYPE_TRUE = 'T'
TYPE_STOPITER = 'S'
TYPE_ELLIPSIS = '.'
TYPE_INT = 'i'
@bencord0
bencord0 / system_uuid.sh
Last active August 31, 2023 11:51
Unique id for a linux system
#!/bin/bash
cat /var/lib/dbus/machine-id && exit
# Provided by dbus, hence available on all systemd systems.
# Any user can read it and it is persistent accross boots.
# It is unique per installation, and works well in VMs.
# Not all systems (i.e. stage3 gentoo/handbook install)
# have dbus installed by default.
cat /sys/class/dmi/id/product_uuid && exit
@mouuff
mouuff / gtranslate.py
Created August 21, 2012 09:33
android fast translator
#!/usr/bin/env python
# -*- coding: latin-1 -*-
import android
import urllib2
droid = android.Android()
def translate(to_translate, to_langage="auto", langage="auto"):
'''Return the translation using google translate
@albertsun
albertsun / linebreaks_wp.py
Created August 21, 2011 05:44
Python port of WordPress's wpautop filter
import re
from django import template
from django.utils.functional import allow_lazy
from django.template.defaultfilters import stringfilter
from django.utils.safestring import mark_safe, SafeData
from django.utils.encoding import force_unicode
from django.utils.html import escape
from django.utils.text import normalize_newlines
register = template.Library()