使用 gcloud 由 snapshot 建出機器並加入 loading balancer
--
由 THE_SNAPSHOT_NAME
snapshot 建出一顆 disk MY_INSTANCE
:
gcloud compute disks create MY_INSTANCE --source-snapshot THE_SNAPSHOT_NAME --zone asia-east1-c
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 | |
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 | |
# variables reflection by setup module | |
{{nat_ip_address}} {{ansible_fqdn}} {{ansible_hostname}} | |
# other IP Mappings |
#!/bin/sh | |
# Licensed to the Apache Software Foundation (ASF) under one or more | |
# contributor license agreements. See the NOTICE file distributed with | |
# this work for additional information regarding copyright ownership. | |
# The ASF licenses this file 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 |
#!/bin/bash | |
# | |
# tomcat6 This shell script takes care of starting and stopping Tomcat | |
# | |
# chkconfig: - 80 20 | |
# | |
### BEGIN INIT INFO | |
# Provides: tomcat6 | |
# Required-Start: $network $syslog | |
# Required-Stop: $network $syslog |
import optparse | |
from oauth2client.client import flow_from_clientsecrets | |
from oauth2client.file import Storage | |
OAUTH_SCOPE = 'https://www.googleapis.com/auth/compute' | |
REDIRECT_URI = 'urn:ietf:wg:oauth:2.0:oob' | |
def gen_credentials_file(json_secret, credentials_file): | |
flow = flow_from_clientsecrets( |
批踢踢實業坊›看板 Soft_Job關於我們聯絡資訊 | |
返回看板分享 | |
作者egist (Egist) | |
看板Soft_Job | |
標題[徵才] iOS/Android Developer | |
時間Fri Sep 19 16:42:19 2014 | |
我們是做 https://hooloop.com 的。 |
使用 gcloud 由 snapshot 建出機器並加入 loading balancer
--
由 THE_SNAPSHOT_NAME
snapshot 建出一顆 disk MY_INSTANCE
:
gcloud compute disks create MY_INSTANCE --source-snapshot THE_SNAPSHOT_NAME --zone asia-east1-c
試著用 ssh_setup 設定多台 Server 間的 ssh key,有個錯誤是這樣的:
[server@www ~]# ssh-keygen -R aaa.bbb.ccc.ddd
line 63 invalid key: aaa.bbb.ccc.ddd...
/server/.ssh/known_hosts is not a valid known_host file.
Not replacing existing known_hosts file because of errors
You have new mail in /var/spool/mail/server
memory_estimate_script=$(mktemp /tmp/tmp.XXXXXXXXXX) | |
cat << EOF > $memory_estimate_script | |
import re | |
import os.path | |
if not os.path.exists("/proc/meminfo"): print 1024 | |
with open("/proc/meminfo") as fh: | |
line = fh.readline() | |
if "MemTotal" in line and "kB" in line: |
import os | |
import urllib2, base64 | |
import sys | |
import urllib | |
class TomcatManager(object): | |
def __init__(self, endpoint, username, password): | |
self.endpoint = endpoint |
其實蠻好奇以「技術實務教育者的瓶頸、窘境與挑戰」為作文的題目大家會寫成什麼樣子。 我的想法,只有主觀的思考。所以,先提醒想追求公平客觀者,可以放棄這篇文章 :)
由於存續者偏誤的原因,我們實在很難真的明白為什麼有些人無法被訓練,但我也不想要輕易地將他們歸納入學習態度不佳、沒有熱情、沒有邏輯,或是簡單一句沒心當作這些結果的原因。即使遇到的當下,這真的為自我安慰的藉口,但得試著捨棄這些易懂的答案來重新論述一番。
社群的 meetup 都在做些什麼事呢?剛開始講一些基礎入門,再來是進階到 library 或 framework 怎麼使用。運氣好可以請到一些成功者來進行案例分享,或是談談國外研討會的新概念,或社群間的八卦。能來持續參與的人基本上都能跟得上「話題」能溝通,聊得上幾句,或是在旁觀聆聽也不覺得無聊。這類的人,相信都有能力提昇自己的能力,來參與能多讓知識與資訊流通。加速個人成長的循環階段(認識新知、知道有人在使用某個技術或概念、自己開始使用某個技術或概念,最終能將相關經驗用在工作上)。 有另一大群人,就是沒有在社群活動中存活下來的部分。不管是沒有勇氣踏出第一步,或是來過了,覺得繼續參與不會有新的收穫而不再參加的人們。去掉那些強到可以飛天鑽地的大濕,多數是與我們一般平凡的「勞動者」,就算我們做的是「腦力活」,但多數時間就真的只是「勞工」而已。
面對「技術實務教育」這個議題,我會先排除一部分的人作為無法訓練的群體:生活重心不放在提昇職能者。得注意這是個「動態」的標準,這並不是將人貼標籤,說此人永世不得錄用。只是他可能這幾個月有別的生活重心,過一陣子又有自我提昇的志向。 動機先決是我的基本條件,但站在有權決定教育內容者的角度,好球帶的拿捏是很難的。面對這些最多數的,程度不上不下的需求者他們需要什麼?