跳到主要內容

發表文章

Amazon EC2 Public IP Ranges

https://forums.aws.amazon.com/ann.jspa?annID=1701# <quote> Dear Amazon EC2 customer, We are pleased to announce that as part of our ongoing expansion, we have added new public IP ranges. The current Amazon EC2 public address ranges are:  US East (Northern Virginia):  72.44.32.0/19 (72.44.32.0 - 72.44.63.255)  67.202.0.0/18 (67.202.0.0 - 67.202.63.255)  75.101.128.0/17 (75.101.128.0 - 75.101.255.255)  174.129.0.0/16 (174.129.0.0 - 174.129.255.255)  204.236.192.0/18 (204.236.192.0 - 204.236.255.255)  184.73.0.0/16 (184.73.0.0 - 184.73.255.255)  184.72.128.0/17 (184.72.128.0 - 184.72.255.255) 184.72.64.0/18 (184.72.64.0 - 184.72.127.255)  50.16.0.0/15 (50.16.0.0 - 50.17.255.255) 50.19.0.0/16 (50.19.0.0 - 50.19.255.255) 107.20.0.0/14 (107.20.0.0 - 107.23.255.255) 23.20.0.0/14 (23.20.0.0 - 23.23.255.255) 54.242.0.0/15 (54.242.0.0 - 54.243.255.255) 54.234.0.0/15 (54.234.0.0 - 54.235.255.255) 54.236.0.0/15 (54.236.0.0 - ...

wildcard dns for everyone xip.io

Interesting... What is xip.io? xip.io is a magic domain name that provides wildcard DNS for any IP address. Say your LAN IP address is 10.0.0.1 . Using xip.io, 10.0.0.1 .xip.io resolves to 10.0.0.1 www. 10.0.0.1 .xip.io resolves to 10.0.0.1 mysite. 10.0.0.1 .xip.io resolves to 10.0.0.1 foo.bar. 10.0.0.1 .xip.io resolves to 10.0.0.1 ...and so on. You can use these domains to access virtual hosts on your development web server from devices on your local network, like iPads, iPhones, and other computers. No configuration required! Think about what can it do for you?

user specific sshd config

When ssh to some AWS EC2 AMI such as RedHat , Amazon Linux and Ubuntu, ssh will prompt some message like below: Please login as the user "ec2-user" rather than the user "root". The secret is here: # cat /root/.ssh/authorized_keys no-port-forwarding,no-agent-forwarding,no-X11-forwarding,command="echo 'Please login as the user \"ec2-user\" rather than the user \"root\".';echo;sleep 10" Summary: You can define user-specific sshd config in ~/.ssh/authorized_keys file

[Android] Trigger

This app Trigger formerly known as NFC Task Launcher. You can trigger tasks (change profile) not only by NFC by also Wifi, Bluetooth status....etc... So, give it a try, it's great! NFC Smart Tags! http://www.youtube.com/watch?v=LfkFgtoQtFQ

Sync facebook upcoming events to Google calendar

Login your facebook account > Events > Setting Icon > Export links for import Copy the links and login to Google Calendar > Other Calendars > Add by URL sync calendar from URL After that, you can have your facebook events in Google Calendar, and with Cal app , it's a wonderful user experience to get noticed for my events :>

netsted hypervisor in ESXi 5.1

check if ESXi can support VHV https://[your-esxi-host-ip-address]/mob/?moid=ha-host&doPath=capability check filed "nestedHVSupported" create a VM with "Hardware Version 9" choose VM type as "Others 64bit" ssh into ESXi, modify {VM}.vmx +vhv.enable = "true" !guestOS = "vmkernel5" REF: http://www.virtuallyghetto.com/2012/08/how-to-enable-nested-esxi-other.html

upload single ssh public key for all ec2 regions

Prerequisite: EC2-API-Tools ssh-keygen to create ssh key pairs on linux Parameters:   region names: such as ap-southeast-2,.... keypair-names: for example, my-ec2-keypairs for r in us-east-1 ues-east-2 us-west-1 us-west-2 ap-southeast-1 ap-southeast-2 eu-west-1; do ec2-import-keypair --region $r your-keypair-name --public-key-file ~/.ssh/id_rsa.pub ; done REF: http://aws.typepad.com/aws/2010/09/new-amazon-ec2-feature-bring-your-own-keypair.html http://www.pyrosoft.co.uk/blog/2010/10/27/import-your-own-rsa-ssh-key-into-amazon-ec2/