Skip to content

Instantly share code, notes, and snippets.

$ ssh -v
OpenSSH_5.2p1, OpenSSL 0.9.8r 8 Feb 2011
usage: ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]
[-D [bind_address:]port] [-e escape_char] [-F configfile]
[-i identity_file] [-L [bind_address:]port:host:hostport]
[-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
[-R [bind_address:]port:host:hostport] [-S ctl_path]
[-w local_tun[:remote_tun]] [user@]hostname [command]
$
@takipone
takipone / vmimport.bash
Created April 3, 2013 09:31
execute AWS VM Import sample bash script
#!/bin/bash
VMDK=<YOUR-VMDK-FILENAME>.vmdk
S3_OWNER_ACCESS_KEY=<YOUR_ACCESS_KEY>
S3_OWNER_SECRET_KEY=<YOUR_ACCESS_SECRET_KEY>
S3_BUCKET_NAME=<YOUR_BUCKET_NAME>
ec2-import-instance \
$VMDK \
-t m1.small \
@takipone
takipone / init.bash
Created August 20, 2012 14:22
Scaffold commands
rails g scaffold article name:string host_name:string enable:boolean note:text
rails g scaffold schedule name:string code:string description:text enable:boolean note:text start_date:datetime end_date:datetime schedule_type:references entry:integer
rails g scaffold articles_schedules artcle:references schedule:references --id=false --timestamps=false
rails g scaffold schedule_type name:string color:string enable:boolean note:text
rake db:migrate
@takipone
takipone / cmdlist.md
Created August 17, 2012 02:05
system power on command for SMASH/CLP

Poweron

cd /admin1/system1
start

Show powerstate

cd /admin1/system1

powerstate

@takipone
takipone / interfaces
Created May 24, 2012 03:38
Debian/Ubuntu /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address IP_ADDR
netmask NETMASK
gateway DEFAULT_GATEWAY
dns-nameservers DNS