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
| pdf90 --angle 180 --suffix 'turned' --batch my_file.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
| sudo apt-get install libxext-dev libxt-dev | |
| wget http://downloads.ghostscript.com/public/ghostpdl-9.05.tar.bz2 | |
| tar xjf ./ghostpdl-9.05.tar.gz | |
| cd ghostpdl-9.05/ | |
| ./configure | |
| echo '#define HAVE_SYS_TIME_H' >> xps/obj/gconfig_.h | |
| make xps | |
| ./xps/obj/gxps -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -r150 -o /tmp/a.pdf ~/POWERPOINT.xps |
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
| ffmpeg -vf "transpose=1" -sameq -target ntsc-vcd -i input.m4v out.mpg |
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
| # Install the patch | |
| sudo add-apt-repository ppa:sergio91pt/synaptics+clickpads | |
| sudo apt-get update | |
| sudo apt-get install synaptics-touchpad | |
| # Tweak the default settings | |
| sudo vi /usr/share/X11/xorg.conf.d/51-synaptics-quirks.conf | |
| # Add to the end | |
| Section "InputClass" |
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
| curl http://localhost:8983/solr?q=ppt | |
| http://0.0.0.0:8983/solr/admin/ping | |
| Sunspot.remove(User){ with :account_id, 6465 } |
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
| export BRANCH=edge | |
| export FIRST="hash_of_the_commit_from_which_to_start_forgetting" | |
| export SECOND="hash_of_the_commit_from_which_to_keep_commits" | |
| git checkout $BRANCH | |
| git checkout $SECOND | |
| git reset --soft $FIRST | |
| git commit -C $SECOND | |
| git rebase --onto HEAD $SECOND $BRANCH |
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
| sudo /usr/bin/memcached -vv -p 11211 -m 64 -c 1024 -u memcached -P /var/run/memcached/memcached-11211.pid |
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
| # ~/.tmux.conf | |
| # Will make Ctrl-a as the prefix | |
| unbind C-b | |
| set -g prefix C-a | |
| # Force 256 colors | |
| tmux -2 | |
| # Basic moves | |
| c # create new window |
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
| " Replace all <% whatever do %> with <%= whatever do %> | |
| :args app/views/*/* | |
| :argdo %s/<% \(.*\) do \(.*\) %>/<%= \1 do \2 %>/ge | update |