Skip to content

Instantly share code, notes, and snippets.

View zengtianli's full-sized avatar
💭
I may be slow to respond.

tianli zengtianli

💭
I may be slow to respond.
  • Zhejiang University
  • Hangzhou
  • 13:31 (UTC +08:00)
View GitHub Profile
@emisjerry
emisjerry / templater-daily.txt
Last active April 17, 2024 01:48
Obsidian Templater格式的每日筆記模板(副檔名應為.md)
---
created: <% tp.date.now("YYYY-MM-DD HH:mm") %>
aliases: [<% tp.file.title %>]
weather: "<% tp.user.天氣_台北市() %>"
tags: [ daily ]
---
# <% tp.file.title %>
Modified:: <%+ tp.file.last_modified_date() %>
@pwolfram
pwolfram / Makefile
Created August 4, 2017 23:13
example of f2py using openmp (hello world)
all: build run
build:
gfortran omp_hello.f90 -fopenmp -lgomp
f2py -c -m omp_hello omp_hello.f90 --f90flags="-fopenmp" -lgomp
run:
@echo '********************'
@echo 'running pure fortran'
@echo '********************'
@squarism
squarism / iterm2.md
Last active May 6, 2024 22:59
An iTerm2 Cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)
@itsmattsoria
itsmattsoria / gistfil1.textile
Last active April 22, 2024 12:37
Mac Terminal Cheat Sheet

SHORTCUTS

Key/Command Description
Tab Auto-complete files and folder names
Ctrl + A Go to the beginning of the line you are currently typing on
Ctrl + E Go to the end of the line you are currently typing on
Ctrl + U Clear the line before the cursor
Ctrl + K Clear the line after the cursor
Ctrl + W Delete the word before the cursor
Ctrl + T Swap the last two characters before the cursor

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: