Skip to content

Instantly share code, notes, and snippets.

@ddrpa
ddrpa / Increase Playback speed in MPC-HC
Last active June 21, 2019 03:32
调节 MPC-HC 的回放速率的方法
快捷键 `o` 打开 **选项** 菜单,在 **回放** 一栏中将 **控制 > 速度步进** 调节为想要的值,使用 `Ctrl+Up` / `Ctrl+Down` 调节播放速率。
@ddrpa
ddrpa / Fix SSH's slow “password” prompt
Last active August 14, 2016 22:38
SSH 连接在输入用户名后较长时间才提示输入密码
[Why does ssh's “password” prompt take so long to appear?](http://askubuntu.com/questions/246323/why-does-sshs-password-prompt-take-so-long-to-appear)
## For putty
Go `Connection > SSH > Auth > GSSAPI` and set `Attempt GSSAPI authentication (SSH-2 only)` to false.
(putty R0.64 on Windows, other version may have difference)
## For shell
@ddrpa
ddrpa / 在 Windows 和 Linux 上运行,写的随意,姑且强制 C99 编译
Last active August 20, 2016 03:54
greed single player and multiplayer version
/* # README
* for more information, visit(CN)
* http://ddrpa.github.io/2016/greed-for-win32-and-nix.html
* This is a This is a curses-based clone of the DOS free-ware game Greed
* Inspired by Eric S. Raymond's Implement on Ubuntu
* But I add element from TRON under multiplayer mode
* The goal of this game is to try to eat as much as possible of the board \
* before munching yourself into a corner.
* ## HOWTO COMPILE
* Please compile this code with C99-support on, \
@ddrpa
ddrpa / How to create an Fedora Live USB
Created September 16, 2016 15:04
How to create an Fedora Live USB
Write the ISO file to the device
```
sudo dd if=/path/to/image.iso of=/dev/sdX bs=8M status=progress oflag=direct
```
@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
@ddrpa
ddrpa / vbs virus hide files
Last active October 5, 2016 08:51
VBS病毒,文件夹被隐藏并替换为快捷方式
attrib -s -h d:/*.* /s /d
@ddrpa
ddrpa / UseXboxOneControlleronFedora.md
Created November 14, 2016 15:02
Use Xbox One Controller on Fedora
dnf search kernel-modules-extra
<!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;
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}"
@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