Skip to content

Instantly share code, notes, and snippets.

@Jeswang
Jeswang / getMV.py
Created February 16, 2012 12:12
Download MV from 音悦台
# coding=utf-8
from BeautifulSoup import *
import sys, httplib
import re
import os
import urllib,urllib2
def getMVName(url):
c=urllib2.urlopen(url)
#!/usr/local/bin/python
# -*- coding: utf-8 -*-
from BeautifulSoup import *
import urllib2
import codecs
def urlToTxt(url):
bookUrl = url
suffix = "html"
@Jeswang
Jeswang / gist:2372560
Created April 13, 2012 01:16 — forked from yiquncode/gist:760976
Git代码同步
#线上
#获取代码
git clone ...
#获取更新
git pull
#如果在线上修改了代码,要推回
git push
#线上代码和git版本库冲突
#Your local changes to ... would be overwritten by merge
git fetch --all
//
// UIView+CommonDrawing.h
// Contacts Plus
//
// Created by Tony Arnold on 4/08/10.
// Copyright 2010 The CocoaBots. All rights reserved.
//
#import <Foundation/Foundation.h>
@Jeswang
Jeswang / break.c
Created October 30, 2012 00:07
Using bytes in Python.
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <iostream>
#include <string>
#!/usr/bin/python
# -*- coding:utf-8 -*-
import re
import urllib
import urllib2
from BeautifulSoup import *
SAVE_PATH = "/Users/jeswang/Desktop/ICONS/"
@Jeswang
Jeswang / crawl.py
Created November 30, 2013 09:52
Crawl webpage to restore success records , calculate today's WCG points and list every host's points.
#!/usr/bin/python
# -*- coding:utf-8 -*-
from datetime import datetime
import sqlite3
import cookielib
import requests
from BeautifulSoup import *
device_final_score_url = "https://secure.worldcommunitygrid.org/ms/viewBoincResults.do?filterDevice=0&filterStatus=4&projectId=-1&pageNum=%s&sortBy=returnedTime"
#! /usr/bin/env python
# -*- coding: utf-8 -*-
__docformat__ = 'reStructuredText'
import sys
from bs4 import BeautifulSoup, NavigableString, Tag
from PyQt5.Qt import (
QApplication, QMainWindow, QMenuBar, QMenu, QTreeWidget, QTreeWidgetItem)
@Jeswang
Jeswang / gist:9733150
Last active August 29, 2015 13:57
[有偿] 有比较熟悉越狱开发的吗,帮我解答一个问题
0.问题来源:
想了解一下 iOS 的安全问题,后来走了样变成想调试他人的 iOS 程序。
在这个文章中,[iOS安全攻防(十一):Hack实战——探究支付宝app手势密码 - 念茜的博客 - 博客频道 - CSDN.NET](http://blog.csdn.net/yiyaaixuexi/article/details/18520053),博主用 GDB 调试了支付宝的二进制文件,可以在 GDB 中看到自己定义的类和成员函数的名字,自己实践却得不到。
昨天在 Stack Overflow 提了的问题,地址如下:
[ios - Can gdb use the Symbol information like IDA after dealed with Clutch? - Stack Overflow](http://stackoverflow.com/questions/22591710/can-gdb-use-the-symbol-information-like-ida-after-dealed-with-clutch)
1.过程描述