Skip to content

Instantly share code, notes, and snippets.

View IS-Kuan's full-sized avatar

IS-Kuan

  • Taipei, Taiwan
View GitHub Profile
@IS-Kuan
IS-Kuan / form.html
Created June 14, 2019 05:12 — forked from runspired/form.html
How to turn off password and email/username autocomplete.
<!--
<form autocomplete="off"> will turn off autocomplete for the form in most browsers
except for username/email/password fields
-->
<form autocomplete="off">
<!-- fake fields are a workaround for chrome/opera autofill getting the wrong fields -->
<input id="username" style="display:none" type="text" name="fakeusernameremembered">
<input id="password" style="display:none" type="password" name="fakepasswordremembered">
@IS-Kuan
IS-Kuan / rwd.css
Created November 15, 2017 09:35
table td text-ellipsis example
th.name { width: 100%; }
td.name {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
@media screen and (max-width: 1399px) { td.name { max-width: 100px; } }
ngAnnotatePlugin = require('ng-annotate-webpack-plugin')
copyWebpackPlugin = require('copy-webpack-plugin')
webpack = require('webpack')
path = require('path')
ExtractTextPlugin = require('extract-text-webpack-plugin')
# https://stackoverflow.com/questions/39642601/typeerror-path-replace-is-not-a-function
# LESS / SASS will be build and extracted into separate .css files
cssExtractor = new ExtractTextPlugin('[name].css')
@IS-Kuan
IS-Kuan / ffmppeg-advanced-playbook-nvenc-and-libav-and-vaapi.md
Created May 26, 2017 04:40 — forked from Brainiarc7/ffmppeg-advanced-playbook-nvenc-and-libav-and-vaapi.md
FFMpeg's playbook: Advanced encoding options with hardware-accelerated acceleration for both NVIDIA NVENC's and Intel's VAAPI-based hardware encoders in both ffmpeg and libav.

FFmpeg and libav's playbook: Advanced encoding options with hardware-based acceleration, NVIDIA's NVENC and Intel's VAAPI-based encoder.

Hello guys,

Continuing from this guide to building ffmpeg and libav with NVENC and VAAPI enabled, this snippet will cover advanced options that you can use with ffmpeg and libav on both NVENC and VAAPI hardware-based encoders.

For ffmpeg:

;; ============================================
;; Coldnew's Font Size Conf for Org-Table
;; ============================================
;; 特殊字型設定
(when (window-system)
(if (eq system-type 'windows-nt)
(set-face-attribute 'default nil :font "Consolas-9"))
(defvar emacs-english-font "DejaVu Sans Mono" "The font name of English.")
(defvar emacs-cjk-font "文泉驛等寬微米黑" "The font name for CJK.")
@IS-Kuan
IS-Kuan / freeze-emacs.scss
Last active March 29, 2017 05:15
This SCSS file may stuck your Emacs significantly (at least tested on Emacs 25.1 installed via Brew, statrtup with -Q option). Move cursor to EOL of `$colors:` , press Enter then type some characters. Use `pkill -SIGUSR2 Emacs` to interrupt it forcely. It seems that jit-lock.el is the murdurer.
// === colors ====
$colors:
"base_grey" #e8e8e8,
"base_white" #fff,
"base_black" #333,
"switch1_color" #e6943b,
"swtich2_color" #56b538,
"wireless_color" #4baae2,
"router_color" #969696,
"ite_color" #756bb1,
@IS-Kuan
IS-Kuan / stream_to_youtube.sh
Created November 23, 2016 09:00 — forked from olasd/stream_to_youtube.sh
Stream video to youtube via ffmpeg
#! /bin/bash
#
# Diffusion youtube avec ffmpeg
# Configurer youtube avec une résolution 720p. La vidéo n'est pas scalée.
VBR="2500k" # Bitrate de la vidéo en sortie
FPS="30" # FPS de la vidéo en sortie
QUAL="medium" # Preset de qualité FFMPEG
YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2" # URL de base RTMP youtube
QtAV 1.11.0(Nov 11 2016, 10:52:48)
Multimedia framework base on Qt and FFmpeg.
Distributed under the terms of LGPLv2.1 or later.
Shanghai University->S3 Graphics->Deepin, Shanghai, ChinaCopyright (C) 2012-2016 Wang Bin (aka. Lucas Wang) [email protected]
Donate: http://qtav.org/donate.html
Source: https://github.com/wang-bin/QtAV
Home page: http://qtav.org"Build with Qt-5.7.0"
"FFmpeg/Libav configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-li