Skip to content

Instantly share code, notes, and snippets.

View bxb100's full-sized avatar
😭
R.I.P, My friends

Lemon bxb100

😭
R.I.P, My friends
View GitHub Profile

P1: jextract

Using

    Hardware Overview:

      Model Name: MacBook Pro
      Model Identifier: MacBookPro17,1
 Chip: Apple M1
@bxb100
bxb100 / README.md
Last active April 14, 2023 08:03
Display time elapse in your terminal

Initiate

Laurence build a tiny project to show washing time remaining elapse in the terminal[^1], that idea is very fun. and I was very curious about all code behind of this

Using ChatGPT to explain

#! /bin/sh
set -e
@bxb100
bxb100 / gist:3477f298a3496efb5c8054ca7b03e531
Created April 23, 2023 14:55 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@bxb100
bxb100 / private_fork.md
Created April 24, 2023 16:50 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

@bxb100
bxb100 / ExplorerFileNestingTrie.ts
Last active May 27, 2023 02:12
This copy from VSCode
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
type FilenameAttributes = {
// index.test in index.test.json
basename: string;
// json in index.test.json
extname: string;

复制以下代码放到控制台即可

  • 去除 tracker 中 id 的部分
const cUrl = window.location.href;
const tracker = 'www.pttime.org';

const doEdit = async function (t) {
 if (!t.tracker.includes(tracker)) {
@bxb100
bxb100 / ca.md
Created June 24, 2023 13:16 — forked from soarez/ca.md
How to setup your own CA with OpenSSL

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.