Skip to content

Instantly share code, notes, and snippets.

@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 / 在 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 / 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 / Increase Playback speed in MPC-HC
Last active June 21, 2019 03:32
调节 MPC-HC 的回放速率的方法
快捷键 `o` 打开 **选项** 菜单,在 **回放** 一栏中将 **控制 > 速度步进** 调节为想要的值,使用 `Ctrl+Up` / `Ctrl+Down` 调节播放速率。