Jul 15
以前博客搭建在 Godaddy 的免费空间上,考虑到访问速度还可以,稳定性也还行就没有迁移出来,尽管自己已经有几个 VPS 闲置着。但是前几天,Godaddy 突然将我的空间取消了,发了电子邮件也没有回复,考虑再三,决定还是将博客迁移出来,毕竟免费的空间还是没有保障,说关闭就关闭。
整个迁移过程还算容易,以前我曾将博客的数据保存在树莓派的临时空间上,大部分的数据还在的,只有最近几个月的数据没有,好在我在 Openshift 的镜像网站上有备份,所以数据还算没有损失。博客程序还是使用的是 WordPress,模板还是使用的是原来的模板,只是使用上自己的 SSL 证书。
Google App Engine 要放弃旧的 Master/Slave Datastore,几个应用需要迁移,重要的应用还是处理了一下,一些不常用的就放弃了。Google Reader 关闭了,有一个叫 goread 程序可以很大程度上替代 Google Reader,但是搭建过程中总是有点小问题,https的方式访问总是提示过多的重定向,需要将安全选项中的 always 改为 optional 才行。另外有两处个性化的标题须在 base.html 和 site.js 里面修改。
Jul 05
Powered by Twitter Tools
via Chu’s Space http://bit.ly/1Un4i0B
Jun 30
#!/bin/bash
##################################################################
# A Project of TNET Services, Inc
#
# Title: WiFi_Check
# Author: Kevin Reed (Dweeber)
# [email protected]
# Project: Raspberry Pi Stuff
#
# Copyright: Copyright (c) 2012 Kevin Reed
# http://bit.ly/1LS2s1P
#
# Purpose:
#
# Script checks to see if WiFi has a network IP and if not
# restart WiFi
#
# Uses a lock file which prevents the script from running more
# than one at a time. If lockfile is old, it removes it
#
# Instructions:
#
# o Install where you want to run it from like /usr/local/bin
# o chmod 0755 /usr/local/bin/WiFi_Check
# o Add to crontab
#
# Run Every 5 mins - Seems like ever min is over kill unless
# this is a very common problem. If once a min change */5 to *
# once every 2 mins */5 to */2 ...
#
# */5 * * * * /usr/local/bin/WiFi_Check
#
##################################################################
# Settings
# Where and what you want to call the Lockfile
lockfile='/var/run/WiFi_Check.pid'
# Which Interface do you want to check/fix
wlan='wlan0'
pingip='192.168.1.1'
##################################################################
echo
echo "Starting WiFi check for $wlan"
date
echo
# Check to see if there is a lock file
if [ -e $lockfile ]; then
# A lockfile exists... Lets check to see if it is still valid
pid=`cat $lockfile`
if kill -0 &>1 > /dev/null $pid; then
# Still Valid... lets let it be...
#echo "Process still running, Lockfile valid"
exit 1
else
# Old Lockfile, Remove it
#echo "Old lockfile, Removing Lockfile"
rm $lockfile
fi
fi
# If we get here, set a lock file using our current PID#
#echo "Setting Lockfile"
echo $$ > $lockfile
# We can perform check
echo "Performing Network check for $wlan"
/bin/ping -c 2 -I $wlan $pingip > /dev/null 2> /dev/null
if [ $? -ge 1 ] ; then
echo "Network connection down! Attempting reconnection."
/sbin/ifdown $wlan
/bin/sleep 5
/sbin/ifup --force $wlan
else
echo "Network is Okay"
fi
echo
echo "Current Setting:"
/sbin/ifconfig $wlan | grep "inet addr:"
echo
# Check is complete, Remove Lock file and exit
#echo "process is complete, removing lockfile"
rm $lockfile
exit 0
##################################################################
# End of Script
##################################################################
转自:http://bit.ly/1R17JuC
via Chu’s Space http://bit.ly/1LS2uqx
Jun 28
Powered by Twitter Tools
via Chu’s Space http://bit.ly/1CBEMtr
Jun 21
Powered by Twitter Tools
via Chu’s Space http://bit.ly/1K3s112
Recent Comments