Skip to content

Instantly share code, notes, and snippets.

View LitileXueZha's full-sized avatar
💭
homing

诸葛林 LitileXueZha

💭
homing
View GitHub Profile
@LitileXueZha
LitileXueZha / BIOS重启.bat
Created October 25, 2023 16:23
Reboot to BIOS use command line.
::
:: Copyright @litilexuezha
::
@echo off
chcp 65001>nul
title 重启到BIOS
@LitileXueZha
LitileXueZha / urls.txt
Last active April 6, 2023 17:55
收集的一些有意思的鸡肋链接(持续更新)
https://github.com/JetBrains/swot/blob/master/lib/domains/stoplist.txt
https://www.gnu.org/software/bash/manual/html_node/Controlling-the-Prompt.html
@LitileXueZha
LitileXueZha / vultr-gift-codes.txt
Last active April 17, 2024 11:51
Vultr.com Promo Codes, Coupons, Gift Codes, & Special Offers.
GOVULTR
VULTRMATCH https://www.vultr.com/match/
30FREE50V https://www.vultr.com/promo/try50/
100VULTR30FREE https://www.vultr.com/promo/try100/
30VULTRONEFIFTY https://www.vultr.com/promo/try150/
VULTR200FREE https://www.vultr.com/promo/try200/
FLYVULTR250 https://www.vultr.com/promo/try250/
GIVE100GET35
GIVE100GET25 invalid
@LitileXueZha
LitileXueZha / rollup-plugin-node-resolve-circular-dependencies-with-typescript.md
Created August 5, 2022 12:24
rollup-plugin-node-resolve-circular-dependencies-with-typescript

Fix rollup Circular dependencies

Errors:

(!) Circular dependencies
node_modules/highlight.js/lib/languages/1c.js.js -> node_modules/highlight.js/lib/languages/1c.js.js
...
@LitileXueZha
LitileXueZha / debug-react-source-code.md
Last active July 10, 2022 02:23
Debug react source code on yourself custom builds with source map.

Debug react source code on yourself custom builds with source map. First of all, read offical guide How to Contribute and be familiar with it's build flow.

Clone the repository, use specified branch or tag, eg: v16.8.0:

$ git clone --depth 1 --branch v16.8.0 [repo url]
$ cd ./react
$ yarn
...
AssertionError [ERR_ASSERTION]: Current node version is not supported for development
@LitileXueZha
LitileXueZha / debug-es6-vscode.md
Last active December 31, 2020 12:52
Debug es6 code with VSCode. Finally worked!

Steps:

  1. install npm packages
  2. modify configuration file

Step 1

Node.js support es syntax more and more, but not all. So we need babel to transform some es6 code in order to debug with vscode, otherwise you will see SyntaxError: Unexpected token 'export'...

@LitileXueZha
LitileXueZha / ie11-support-for-almost-useful-library.md
Last active May 17, 2021 13:38
IE11 support for almost useful library.

Highlight.js

After version 10, highlight.js no longer support IE11. See this doc.

Use debug mode to find out features which don't be supported: hljs.debugMode().
Use polyfill core-js to fix IE11.

// v10.4.0
import 'core-js/features/symbol';
@LitileXueZha
LitileXueZha / v2ray.sh
Last active May 24, 2021 06:20
v2ray一键安装脚本
#!/bin/bash
# 优先使用官网安装
# 链接:https://v2ray.com/chapter_00/install.html
#
# 不过已经挂了 -- 2020.09.03
if bash <(curl -L -s https://install.direct/go.sh); then
exit 0
fi
@LitileXueZha
LitileXueZha / Flex Box.html
Created April 16, 2017 09:36
好玩的东西
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Flex Box布局</title>
<link rel="stylesheet" href="my/奥森字体4.2.0/css/font-awesome.min.css">
<script src="my/js/jquery-3.1.0.js"></script>
<style>
*{
@LitileXueZha
LitileXueZha / test.txt
Created April 14, 2017 09:20
Hello World
i'm testing react ajax,and get some infomation from github