Skip to content

Instantly share code, notes, and snippets.

@dolt131943
dolt131943 / 个人PC与互联网的安全
Created December 29, 2012 14:55
个人PC与互联网的安全
个人的密码安全助理,1password软件,自动进行密码管理;
@dolt131943
dolt131943 / download InfoQ Video
Created December 29, 2012 16:35
InfoQ的视频下载
http://union.bokecc.com/playvideo.bo?uid=C089D59BA5DEEC18&playerid=58C72EF83A565238&playertype=1&autoStart=false&vid=28535D5099D7FF35
http://union.bokecc.com/servlet/playinfo?uid=C089D59BA5DEEC18&vid=28535D5099D7FF35&lid=&pid=58C72EF83A565238&pt=1&m=1&t=2&pp=false&d=union.bokecc.com&fv=WIN%2011%2C5%2C502%2C110&uu=1432E6BE318DBAA44D95462F785FBEE3B4338501&rnd=4249
与上面等效可读取,从而匹配播放地址上的参数:
http://union.bokecc.com/servlet/playinfo?uid=C089D59BA5DEEC18&vid=28535D5099D7FF35&lid=&pid=58C72EF83A565238
<?xml version="1.0" encoding="UTF-8"?>
@dolt131943
dolt131943 / gist:ffc86379c124a9ec0bb5
Created September 25, 2014 02:42
Hessian序列化问题(父类与子类重复定义了一个Bean属性时会导致值丢失的问题)
class BaseClass implements Serializable{
private String context;
public getContext/setContext...
}
class SubClass extends BaseClass implements Serializable {
冒充淘宝或知名企业客服诈骗
我反应一个今天接到的诈骗电话,请大家注意:
手机显示来电号码:0571-2626-7986,来自杭州。
说是淘宝客服会员活动免费送手表只要交198元,并说198元会返还一张200元话费充值卡,而钱是到付。
我回复我要回拔淘宝官方客服求证,对方说可以便匆忙挂了电话。
经上网查证,有类似案例,特此留言,例如:http://tech.163.com/12/0704/13/85IR1CJM00094MOK.html
希望警方注意,或通报杭州警方追查来电号码,防止他人被骗,制止犯罪。
var spell = {"a": "\u554a\u963f\u9515", "ai": "\u57c3\u6328\u54ce\u5509\u54c0\u7691\u764c\u853c\u77ee\u827e\u788d\u7231\u9698\u8bf6\u6371\u55f3\u55cc\u5ad2\u7477\u66a7\u7839\u953f\u972d", "an": "\u978d\u6c28\u5b89\u4ffa\u6309\u6697\u5cb8\u80fa\u6848\u8c19\u57ef\u63de\u72b4\u5eb5\u6849\u94f5\u9e4c\u9878\u9eef", "ang": "\u80ae\u6602\u76ce", "ao": "\u51f9\u6556\u71ac\u7ff1\u8884\u50b2\u5965\u61ca\u6fb3\u5773\u62d7\u55f7\u5662\u5c99\u5ed2\u9068\u5aaa\u9a9c\u8071\u87af\u93ca\u9ccc\u93d6", "ba": "\u82ad\u634c\u6252\u53ed\u5427\u7b06\u516b\u75a4\u5df4\u62d4\u8dcb\u9776\u628a\u8019\u575d\u9738\u7f62\u7238\u8307\u83dd\u8406\u636d\u5c9c\u705e\u6777\u94af\u7c91\u9c85\u9b43", "bai": "\u767d\u67cf\u767e\u6446\u4f70\u8d25\u62dc\u7a17\u859c\u63b0\u97b4", "ban": "\u6591\u73ed\u642c\u6273\u822c\u9881\u677f\u7248\u626e\u62cc\u4f34\u74e3\u534a\u529e\u7eca\u962a\u5742\u8c73\u94a3\u7622\u764d\u8228", "bang": "\u90a6\u5e2e\u6886\u699c\u8180\u7ed1\u68d2\u78c5\u868c\u9551\u508d\u8c24\u84a1\u8783", "bao": "\u82de\u80de\u5305\u8912\u9
after update to Win 10 , to start genymotion virtual device is fail.
the shown alert msg is "Could not connect to virtual device".
thought goole and try, the final solution is:
open virtualbox and then delete all HOST-ONLY network adapter.
open Genymotion to start virtual device then genymotion will recreate the host-only device, and all is go well.
@dolt131943
dolt131943 / captureWithFiddler.md
Last active May 26, 2016 02:14
基于Fiddler来抓取Android Apk的HTTP/HTTPS数据包

基于Fiddler来抓取Android Apk的HTTP/HTTPS数据包

步骤

电脑端

  1. 安装Fiddler;
  2. 启用允许远程连接;
  3. 启用HTTPS监听;
@dolt131943
dolt131943 / spring-boot-tomcat-hangup-SecureRandom.md
Last active August 16, 2017 11:21
SpringBoot启动内嵌Tomcat时执行业务在取Session卡住-SecureRandom

SpringBoot内嵌Tomcat时执行业务在取Session卡住-与SecureRandom有关

问题

SpringBoot内嵌Tomcat启动业务后,业务请求时挂住

解决方案

使用java -jar -Djava.security.egd=file:/dev/./urandom 来指定生成器。

@dolt131943
dolt131943 / winXpSamba4.5.md
Created September 16, 2017 01:03
upgrade to Debian 9 Samba 4.5.8 Win XP unable access the samba share. alway pop up auth info input dialog.

升级到或安装了Debian9,Samba升级到了4.5.8。发现Ubuntu能用的Samba共享无法被WinXp使用,也无法被我的一些智能设备识别。

经过分析研究,估计各种尝试了有8小时之久,原因很简单,通过问题分析找到可能原因,同时在Man smb.conf里看到相关选项的说明,最后最简单的方案就是下面这句:

ntlm auth (G)

           This parameter determines whether or not smbd(8) will attempt to authenticate users using the NTLM encrypted password response. If disabled, either the lanman
           password hash or an NTLMv2 response will need to be sent by the client.
@dolt131943
dolt131943 / crash_after_win10_patch_update.md
Last active September 16, 2017 15:37
2017/09/13 升级了Windows10 1705最新补丁包后系统出现休眠或睡眠唤醒时会蓝屏(即系统故障直接重启)的问题.

通过卸载相应的补丁包解决了此问题.暂时准备等下个补丁包出,或者未来直接升级创新者补丁包. 另外我的机器比较老旧了,开始还以为硬件问题.不过通过比对也确实有可能是硬件驱动导致了这样类蓝屏的结果.

uninstall latest patch update then this problem resolved.

相关信息:

OS Name: Microsoft Windows 10 专业版