perl -ne 'print $_ x 3' file
# or
!awk '{for (i = 1; i <= 3; i++) print $0}' file
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
title:: 【Reading Highlights】{{title}} | |
source:: {{url}} | |
summary:: {{note}} | |
tags:: [[简悦]] {{tags}} [[reading_highlights]] | |
date:: {{date_format|now|yyyyMMdd}} | |
{{#each}} | |
- > {{an_html}} {{an_tags}} ([🌐 摘要链接]({{an_org_uri}})) | |
{{ - 📝|an_note}} |
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
> [!md] **Metadata** | |
> **原文**:: [{{title}}]({{url}}) | |
> **日期**:: {{create}} | |
> **标签**:: #simpread {{tags}} | |
> **反向链接**:: {{backlinks}} | |
> [!summary] **描述** | |
> {{desc}} | |
> [!note] **摘要** |
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
<% | |
let colors = [ '#B4D9FB', '#ffeb3b', '#a2e9f2', '#a1e0ff', '#a8ea68', '#ffb7da' ], | |
color = colors[ annote.color ]; | |
-%> | |
> [!<%= (annote.note? "note":"abstract")%>]+ <mark style="background-color: <%= color %>">Highlight</mark> [🧷](<{{an_int_uri}}>)[🌐](<{{an_ext_uri}}>) {{an_tags}} | |
{{{html_format|>|{{an_html}}}}} | |
<% if (annote.note) { -%> | |
{{> - 📝|an_note}} | |
<% } -%> | |
^sran-{{an_id}} |
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
sudo apt-get update | |
sudo apt-get install ttf-mscorefonts-installer | |
sudo fc-cache -f -v |
Suppose we have already installed Nvidia GPU driver which should be equal to or newer than the required.
- Download cuda runfile (installer type: runfile (local)) from https://developer.nvidia.com/cuda-downloads
- For example: https://developer.nvidia.com/compute/cuda/10.1/Prod/local_installers/cuda_10.1.105_**418.39**_linux.run
- Make sure the GPU driver is equal to or newer than 418.39
- Extract what we want:
toolkit
following the interactive prompt orsudo sh cuda-10.1.run --silent --toolkit --toolkitpath=/usr/local/cuda-10.1
- To maintain a cudatoolkit with different versions of cudnn, we can name the dicrectory
cuda-10.1_cudnn-v7.5
- To maintain a cudatoolkit with different versions of cudnn, we can name the dicrectory
- Check the installation status
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
import logging | |
import os | |
import re | |
import sys | |
from urllib import urlretrieve | |
from urlparse import urljoin | |
import fire | |
import requests |
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
# | |
# A simple Toolkit for my daily requirement. | |
# | |
__author__ = "Engine" | |
__date__ = "2017-04-03" | |
import os |
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
# | |
# Simple Image Converter for some simple usage. | |
# | |
__author__ = "Engine" | |
__date__ = "2017-04-01" | |
import string |
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 | |
# | |
# type cmd `xinput`, it shows my device X input information as follow | |
# | |
# ➜ ~ xinput | |
# ⎡ Virtual core pointer id=2 [master pointer (3)] | |
# ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] | |
# ⎜ ↳ ETPS/2 Elantech Touchpad id=14 [slave pointer (2)] | |
# ⎣ Virtual core keyboard id=3 [master keyboard (2)] | |
# ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] |