Version: 1.9.8
Platform: x86_64
First, install or update to the latest system software.
sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
| # Criando um script .sh para executar todos os comandos: | |
| #root@servidor:~# vi script.sh | |
| #root@servidor:~# chmod +x script.sh | |
| #root@servidor:~# ./script.sh | |
| apt-get update | |
| apt-get -y install autoconf automake build-essential git-core libass-dev libgpac-dev libsdl1.2-dev libtheora-dev libtool libvdpau-dev libvorbis-dev libx11-dev libxext-dev libxfixes-dev pkg-config texi2html zlib1g-dev libmp3lame-dev nasm gcc yasm && true | |
| mkdir ~/ffmpeg_sources | |
| cd ~/ffmpeg_sources | |
| git clone --depth 1 git://github.com/mstorsjo/fdk-aac.git |
I use tmux splits (panes). Inside one of these panes there's a Vim process, and it has its own splits (windows).
In Vim I have key bindings C-h/j/k/l set to switch windows in the given direction. (Vim default mappings for windows switching are the same, but prefixed with C-W.) I'd like to use the same keystrokes for switching tmux panes.
An extra goal that I've solved with a dirty hack is to toggle between last active panes with C-\.
Here's how it should work:
| ;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY | |
| ;by doppelganger (doppelheathen@gmail.com) | |
| ;This file is provided for your own use as-is. It will require the character rom data | |
| ;and an iNES file header to get it to work. | |
| ;There are so many people I have to thank for this, that taking all the credit for | |
| ;myself would be an unforgivable act of arrogance. Without their help this would | |
| ;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into | |
| ;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no |
| <?php | |
| if (isset($_GET['ajax'])) { | |
| session_start(); | |
| $handle = fopen('/private/var/log/system.log', 'r'); | |
| if (isset($_SESSION['offset'])) { | |
| $data = stream_get_contents($handle, -1, $_SESSION['offset']); | |
| echo nl2br($data); | |
| } else { | |
| fseek($handle, 0, SEEK_END); | |
| $_SESSION['offset'] = ftell($handle); |
| <script> | |
| // Create an array of images that you'd like to use | |
| var images = [ | |
| 'image1.jpg' | |
| , 'image2.jpg' | |
| , 'image3.jpg' | |
| ]; | |
| // Get a random number between 0 and the number of images | |
| var randomNumber = Math.floor( Math.random() * images.length ); |
| <?php | |
| // An example on how to parse massive XML files with PHP by chunking it up to avoid running out of memory | |
| // Open the XML | |
| $handle = fopen('file.xml', 'r'); | |
| // Get the nodestring incrementally from the xml file by defining a callback | |
| // In this case using a anon function. | |
| nodeStringFromXMLFile($handle, '<item>', '</item>', function($nodeText){ | |
| // Transform the XMLString into an array and |
| This playbook has been removed as it is now very outdated. |