Permalink
Browse files

Add SSH Env sample to TODO.org

  • Loading branch information...
1 parent 6636068 commit 80aed91fdc4d89334a535ea6628352e9ca50f2f1 @yasulab committed Mar 20, 2012
Showing with 36 additions and 5 deletions.
  1. +0 −1 .#TODO.org
  2. +2 −1 .gitignore
  3. +1 −1 .path_progress
  4. +2 −2 TODO.org
  5. +13 −0 bin/publish.py
  6. +2 −0 install.sh
  7. +13 −0 public/header.html
  8. 0 wget-log → public/index.html
  9. +2 −0 public/userlist.txt
  10. +1 −0 run
View
1 .#TODO.org
View
3 .gitignore
@@ -3,4 +3,5 @@
#*
*.out
.DS_Store
-/usr/*
+/usr/*
+wget-log
View
2 .path_progress
@@ -1 +1 @@
-1,1,1,1,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1
+1,1,1,1,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,1,1,0,1,1,2,2
View
4 TODO.org
@@ -40,5 +40,5 @@ Repository
SSH Env Sample
--------------
-environment="RACKHUB_USERNAME=sowawa" ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6HutMQuoJcCLN+gYHgC+8ZczgyDGaIJkqwFeWbmrnPHHdPX3xXtdviVVT8Lq1pzCLs2rrK6fGNpAfU+sB591dzrLzdZT9u3D5kChzd93tNrLgDyU7FYXfW9evvac/NSdcY2CrvBHXsvD7hREWekjMt6UNjdmg97hBJbEHHrWi0ciH7LMQvMF+8g1aqHEFmXeHj8BriujKIz4FizLSG3ojPj6lkPdyoE0dAL+KaUif0OzB1Y9AJ0z+17IXfd2vaxwe9ZXv6RYiPKJFqf0DacBE+bmzSQUdtEwFxkPM8VPap3n+jpX7gVoqkyjYVQb7/OX6+Q9njZDPV86RPk6L/QSuQ== sowawa@sowa.local_rackhab_inserted
-environment="AAA=aaa",command="uptime; echo 'How are you? sowawa';$SHELL" ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6HutMQuoJcCLN+gYHgC+8ZczgyDGaIJkqwFeWbmrnPHHdPX3xXtdviVVT8Lq1pzCLs2rrK6fGNpAfU+sB591dzrLzdZT9u3D5kChzd93tNrLgDyU7FYXfW9evvac/NSdcY2CrvBHXsvD7hREWekjMt6UNjdmg97hBJbEHHrWi0ciH7LMQvMF+8g1aqHEFmXeHj8BriujKIz4FizLSG3ojPj6lkPdyoE0dAL+KaUif0OzB1Y9AJ0z+17IXfd2vaxwe9ZXv6RYiPKJFqf0DacBE+bmzSQUdtEwFxkPM8VPap3n+jpX7gVoqkyjYVQb7/OX6+Q9njZDPV86RPk6L/QSuQ== sowawa@sowa.local_rackhab_inserted
+environment="RACKHUB_USERNAME=yasulab" ssh-rsa HOGEHOGE
+environment="AAA=aaa",command="uptime; echo 'How are you, Yohei?';$SHELL" ssh-rsa FOOBAR
View
13 bin/publish.py
@@ -0,0 +1,13 @@
+#!/usr/bin/python
+import os
+
+os.system("ls $RACKSCHOOL/usr > $RACKSCHOOL/public/userlist.txt")
+
+userlist = open("./public/userlist.txt", "r")
+print userlist.read()
+header = open("./public/header.html", "r")
+header = header.read()
+output = open("./public/index.html", "w")
+html = ''
+
+output.write(html)
View
2 install.sh
@@ -14,8 +14,10 @@ echo "Successfully installed!"
echo " Installed dir : $RACKSCHOOL"
echo " Your username : $RACKUSER"
echo " Your directory: $RACKSCHOOL/usr/$RACKUSER/"
+
echo "#!/bin/sh" > $RACKSCHOOL/run
echo "sh $RACKSCHOOL/bin/create-account.sh \$RACKUSER" >> $RACKSCHOOL/run
echo "python $RACKSCHOOL/bin/shell.py" >> $RACKSCHOOL/run
+echo "python $RACKSCHOOL/bin/publish.py" >> $RACKSCHOOL/run
chmod a+x run
View
13 public/header.html
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?> \
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TransitionalR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
+
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<title>Learn Ruby with RackHub</title>
+<meta name="description" content="" />
+<meta name="keywords" content="" />
+<meta http-equiv="Content-Style-Type" content="text/css" />
+<meta http-equiv="Content-Script-Type" content="text/javascript" />
+<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
+</head>
View
0 wget-log → public/index.html
File renamed without changes.
View
2 public/userlist.txt
@@ -0,0 +1,2 @@
+yasulab
+yohei
View
1 run
@@ -1,3 +1,4 @@
#!/bin/sh
sh /Users/yohei/Dropbox/rackschool/bin/create-account.sh $RACKUSER
python /Users/yohei/Dropbox/rackschool/bin/shell.py
+python /Users/yohei/Dropbox/rackschool/bin/publish.py

0 comments on commit 80aed91

Please sign in to comment.