- Disable SELinux in `/etc/selinux/config` (need reboot)
- Install RPMFusion free&nofree repos rpm
- Install Wifi BCM4313 driver `yum install kmod-wl` after Step 2
- Install Adobe and Google repos rpm
- Install 163 mirror repos (http://mirrors.163.com/.help/fedora.html)
- Install build-essential alternative, `yum install make automake gcc gcc-c++ kernel-devel` or `yum-builddep sqlite` or `yum groupinstall “Development Tools”`
- Configure yum use proxy in /etc/yum.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- show running queries (pre 9.2) | |
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
FROM pg_stat_activity | |
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
ORDER BY query_start desc; | |
-- show running queries (9.2) | |
SELECT pid, age(clock_timestamp(), query_start), usename, query | |
FROM pg_stat_activity | |
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.PHONY: _pwd_prompt decrypt_conf encrypt_conf | |
CONF_FILE=conf/settings.json | |
# 'private' task for echoing instructions | |
_pwd_prompt: | |
@echo "Contact [email protected] for the password." | |
# to create conf/settings.json | |
decrypt_conf: _pwd_prompt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'eclipse' | |
apply plugin: 'idea' | |
apply plugin: 'java' | |
project.version = "1.0" | |
try { | |
new ByteArrayOutputStream().withStream { os -> | |
def result = exec { | |
executable = 'svn' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
D:\ffmpeg\bin\ffmpeg.exe -i %1 -f mp4 -c:v mpeg4 -b:v 2000k -g 300 -bf 2 -pass 1 -an -f rawvideo -y NUL | |
D:\ffmpeg\bin\ffmpeg.exe -i %1 -f mp4 -c:v mpeg4 -b:v 2000k -g 300 -bf 2 -pass 2 -c:a copy %2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
FLAC="${1:-Disc.flac}" | |
CUE="${FLAC%%.flac}.cue" | |
if [ ! -r "$CUE" ] | |
then | |
echo "Cannot read '$CUE'" | |
exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'eclipse' | |
apply plugin: 'idea' | |
apply plugin: 'java' | |
project.version = "1.0" | |
try { | |
new ByteArrayOutputStream().withStream { os -> | |
def result = exec { | |
executable = 'svn' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
cd $HOME/public_html/voanews | |
SENEWS=$(date '+%y%m%d')_SE_NEWS.mp3 | |
HLNEWS=$(date '+%y%m%d')_HL_NEWS.mp3 | |
wget -O "${SENEWS}" \ | |
"http://www.voanews.com/mp3/voa/english/spec/SPECIAL_ENGLISH_NEWS.mp3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; This buffer is for notes you don't want to save, and for Lisp evaluation. | |
;; If you want to create a file, visit that file with C-x C-f, | |
;; then enter the text in that file's own buffer. | |
(setq temp-articles '( | |
"progbot.html" | |
"lwba.html" | |
"avg.html" | |
"javacover.html" | |
"popular.html" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
backend host1 | |
mode http | |
server inst1 host1:port1 | |
backend host2 | |
mode http | |
server inst1 host2:port2 | |
frontend http-in | |
bind :80 |
NewerOlder