Each commit message consists of a header, a body and a footer. The header has a special format that includes a type, a scope and a subject:
<type>(<scope>): <subject>
<BLANK LINE>
<body>
<BLANK LINE>
// Add a 401 response interceptor | |
window.axios.interceptors.response.use(function (response) { | |
return response; | |
}, function (error) { | |
if (401 === error.response.status) { | |
swal({ | |
title: "Session Expired", | |
text: "Your session has expired. Would you like to be redirected to the login page?", | |
type: "warning", | |
showCancelButton: true, |
#!/bin/bash | |
sudo apt-get install vnc4server ubuntu-desktop | |
sudo apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal |
#!/bin/bash | |
# NB: First install nscd with sudo apt-get install nscd | |
# run this command to flush dns cache: | |
sudo /etc/init.d/dns-clean restart | |
# or use: | |
sudo /etc/init.d/networking force-reload | |
# Flush nscd dns cache: | |
sudo /etc/init.d/nscd restart |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
#!/bin/bash | |
if [[ ! $3 ]] | |
then | |
echo "Usage ./rproxy.sh name ip port" | |
exit 1 | |
fi | |
if [[ -f /etc/nginx/sites-enabled/$1 ]] | |
then |
(require 'cl-lib) | |
(defun personal-identity-last-bit (n) | |
;; 1. S = sum(item(i) * weight(i)) | |
;; 2. Y = mod(S, 11) | |
;; 3. M = map(Y, r) | |
(let ((bits (mapcar 'string-to-number | |
(mapcar 'char-to-string n))) | |
(weights '(7 9 10 5 8 4 2 1 6 3 7 9 10 5 8 4 2)) | |
(map-result '(1 0 "X" 9 8 7 6 5 4 3 2))) |
阐述最清楚的两篇是两篇中文的:
网路启动服务器安装和配置方法(pxe+tftp+dhcpd)
ubuntu的官方文档比较久了,步骤也很繁琐,不推荐。
from subprocess import Popen, PIPE | |
from os import environ | |
def source(script, update=True, clean=True): | |
""" | |
Source variables from a shell script | |
import them in the environment (if update==True) | |
and report only the script variables (if clean==True) | |
""" |
This document describes about installation and configuration of IPMI simulator. | |
We need: qemu-kvm, OpenIPMI, OpenIPMI-tools | |
1) Install the qemu-kvm. We need the qemu, which have the IPMI pacthes. | |
Use the source https://github.com/cminyard/qemu/tree/stable-2.2-ipmi | |
./configure, make and make install | |
2) Download the OpenIPMI libraries, from http://sourceforge.net/projects/openipmi/ | |
Follow the process documented in lanserv/README.vm | |
./configure --prefix=/opt/openipmi/usr --sysconfdir=/opt/openipmi/etc \ | |
--with-perlinstall=/opt/openipmi/usr/lib/perl \ |