This file contains hidden or 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
Query first: | |
xdg-mine query default application/pdf | |
Then set: | |
xdg-mime default mupdf.desktop application/pdf |
This file contains hidden or 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
\copy calls to 'data.csv' with delimiter ','; |
This file contains hidden or 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
(host) vagrant box add CentOS_6.3_x86_64_minimal https://dl.dropbox.com/u/7225008/Vagrant/CentOS-6.3-x86_64-minimal.box | |
(host) vagrant init | |
(host) vim Vagrantfile | |
(host) config.vm.box = "CentOS_6.3_x86_64_minimal" | |
# Update vm virtualbox guest additions | |
(host) cp /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso . | |
(host) vagrant up | |
(host) vagrant ssh | |
(vm) wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm | |
(vm) sudo rpm -i rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm |
This file contains hidden or 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
emerge -av --depclean =postgresql-server-9.1.6 |
This file contains hidden or 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
(1..n).reduce(1, :*) |
This file contains hidden or 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
IFS=$'\n' |
This file contains hidden or 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
IFS=$'\n' | |
for f in `find *`; do mv $f $(exiftool -q -p '$DateTimeOriginal' $f | tr ' ' '_' | tr ':' '_').MTS; done |
This file contains hidden or 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
~> 2.2 - >= 2.2, < 3.0 |
This file contains hidden or 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
*.jar | |
*.iml | |
.idea/ | |
/target | |
This file contains hidden or 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
<bean class="org.springframework.jdbc.datasource.LazyConnectionDataSourceProxy" id="dataSource"> | |
<constructor-arg name="targetDataSource" ref="boneCPDataSource"/> | |
</bean> | |
<bean class="com.jolbox.bonecp.BoneCPDataSource" destroy-method="close" id="boneCPDataSource"> | |
<property name="driverClass" value="${database.driverClassName}"/> | |
<property name="jdbcUrl" value="${database.url}"/> | |
<property name="username" value="${database.username}"/> | |
<property name="password" value="${database.password}"/> | |
<property name="maxConnectionsPerPartition" value="30"/> |
OlderNewer