Skip to content

Instantly share code, notes, and snippets.

@ddrpa
ddrpa / HeaderEditorConfig.json
Last active May 3, 2022 09:05
Open the URL Right Now
{
"request": [
{
"enable": true,
"name": "jianshu.com",
"ruleType": "redirect",
"matchType": "regexp",
"pattern": "https:\\/\\/www.jianshu.com\\/go-wild\\?(.*)url=(.*)",
"exclude": "",
"group": "Open the F**king URL Right Now",
@ddrpa
ddrpa / HeaderEditorConfig.json
Last active May 3, 2022 10:09
replace emotions with larger icon in steam activity editor
{
"request": [
{
"enable": true,
"name": "replace resources from community.cloudflare.steamstatic.com",
"ruleType": "redirect",
"matchType": "regexp",
"pattern": "https://community.cloudflare.steamstatic.com/economy/emoticon/(.*)",
"exclude": "",
"group": "steam",
@ddrpa
ddrpa / minecraftnet-netease-modal-remover.js
Created May 11, 2019 11:09
remove netease modal while browsing minecraft.net in chinese
// ==UserScript==
// @name minecraft.net netease modal remover
// @namespace http://tampermonkey.net/
// @version 0.1
// @description remove netease modal while browsing minecraft.net in chinese
// @author amethystek
// @match https://*.minecraft.net/zh-hans/*
// @grant none
// ==/UserScript==
@ddrpa
ddrpa / failed to start avdmanager
Created June 5, 2018 12:53
failed to start avdmanager
[source](https://stackoverflow.com/questions/46402772/failed-to-install-android-sdk-java-lang-noclassdeffounderror-javax-xml-bind-a)
Both JDK 9 and 10 are incompatible with android-sdk
```
DEFAULT_JVM_OPTS='"-Dcom.android.sdklib.toolsdir=$APP_HOME" -XX:+IgnoreUnrecognizedVMOptions --add-modules java.se.ee'
```
@ddrpa
ddrpa / README.md
Last active April 11, 2017 07:43
Add Python 3.x and TensorFlow 1.x's support to caffe-tensorflow ImageNet validation example

2017/4/11

To make caffe-tensorflow's .\examples\imagenet\validate.py work with python 3 and tensorflow 1.x

  • exchange .\examples\imagenet\dataset.py with dataset.py
  • exchange .\kaffe\tensorflow\network.py with network.py
Windows Registry Editor Version 5.00
; Created by: Shawn Brink
; http://www.tenforums.com
; Tutorial: http://www.tenforums.com/tutorials/14312-windows-photo-viewer-restore-windows-10-a.html
[HKEY_CLASSES_ROOT\jpegfile\shell\open\DropTarget]
"Clsid"="{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}"
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Count Down</title>
<style type="text/css">
html {
font-family: "Roboto", -apple-system, "Helvetica Neue", Helvetica, "Nimbus Sans L", Arial, "Liberation Sans", "PingFang SC", "Hiragino Sans GB", "Source Han Sans CN", "Source Han Sans SC", "Microsoft YaHei", "Wenquanyi Micro Hei", "WenQuanYi Zen Hei", "ST Heiti", SimHei, "WenQuanYi Zen Hei Sharp", sans-serif;
@ddrpa
ddrpa / UseXboxOneControlleronFedora.md
Created November 14, 2016 15:02
Use Xbox One Controller on Fedora
dnf search kernel-modules-extra
@ddrpa
ddrpa / vbs virus hide files
Last active October 5, 2016 08:51
VBS病毒,文件夹被隐藏并替换为快捷方式
attrib -s -h d:/*.* /s /d
@ddrpa
ddrpa / bpsWithBingAPI.py
Last active January 19, 2017 12:49
获取必应中国今日美图的 python 脚本
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import codecs
import json
import re
import os.path
import urllib.request
import datetime