Skip to content

Instantly share code, notes, and snippets.

@wb14123
wb14123 / update.sh
Created January 31, 2013 12:27
Update my jekyll blog to github and github page.
#!/bin/bash
BASE_DIR=`pwd`
J_DIR="./jekyll"
GIT_DIR="./wb14123.github.com"
cd $J_DIR
jekyll
cd $BASE_DIR
rm -r $GIT_DIR/*
#!/bin/bash
if [ $# -lt 1 ]
then
echo "newpost: You need to specify the post name."
exit 1
fi
POST_NAME=$1
POST_DATE=`date +%Y-%m-%d`
@wb14123
wb14123 / Makefile
Created February 2, 2013 01:48
How Kernel's Makefile Specify Output Directory
ifeq ($(KBUILD_SRC),)
ifeq ("$(origin O)", "command line")
KBUILD_OUTPUT := $(O)
endif
ifneq ($(KBUILD_OUTPUT),)
$(filter-out submake $(CURDIR)/Makefile, $(MAKECMDGOALS)): sub-make
@:
sub-make:
@wb14123
wb14123 / notify-ip-change
Last active March 28, 2016 12:09
Send you an Email while the IP has changed
#!/bin/sh
# Install postfix in order to send Email
# Put this script in /etc/cron.hourly can test if the IP has changed per hour.
# Change the Email "[email protected]" to your Email
ip_file='/tmp/cur_ip'
email='[email protected]'
last_ip=`cat $ip_file`
Verifying my Blockstack ID is secured with the address 17wx1cuXLBSa5Lv9Vosngn4aBseVY9fXnE https://explorer.blockstack.org/address/17wx1cuXLBSa5Lv9Vosngn4aBseVY9fXnE
Verifying my Blockstack ID is secured with the address 1EyvFbbY66YdW9h6oAX5N3mgjMUXAqTgwR https://explorer.blockstack.org/address/1EyvFbbY66YdW9h6oAX5N3mgjMUXAqTgwR