确定需要的requirements-pyx.txt
,从本地生成,如下,python2.7的用户下载requirements-py2.txt
,
python3.5用户下载requirements-py3.txt
创建文件夹并将requirements-pyx.txt
放在文件夹中,并在联网的linux机器上执行:
$ mkdir pip_dir
$ cp requirements.txt pip_dir/
$ cd pip_dir/
package main | |
import ( | |
"log" | |
"os" | |
"time" | |
"path" | |
"io" | |
"fmt" | |
"sync" |
Backup: | |
docker exec -t -u postgres your-db-container pg_dumpall -c > dump_`date +%d-%m-%Y"_"%H_%M_%S`.sql | |
Restore: | |
cat your_dump.sql | docker exec -i your-db-container psql -Upostgres |
# Use an official postgres 9.6.10 image | |
FROM postgres:9.6.10 | |
# Set the working directory to /docker-entrypoint-initdb.d | |
WORKDIR /docker-entrypoint-initdb.d | |
# Copy the current directory contents into the container at /docker-entrypoint-initdb.d | |
ADD postgres-conf/* /docker-entrypoint-initdb.d |
# vim:filetype=config:tw=80:et | |
# | |
# This is sample ~/.stalonetrayrc, resembling default configuration. | |
# Remember: command line parameters take precedence. | |
# | |
# Directives introduced in 0.8 are marked with "NEW in 0.8" | |
# | |
#################################################################### | |
# | |
# stalonetray understands following directives |
You can find the MAC address for LAN1/eth0 (not the BMC MAC) via the SuperMicro IPMI interface by running the following command:
$ ipmitool -U $IPMI_USER -P $IPMI_PASS -H $IPMI_HOST raw 0x30 0x21 | tail -c 18
The eth0 MAC address will be output in this format:
00 25 90 f0 be ef
!------------------------------------------------------------------------------- | |
! Xft settings | |
!------------------------------------------------------------------------------- | |
Xft.dpi: 96 | |
Xft.antialias: false | |
Xft.rgba: rgb | |
Xft.hinting: true | |
Xft.hintstyle: hintslight |
import numpy as np | |
# | |
# Delaunay reduction (originally from phonopy) | |
# | |
def get_Delaunay_reduction(lattice, tolerance): | |
extended_bases = np.zeros((4, 3), dtype=float) | |
extended_bases[:3,:] = np.transpose(lattice) | |
extended_bases[3] = -np.sum(lattice, axis=1) |
#%Module###################################################################### | |
## | |
## intel compiler modulefile | |
## | |
proc ModulesHelp { } { | |
puts stderr "Sets up the paths you need to use intel compilers." | |
puts stderr "If this module files doesn't work well , U can try: ." | |
puts stderr "source /opt/ohpc/pub/apps/intel/parallel_studio_xe_2017_update7/bin/compilervars.sh intel64" | |
puts stderr "If this command couldn't work as well , connect our technical support staff" | |
} |