Skip to content

Instantly share code, notes, and snippets.

View yakirChen's full-sized avatar
🎯
⁄(⁄⁄•⁄ω⁄•⁄⁄)⁄

yakirChen yakirChen

🎯
⁄(⁄⁄•⁄ω⁄•⁄⁄)⁄
View GitHub Profile
@yakirChen
yakirChen / manifest-v2.md
Created August 5, 2025 06:03 — forked from ishad0w/manifest-v2.md
macOS how to Enable Manifest V2 extensions for another year (until June 2025)

Arc

defaults write company.thebrowser.Browser.plist ExtensionManifestV2Availability -int 2

Chrome

defaults write com.google.Chrome.plist ExtensionManifestV2Availability -int 2

Chrome Beta

@yakirChen
yakirChen / git_ssh_proxy.md
Created January 17, 2024 07:29 — forked from chenshengzhi/git_ssh_proxy.md
git ssh 代理设置

仅为 GitHub 设置代理

git 代理

设置 git config --global http.https://github.com.proxy socks5://127.0.0.1:1086
设置完成后, ~/.gitconfig 文件中会增加以下条目:

[http "https://github.com"]
    proxy = socks5://127.0.0.1:1086
./configure \
--with-features=huge \
--enable-multibyte \
--with-tlib=ncurses \
--enable-rubyinterp=yes \
--enable-python3interp=yes \
--enable-perlinterp=yes \
--enable-luainterp=yes \
--enable-cscope \
--enable-gui=no \
@yakirChen
yakirChen / mdutil.man
Created November 8, 2018 02:28
macOS Spotlight Command Line Opt
mdutil --help
mdutil: unrecognized option `--help'
Usage: mdutil -pEsa -i (on|off) -d volume ...
mdutil -t {volume-path | deviceid} fileid
Utility to manage Spotlight indexes.
-p Publish metadata.
-i (on|off) Turn indexing on or off.
-d Disable Spotlight activity for volume (re-enable using -i on).
-E Erase and rebuild index.
-s Print indexing status.
import java.util.Arrays;
import java.util.Base64;
import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
import java.util.stream.Collectors;
/**
* SSR
*
@yakirChen
yakirChen / FilesToString.java
Last active July 25, 2018 03:57
Files lines
// 1.
StringBuilder sb = new StringBuilder();
Files.newBufferedReader(Paths.get(Objects.requireNonNull(TestFooJsonTree.class
.getClassLoader()
.getResource("one.json"))
.toURI()))
.lines()
.forEach(sb::append);
// 2.
@yakirChen
yakirChen / localdate_minus_format_to_string.java
Created July 5, 2018 04:07
localdate minus format to string
import java.time.LocalDate;
import java.time.ZoneId;
import java.time.format.DateTimeFormatter;
import java.time.temporal.ChronoUnit;
String nowStr= LocalDate.now(ZoneId.of("Asia/Shanghai"))
.minus(3, ChronoUnit.DAYS)
.format(DateTimeFormatter.ofPattern("yyyy-MM-dd"));
@yakirChen
yakirChen / rustup 安装对话框
Last active April 23, 2018 04:38
rustup 安装对话框
% curl https://sh.rustup.rs -sSf | sh
info: downloading installer
Welcome to Rust!
This will download and install the official compiler for the Rust programming
language, and its package manager, Cargo.
It will add the cargo, rustc, rustup and other commands to Cargo's bin
directory, located at: