» Uncategorized の記事

SSH to NAS

cat /proc/sys/dev/raid/speed_limit_max
200000
cat /proc/sys/dev/raid/speed_limit_min
1000

echo 20000 > /proc/sys/dev/raid/speed_limit_min

check with cat /proc/mdstat

Before

1476352536417

After

1476352512955

~ enable airdrop in osx86 ~

connie 2016.06.19 | Uncategorized | | No Comments
cmd type in
defaults write com.apple.NetworkBrowser BrowseAllInterfaces 1
killall Finder

 

~ Openoffice 合併列印 ~

connie 2016.06.17 | Uncategorized | | No Comments

1)先準備一個excel

擷取

2)開多一個Word, 試位,沒問題就選擇repeat位置

擷取2

3) Insert repeat Zone Insert->Fields->Other

擷取3

4)Add database file,選擇返剛剛的excel file

擷取4

5)Type 選擇Mail merge Fileds , database selection找回剛剛加入的excel , 再找loop 的column

擷取5

6)成功會如下

擷取6

7)之後要preview 一下結果及print , tool->mail merge wizard

擷取7

8)按presonalize document load一野

擷取8

9)save merged document 看看,會生產一堆doc, 看看結果

擷取11

10)最後print

擷取11

 

~ USB boot ESXi installer ~

connie 2016.06.17 | ESXi, Uncategorized | | No Comments
  1. Download Rufus
  2. Download ESXI image
  3. Insert usb drive
  4. rufus

~ nas synology install and setup nano ~

connie 2016.05.04 | Uncategorized | | No Comments

Install Nano

ipkg update
ipkg install nano

nano /opt/etc/nanorc
uncomment the include line

Setup nano Fix bad regex error message

nano fix_bad_regex.sh

#!/bin/bash
NEW="\\\b"
DPATH="/opt/share/nano/*.nanorc"
BPATH="/opt/share/nano/"
[ ! -d $BPATH ] && mkdir -p $BPATH || :
for f in $DPATH
do
  if [ -f $f -a -r $f ]; then
    /bin/cp $f "$f.bak"
    sed -i "s/\\\</$NEW/g" "$f"
    sed -i "s/\\\>/$NEW/g" "$f"
   else
    echo "Error: Cannot read $f"
  fi
done

sh fix_bad_regex.sh

 

~ nas synology ipkg install ~

connie 2016.05.04 | Uncategorized | | No Comments
cd /volume1/public

wget http://ipkg.nslu2-linux.org/feeds/optware/syno-e500/cross/unstable/syno-e500-bootstrap_1.2-7_powerpc.xsh

sh syno-e500-bootstrap_1.2-7_powerpc.xsh

ipkg update

 

~ hash sum mismatch @ hk ubuntu 14.04 ~

connie 2015.10.20 | Uncategorized | | No Comments

hash sum mismatch:
http://hk.archive.ubuntu.com trusty/main Translation-en_HK
http://hk.archive.ubuntu.com trusty/multiverse Translation-en_HK
http://hk.archive.ubuntu.com trusty/restricted Translation-en_HK
http://hk.archive.ubuntu.com trusty/universe Translation-en_HK
 

nano /etc/apt/sources.list 

ctrl+w(search)
ctrl+r(replace)
"hk."
""
A(All)
Ctrl+x
save

apt-get update

apt-get update && apt-get upgrade 

 

~ 日版iphone 去除shutter聲 ~

connie 2015.10.19 | iphone, Uncategorized | | No Comments
cd /System/Library/Frameworks/MediaToolbox.framework/

mv RegionalSystemSoundsThatShareBehaviour.plist RegionalSystemSoundsThatShareBehaviour.plist.bak

 

~ Install sqlcipher in osx ~

connie 2015.07.13 | Uncategorized | | No Comments
# clone the repo
git clone https://github.com/sqlcipher/sqlcipher.git
pushd sqlcipher

# check if there are any interesting options
./configure --help

# CFLAGS will turn on encryption, default temp_store to memory,
# (file usage optional), enable full-text search, link to libcrypto
./configure CFLAGS="-DSQLITE_HAS_CODEC -DSQLITE_TEMP_STORE=2 -DSQLITE_ENABLE_FTS3 -lcrypto"

# just to be sure everything is in the initial state
make clean

# use as many CPUs as exist
# (you could also use 'sysctl -n hw.physicalcpu', which would not include 'logical' cores)
time make -j $(sysctl -n hw.ncpu)

 

sudo make install

which sqlcipher
« Previous Page | HOME |