Skip to content

Instantly share code, notes, and snippets.

View struCoder's full-sized avatar
☀️
Working and Working

david zh struCoder

☀️
Working and Working
  • Shanghai China
View GitHub Profile
@struCoder
struCoder / install_pmgo.sh
Last active April 11, 2017 05:58
install_pmgo
#!/bin/sh
version="0.1.0"
UNAME=$(uname)
# Check to see if it starts with MINGW.
if [ "$UNAME" ">" "MINGW" -a "$UNAME" "<" "MINGX" ] ; then
echo "current release do not support windows"
exit 1
@struCoder
struCoder / gen_dockerfile
Created May 16, 2017 04:09
gen_dockerfile
FROM alpine:3.4
ENV TZ 'Asia/Shanghai'
RUN apk upgrade --no-cache && \
apk add --no-cache bash tzdata && \
mkdir /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2 && \
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
echo "Asia/Shanghai" > /etc/timezone && \
MD5 checksum
In order to find the MD5 checksum value of a file using the following command in the terminal.
$ md5 /path/to/file
To find the SHA1 checksum value use the following command in the terminal.
$ shasum -a 1 /path/to/file
To find the SHA256 checksum use the following command in the terminal.
$ shasum -a 256 /path/to/file