I googled around, especially with site:news.ycombinator.com for backup recommendations.
Here are notes on the top hits.
- by prolific HN member; focus on encryption and deduplication
| package main | |
| import ( | |
| "crypto/aes" | |
| "crypto/cipher" | |
| "crypto/rand" | |
| "encoding/base64" | |
| "fmt" | |
| "io" | |
| ) |
I googled around, especially with site:news.ycombinator.com for backup recommendations.
Here are notes on the top hits.
| #!/bin/bash | |
| # Add the EPEL repo if not added already | |
| yum repolist | grep -i epel | |
| if [ $? -ne 0 ]; then | |
| rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm | |
| fi | |
| # Install the preqs | |
| yum install gcc-c++ httpd python-devel python-pip python-sqlite2 \ |
git add HISTORY.md
git commit -m "Changelog for upcoming release 0.1.1."
bumpversion patch
ror, scala, jetty, erlang, thrift, mongrel, comet server, my-sql, memchached, varnish, kestrel(mq), starling, gizzard, cassandra, hadoop, vertica, munin, nagios, awstats
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| check process foobar with pidfile /var/run/foobar.pid | |
| start program = "/sbin/start foobar" | |
| stop program = "/sbin/stop foobar" | |
| if mem usage > 2% | |
| for 2 cycles | |
| then restart | |
| if failed host 127.0.0.1 port 8000 protocol HTTP |
| # Copyright 2012 Erlware, LLC. All Rights Reserved. | |
| # | |
| # This file is provided to you under the Apache License, | |
| # Version 2.0 (the "License"); you may not use this file | |
| # except in compliance with the License. You may obtain | |
| # a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, |
| # You have your csv data and it looks like so... It's in a file named "my_data.csv" and we want to import it into a table named "my_things". | |
| "1", "Something", "0.50", "2013-05-05 10:00:00" | |
| "2", "Another thing", "1.50", "2013-06-05 10:30:00" | |
| # Now you want to import it, go to the command line and type: | |
| $ PGPASSWORD=PWHERE psql -h HOSTHERE -U USERHERE DBNAMEHERE -c "\copy my_things FROM 'my_data.csv' WITH CSV;" | |
| # Voila! It's impoted. Now if you want to wipe it out and import a fresh one, you would do this: |
| #!/bin/bash | |
| # Source: http://toomuchdata.com/2012/06/25/how-to-install-python-2-7-3-on-centos-6-2/ | |
| # Install stuff # | |
| ################# | |
| # Install development tools and some misc. necessary packages | |
| yum -y groupinstall "Development tools" | |
| yum -y install zlib-devel # gen'l reqs |