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
(require 'org-publish) | |
(setq org-directory "~/Dropbox/Org") | |
(setq org-internal-directory "~/Org") | |
(setq org-internal-publishing-directory (concat "/ssh:" user-login-name "@HOST01:~/public_html")) | |
(setq org-publish-project-alist | |
`( ;use back-quote | |
;; publish to public cloud | |
("org" :components ("org-notes" "org-static" "org-ebooks")) | |
;; publish to internal cloud |
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
alias open='gnome-open' # in Ubuntu | |
alias open='cygstart' # in Windows/Cygwin |
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
<TimePicker android:id="@+id/time_picker" | |
android:layout_marginTop="10dp" | |
android:layout_width="fill_parent" | |
android:layout_height="wrap_content" | |
android:addStatesFromChildren="true"/> | |
android:layout_height="wrap_content"/> |
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
# convert flac files in current directory to Apple loss-less codec. | |
function flac2alac { | |
for f in *.flac; do | |
ffmpeg -i "$f" -acodec alac "${f%.flac}.m4a" | |
#-map_meta_data $f:${f%.flac}.m4a; | |
done | |
} |
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
# %W% %E% | |
# | |
# Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved. | |
# | |
# Version | |
version=1 | |
# Component Font Mappings |
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
command |& tee output.ext |
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
fastboot flash recovery image_to_flash.img |
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
# invisible | |
setfile -a V afile.txt | |
# visible | |
setfile -a v afile.txt |
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
# combine several pdf files | |
pdftk file1.pdf file2.pdf file3.pdf cat output newfile.pdf | |
# combine files | |
pdftk *.pdf cat output newfile.pdf |
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
# | |
$ > defaults write com.apple.desktopservices DSDontWriteNetworkStores true |