append in my ~/.bashrc
# listen to the ICRT radio
icrt () {
mplayer mms://bcr.media.hinet.net/RA000038
}
https://github.com/xatier/rc-files/commit/f0454201f70013e17cb87f39422782aa2a563574
$ sudo pacman -S mkvtoolnix-cli $ mkvmerge -i 5426d90fb609da53e52fdc31ce1180efb6e29430 File '5426d90fb609da53e52fdc31ce1180efb6e29430': container: Matroska Track ID 0: audio (PCM) Track ID 1: video (MPEG-4p10/AVC/h.264) Track ID 2: subtitles (SubRip/SRT) Global tags: 1 entries $ mkvextract tracks 5426d90fb609da53e52fdc31ce1180efb6e29430 2:sub.srt Extracting track 2 with the CodecID 'S_TEXT/UTF8' to the file 'sub.srt'. Container format: SRT text subtitles Progress: 100%
# setup a password for the notebook $ ipython In [1]: from IPython.lib import passwd In [2]: passwd() Enter password: Verify password: Out[2]: 'sha1:747ba2295030:7bbe79e452b9bb3cae6e66ed738563e18a15462c' # self-signed cert $ openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout mycert.pem -out mycert # edit the profile for notebook $ mkdir ~/.config/ipython/profile_serv/ $ vim ~/.config/ipython/profile_serv/ipython_notebook_config.py c = get_config() c.NotebookApp.password = u'sha1:747ba2295030:7bbe79e452b9bb3cae6e66ed738563e18a15462c' c.NotebookApp.ip = '*' c.NotebookApp.open_browser = False c.NotebookApp.port = 10001 c.NotebookApp.certfile = u'/home/xatier/note/mycert.pem' # run it! $ ipython notebook --profile=serv
# fetch the kernel source code and extract it wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.12.5.tar.xz tar Jxvf linux-3.12.5.tar.xz cd linux-3.12.5/ # prepare for the compilation, this will delete all current configuration and all generated files make mrproper # copy the config from the running system zcat /proc/config > .config # configure your customized kernel make menuconfig # Go to play some games # n for num of your process, e.g. make -j 8 make -j n # install modules under /lib/modules/ sudo make modules_install # prepare the new kernel under /boot/ sudo cp arch/x86_64/boot/bzImage /boot/vmlinuz-KernelName sudo mkinitcpio -k /boot/vmlinuz-KernelName -c /etc/mkinitcpio.conf -g /boot/initramfs-KernelName.img sudo cp System.map /boot/System.map-KernelName # update grub configuration sudo grub-mkconfig -o /boot/grub/grub.cfg