- Use conda to install pytorch will have less trouble than with pip
Install lammps with openmpi support from conda-forge channel (or you can build your own lammps if you like)- Install lammps from source or else your conda environemnt will be messed up!
Install tensorflow with pip instead of conda as it is slow to resolve environment!Install pytorch and tensorflow with conda at the same time to avoid abi incompatible issue!- For the sake of C++ABI compatibility, use conda to install tensorflow and pip for pytorch
- Don't use full oneapi with openmpi, just use mkl or else there will be segmentation fault
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
trap 'echo ffmpegexit && pkill -P $$' EXIT SIGINT SIGTERM SIGHUP | |
# Define the timeout duration in seconds for file change | |
TIMEOUT_IN_S=10 | |
TOTAL_TIMEOUT_IN_S=7200 | |
# Get the last argument as the output file | |
OUTPUT_FILE="${@: -1}" |
- A windows XP guest machine exported from VMWare as OVF format
- Install cockpit and cockpick-machines:
sudo apt install cockpit cockpit-machines
- Convert vmdk image to qcow2 with the following command:
qemu-img convert -f vmdk -O qcow2 xp-wire-disk1.vmdk xp-wire-disk1.qcow2
- Create winxp virtual machine by importing existed disk, OS type should select
unknown
, don't start vm after import. - Edit network interfaces, change model to
e1000(PCI, legacy)
- Download e1000 driver iso from: https://archive.org/details/intel-pro1000-mt-desktop-82540em-winxp
- Add ISO as CD/ROM
You can add proxy configurations for the Docker client using a JSON configuration file, located in ~/.docker/config.json. Builds and containers use the configuration specified in this file.
{
"proxies": {
"default": {
"httpProxy": "http://proxy.example.com:3128",
"httpsProxy": "https://proxy.example.com:3129",
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Convert DIYP TV List to m3u format | |
Usage: | |
python dipy_to_m3u.py diyp.txt out.m3u | |
DIPY format example: | |
cctv|channel,#genre# | |
CCTV1,http://example.org | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Reddit Crawler | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Crawl posts and comments on a specific reddit sub and export as jsonl | |
// @author Bing | |
// @match https://www.reddit.com/* | |
// @grant GM_registerMenuCommand | |
// ==/UserScript== |
NewerOlder