Skip to content

Instantly share code, notes, and snippets.

View Vdragon's full-sized avatar

V字龍(Vdragon) Vdragon

  • V字龍軟體開發組(Vdragon Software Development Group)
  • 台灣(Taiwan)
View GitHub Profile
@Vdragon
Vdragon / prompt_yes_or_no.function.bash
Created November 26, 2017 09:52
prompt_yes_or_no.function.bash
# Prompt for Yy/Nn, if not the expected answer ask again
# Parameter: A string of prompt; Default answer(Y/N)
# return 0 for yes and 1 for no
prompt_yes_or_no(){
if [ ${#} -ne 2 ]; then
printf --\
'Fatal: %s: Function paramater quantity mismatch! Please report bug\n'\
"${FUNCNAME[0]}"\
1>&2
exit 1
#!/usr/bin/env bash
#shellcheck disable=SC2034
# Comments prefixed by BASHDOC: are hints to specific GNU Bash Manual's section:
# https://www.gnu.org/software/bash/manual/
## Makes debuggers' life easier - Unofficial Bash Strict Mode
## http://redsymbol.net/articles/unofficial-bash-strict-mode/
## BASHDOC: Shell Builtin Commands - Modifying Shell Behavior - The Set Builtin
### Exit prematurely if a command's return value is not 0(with some exceptions), triggers ERR trap if available.
set -o errexit
@Vdragon
Vdragon / clone-host-rom-information.bash
Created October 10, 2016 18:52
clone-host-rom-information.bash
#!/usr/bin/env bash
# Refer Oracle VM VirtualBox Manual "Configuring the BIOS DMI information" section
# This script is proudly improved from the "Dualboot-Windows virtualisieren › Wiki › ubuntuusers.de" article:
# https://wiki.ubuntuusers.de/Dualboot-Windows_virtualisieren/
set -o errexit
VM_NAME="直接啟動主端安裝的 Microsoft Windows" # Name der Virtuellen Maschine
MOTHERBOARD_FIRMWARE_TYPE="efi" #pcbios for pc, efi for efi
CFG_PATH="VBoxInternal/Devices/$MOTHERBOARD_FIRMWARE_TYPE/0/Config"

UNDERTALE Unofficial Novel

https://github.com/Vdragon/UNDERTALE_Unofficial_Novel

Spoiler Warning

WARNING: This novel contains spoilers of the UNDERTALE game, it is advised to play this game before continuing reading the novel!

Game Author

2015 © Toby Fox

Unofficial Novel Original Author

<!DOCTYPE HTML>
<html lang="en" >
<head>
<title>Novel Introduction · UNDERTALE Unofficial Novel</title>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta name="description" content="">
<meta name="generator" content="GitBook 3.1.1">
@Vdragon
Vdragon / stdout.log
Created April 24, 2015 15:01
Scene rendered pale white when turn the graphics level to max. · Issue #2111 · supertuxkart/stk-code
[info ] [FileManager]: Data files will be fetched from: 'data/'
[info ] [FileManager]: User directory is '/home/Vdragon/.config/supertuxkart/0.8.2/'.
[info ] [FileManager]: Addons files will be stored in '/home/Vdragon/.local/share/supertuxkart/addons/'.
[info ] [FileManager]: Screenshots will be stored in '/home/Vdragon/.cache/supertuxkart/screenshots/'.
[info ] [FileManager]: User-defined grand prix will be stored in '/home/Vdragon/.local/share/supertuxkart/grandprix/'.
[info ] [FileManager]: Asset 0 will be loaded from 'data/challenges/'.
[info ] [FileManager]: Asset 1 will be loaded from 'data/fonts/'.
[info ] [FileManager]: Asset 2 will be loaded from 'data/gfx/'.
[info ] [FileManager]: Asset 3 will be loaded from 'data/grandprix/'.
[info ] [FileManager]: Asset 4 will be loaded from 'data/gui/'.
import java.util.Scanner;
public class DetectEmptyLine_Problematic_Demonstration{
public static void main(String args[]){
Scanner standard_input_reader = new Scanner (System.in);
StringBuffer input_line = new StringBuffer();
while(!(input_line.insert(0, standard_input_reader.nextLine()).toString().isEmpty())){
System.out.println(input_line);
input_line.setLength(0);
#!/bin/sh
rm -r ~/.feed
mkdir ~/.feed
cp fetchRSS.pl ~/.feed
# cd to the Data directory
cd ~/.feed
# default subscriptionss
@Vdragon
Vdragon / GPL3+.zh_TW.unofficial.license
Created March 25, 2012 03:32
GPL宣告中文非官方翻譯中英對照版
這個程式是一個自由軟體:您可以在遵守自由軟體基金會(Free Software Foundation)所發佈的GNU General Public License授權條款第3版或是(於您的選擇下的)任一更新版本的前提下將它重新分發及/或修改。
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
這個程式以開發者認為它可能有用的情況下被分發,但是*不包含任何擔保*;甚至不包含暗示其對於*商業價值*或是*特定需求的適用性*的保證。更多相關細節請參考GNU General Public License授權條款
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
您應該已經得到一份GNU General Public License授權條款的副本。如果沒有請上<http://www.gnu.org/licenses/>瀏覽。
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
@Vdragon
Vdragon / sources.list
Created March 21, 2012 12:24
sources.list of Linux Mint 12 Lisa
deb http://free.nchc.org.tw/linuxmint/packages/ lisa main upstream import
deb http://free.nchc.org.tw/ubuntu/ oneiric main restricted universe multiverse
deb http://free.nchc.org.tw/ubuntu/ oneiric-updates main restricted universe multiverse
deb http://free.nchc.org.tw/ubuntu/ oneiric-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ oneiric partner
deb http://packages.medibuntu.org/ oneiric free non-free
deb http://archive.getdeb.net/ubuntu oneiric-getdeb apps
deb http://archive.getdeb.net/ubuntu oneiric-getdeb games
deb http://debian.luna.com.tw/debian ./