- C-a == Ctrl-a
- M-a == Alt-a
:q close
:w write/saves
:wa[!] write/save all windows [force]
:wq write/save and close
This is a simple, should-be-drop-in replacement for the old /System/Library/Printers/Libraries/quartzfilter
utility which went away circa OS X 10.8.
Usage:
chmod +x quartzfilter.js
./quartzfilter.js infile.pdf filter.qsfilter outfile.pdf
e.g.,
./quartzfilter.js my-big-pdf.pdf "/System/Library/Filters/Reduce File Size.qfilter" my-less-big-pdf.pdf
inurl:trainers.php?id= | |
inurl:buy.php?category= | |
inurl:article.php?ID= | |
inurl:play_old.php?id= | |
inurl:declaration_more.php?decl_id= | |
inurl:pageid= | |
inurl:games.php?id= | |
inurl:page.php?file= | |
inurl:newsDetail.php?id= | |
inurl:gallery.php?id= |
/* | |
* Author: 刘鹏 | |
* Description: 个人 VScode 配置文件 | |
* Create Date: 2020, Apr. 12 | |
* Update Date: 2021, Nov. 6 | |
* Email: littlenewton6@gmail.com | |
*/ | |
echo '.env' >> .gitignore | |
git rm -r --cached .env | |
git add .gitignore | |
git commit -m 'untracking .env' | |
git push origin master |
Commonly, npm modules are source controlled using a single dedicated repo for each module. When forking and patching such an existing npm module, typical approaches are either:
"dependencies": {
"patchedmodule": "git+https://github.com/myuser/patchedmodule.git#mypatch"
}
The trend of using monorepos makes a lot of things easier to manage. However, when you want to fork a single package inside a monorepo, you'll have to chose one of two options:
The good news: There's a solution for this! And it's actually built in to git.
One of the lesser-known (and vaguely documented) features of git is subtree
. It's intended for this purpose, working as a great alternative to the criticized submodules
.
There are very few resources about using this in practice, so here's a guide for this specific use case.
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<!-- Cargat React --> | |
<script crossorigin src="https://unpkg.com/react@16/umd/react.production.min.js"></script> | |
<script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.production.min.js"></script> | |
<script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script> |
import * as React from 'react'; | |
type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>; | |
/** | |
* Supplies default props. | |
*/ | |
export function withDefaults<T extends React.ComponentType<any>, U extends Partial<React.ComponentProps<T>>>( | |
Component: T, | |
defaults: U, |