Using yt-dlp (thank you @ayyucedemirbas!)
You must have a Vimeo account, do not sign in via Google or anything else, yt-dlp asks for your email address and password to log in.
You must install the yt-dlp via the command below (for MacOS):
Using yt-dlp (thank you @ayyucedemirbas!)
You must have a Vimeo account, do not sign in via Google or anything else, yt-dlp asks for your email address and password to log in.
You must install the yt-dlp via the command below (for MacOS):
| # If you don‘t want to build it youself, you can try `docker pull killercai/postgres`. | |
| FROM healthcheck/postgres:latest | |
| # China debian mirror | |
| RUN sed -i s@/deb.debian.org/@/mirrors.aliyun.com/@g /etc/apt/sources.list | |
| RUN apt-get clean && apt-get update | |
| RUN apt-get install -y wget git build-essential libpq-dev python-dev postgresql-server-dev-all | |
| # SCWS (Simple Chinese Word Segmentation library) | |
| RUN cd /tmp && wget -q -O - http://www.xunsearch.com/scws/down/scws-1.2.1.tar.bz2 | tar xjf - && cd scws-1.2.1 && ./configure && make install | |
| # zhpaser (postgres plugin) |
In most of deep learning projects, the training scripts always start with lines to load in data, which can easily take a handful minutes. Only after data ready can start testing my buggy code. It is so frustratingly often that I wait for ten minutes just to find I made a stupid typo, then I have to restart and wait for another ten minutes hoping no other typos are made.
In order to make my life easy, I devote lots of effort to reduce the overhead of I/O loading. Here I list some useful tricks I found and hope they also save you some time.
use Numpy Memmap to load array and say goodbye to HDF5.
I used to relay on HDF5 to read/write data, especially when loading only sub-part of all data. Yet that was before I realized how fast and charming Numpy Memmapfile is. In short, Memmapfile does not load in the whole array at open, and only later "lazily" load in the parts that are required for real operations.
Sometimes I may want to copy the full array to memory at once, as it makes later operations
| import crafttweaker.data.IData; | |
| import crafttweaker.item.IItemStack; | |
| val goldBlock=<minecraft:gold_block>; | |
| val sideItems = { | |
| efficiency: <minecraft:potion>.withTag({Potion: "minecraft:strong_swiftness"}), | |
| unbreaking: <minecraft:potion>.withTag({Potion: "minecraft:strong_strength"}) | |
| } as IItemStack[string]; |
| #0 __memset_avx2 () at ../sysdeps/x86_64/multiarch/memset-avx2.S:135 | |
| No locals. | |
| #1 0x00000000007cdd9b in DFInstanceLinux::read_raw (this=0x13797f0, addr=17974274650124877746, bytes=17179869184, buffer=0x7ffff6c593b0) at /build/src/dfinstancelinux.cpp:154 | |
| bytes_read = -1 | |
| __FUNCTION__ = "read_raw" | |
| #2 0x0000000000556629 in DFInstance::enum_vec<int> (this=0x13797f0, addr=140406800909548) at /build/src/dfinstance.h:110 | |
| bytes_read = 4 | |
| __FUNCTION__ = "enum_vec" | |
| out = {d = 0x7ffff6c59398} | |
| start = 17974274650124877746 |
| // Source: http://unix.stackexchange.com/a/251769/17594 | |
| // Modifications: long long, exit codes, diagnostics | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <limits.h> | |
| #include <sys/ptrace.h> | |
| #include <sys/socket.h> | |
| #include <arpa/inet.h> |
launchctl load ~/Library/LaunchAgents/com.sean.python.slactive.plist| [info] | |
| checksum=0xaf8cc86c | |
| version_name=v0.43.05 linux64 | |
| complete=true | |
| [addresses] | |
| cur_year_tick=0x01a77260 | |
| current_year=0x01a77280 | |
| dwarf_civ_index=0x01a70a08 | |
| dwarf_race_index=0x01a70a14 |
Another award-winning primer by williewillus
Capabilities...a wondrous new system. That you've probably been forced into using. But let's not talk about that and get straight into the learning!
| " https://github.com/junegunn/vim-plug | |
| """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
| let g:plug_window = 'botright new | resize 10' | |
| call plug#begin('~/.config/nvim/plugged') | |
| "Plug 'tpope/vim-fireplace', { 'for': 'clojure' } | |
| Plug 'tpope/vim-fugitive' | |
| Plug 'tpope/vim-rails' | |
| Plug 'tpope/vim-jdaddy' | |
| Plug 'tpope/vim-repeat' |