Skip to content

Instantly share code, notes, and snippets.

@teoruiz
teoruiz / migrate-redis.py
Created June 30, 2017 15:01 — forked from thomasst/migrate-redis.py
Migrate Redis data on Amazon ElastiCache
"""
Copies all keys from the source Redis host to the destination Redis host.
Useful to migrate Redis instances where commands like SLAVEOF and MIGRATE are
restricted (e.g. on Amazon ElastiCache).
The script scans through the keyspace of the given database number and uses
a pipeline of DUMP and RESTORE commands to migrate the keys.
Requires Redis 2.8.0 or higher.

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@teoruiz
teoruiz / nginx.conf
Last active August 29, 2015 14:08 — forked from jrom/nginx.conf
if ($request_uri = /) {
set $test A;
}
if ($host ~* teambox.com) {
set $test "${test}B";
}
if ($http_cookie !~* "auth_token") {
set $test "${test}C";

Keybase proof

I hereby claim:

  • I am teoruiz on github.
  • I am teoruiz (https://keybase.io/teoruiz) on keybase.
  • I have a public key whose fingerprint is 29EF 5347 64CB E812 1F6E A345 93FC 8512 4ECA 7C8F

To claim this, I am signing this object:

{24-05-2012 11:29}sikanda:~/src/busuu/Util/deployment@master teo% sudo traceroute al.quimia.net
Password:
traceroute to quimia.net (188.40.71.203), 64 hops max, 52 byte packets
1 192.168.1.12 (192.168.1.12) 1.419 ms 0.918 ms 0.771 ms
2 99.red-80-58-67.staticip.rima-tde.net (80.58.67.99) 37.149 ms 37.716 ms 37.663 ms
3 29.red-80-58-94.staticip.rima-tde.net (80.58.94.29) 41.393 ms 38.108 ms 40.484 ms
4 21.red-80-58-76.staticip.rima-tde.net (80.58.76.21) 40.088 ms 37.965 ms 37.840 ms
5 so2-0-0-0-grtmadpe3.red.telefonica-wholesale.net (84.16.6.201) 36.978 ms 36.758 ms 37.734 ms
6 xe7-1-3-0-grtmadno1.red.telefonica-wholesale.net (84.16.13.213) 38.056 ms 46.465 ms 37.476 ms
7 level3-1-0-0-grtmadno1.red.telefonica-wholesale.net (213.140.55.178) 37.856 ms 38.021 ms
@teoruiz
teoruiz / security_notice_rackspace_cloud_servers.txt
Created April 23, 2012 16:14
Security notice from Rackspace regarding the last weeks cloud server mandatory migrations
We are writing to close communication on the migration notice previously sent
to you, and to provide you more information about the reasons it was necessary.
We know that migrations can be inconvenient, and we thank you for your
patience. Now that the migrations are complete, there is nothing more that you
need to do regarding this issue.
When we announced the recent migrations, we explained that such measures are
periodically required to promote the stability, performance, security, and
feature-richness of our Cloud Servers platform. We were not able to share more
information at the time, without putting you and other customers at risk. Now
<Directory "/opt/graphite/webapp/">
AllowOverride None
#Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
<Location "/graphite">
SetHandler python-program
PythonPath "['/opt/graphite/webapp'] + sys.path"