If with Apache you’re getting this error when deploying multiple name-based domains using port 443, or 80 for that matter
VirtualHost overlap on port 443, the first has precedence
Just edit your ports.conf (or httpd.conf)
sudo nano ports.conf
And add these,
NameVirtualHost *:80
NameVirtualHost *:443
Save and test your config again
sudo apache2ctl configtest
This should now clear ok.
from Terminal
wget https://www.dropbox.com/download?dl=packages/debian/nautilus-dropbox_0.7.1_i386.deb -o nautilus.deb
next install the debian package, and grab any dependencies needed with apt-get
sudo dpkg -i nautilus.deb
sudo apt-get -f install
You will also need python-gpgme for the daemon
sudo aptitude install python-gpgme
If needed, now install the daemon
dropbox start -i
Do this again and you’ll be given a URL to authorize your machine with an account, afterwards there will be a Dropbox directory in your Home directory syncing with your account.
Final thing linux will complain about being unable to monitor the entire dropbox hierarchy, to fix this do
echo 100000 | sudo tee /proc/sys/fs/inotify/max_user_watches
Today was time well spent building & booting the latest Chromium operating system.
Chromium OS is an open-source project that aims to build an operating system that provides a fast, simple, and more secure computing experience for people who spend most of their time on the web.
I’ve uploaded an image of the successful build, it’s taken from an 8gb stick and is available here (downloadable size 530mb).
Build Info:
Chromium OS 0.11.231.2011._03_06_1150
Chromium 11.0.691.0
You should be able to use an image writer or DD to copy the image onto a suitable stick and then boot from it.
Developers Guide here
Download here ~ https://github.com/johnantoni/vimfiles
What you see is my own personal VIM configuration, with all manner of plugins, color formats and cool status messages.
Feel free to fork and copy it as you want, you can even drop me a line to suggest improvements.
Best,
git clone [url] ~/.vim
ln -nfs ~/.vim/vimrc ~/.vimrc
ln -nfs ~/.vim/gvimrc ~/.gvimrc
cd ~/.vim/ruby/command-t
ruby extconf.rb
make
Afterwhich you’ll be able to use Command-T (aka Textmate Goto File) with \t
Either download from vim.org and install with Mercurial or download from my github vim mirror with:
git clone git://github.com/johnantoni/vim.git
cd vim/src
Now if you’re in linux i’d recommend install vim with ruby support via
./configure --with-features=huge --enable-rubyinterp
But if your on OSX i’d recommend installing MacVIM as it’s got ruby support baked in (plus it’s a major pain to compile vim with ruby support in osx)
./configure --with-features=huge
Whatever you decide, compile and install with
make
sudo make install
If however you want to re-configure later, run this to clean the SRC directory before re-building:
make distclean
For OSX users i’d recommend installing MacVIM rather than using the Terminal client. Along with that install HomeBrew, it’s a really efficient package manager for OSX.
And if you want the GoTo file that TextMate has (and CommandT provides) install PeepOpen from PeepCode, really awesome (and support already baked into this config)
\ leader key
i switch to insert mode
esc switch out of insert mode
With the CommandT plugin installed you can do a TextMate go-to file with \t After which you can start typing the file your after and it’ll zero in on it
Included with this git repository is a pretty decent .gitignore file which works quite well as the basis of your global ignore file.
To install the packaged .gitignore file to your global git config, do:
git config --global core.excludesfile ~/.vim/.gitignore
Open with :NERDTree Create new file pressing ‘a’ Switch windows with CTRL+ww
:helptags ~/.vim/doc
The four basic functions of any persistent storage mechanism.
Refers to all of the major functions that need to be implemented in a relational database application to consider it complete. Each letter in the acronym can be mapped to a standard SQL statement:
It’s really that simple and not only applies to databases but nearly any form of application.
In simplest terms, a time-based scheduling service in Unix & Linux systems.
Driven by a configuration file named crontab that specifies shell commands to run periodically on a given schedule.
E.g. * Load the LighTPD web server when the server reboots
TAR is a linux command that makes it easy to wrap up entire files & directories and put them into one file that can be moved to another location. Basically it creates a tape archive (TARBALL) of your files, allowing you to extract them later on and even compress their contents via BZIP; plus it’s really fast!
tar -cvvf backup.tar work
…creates a tar file named work.tar which contains everything in work directory and recursively everything beyond
tar -cjvf backup.tbz work
…adding -j enables tar to compress files & directories with bzip, backing up everything in the work directory and everything beyond. note the different extension used -> .tbz denoting it’s a compressed archive
tar -xvvf backup.tar
…extracts / untar’s everything from the work.tar tarball inside the directory your in
if bzipped, extract with…
tar -xjvf backup.tgz
or gzipped, extract with…
tar -xcvf backup.tar.gz
GZip is essentially a free version of winzip without the you-gotta-pay-for-it stamp. Now used on it’s own it works on single files turning them into gzipped .gz files, with TAR and it allows you to gzip tons of files (see examples above).
to gzip a file do…
gzip myfile.txt
…this gzips it to myfile.gz
to extract the gzipped file do…
gunzip myfile.gz
tar -zcvf backup.tgz .
tar -xzvf backup.tgz