Skip to content

Instantly share code, notes, and snippets.

View eallion's full-sized avatar
🤡
I don't care about Stars.

Charles Chin eallion

🤡
I don't care about Stars.
View GitHub Profile
@eallion
eallion / docker-registry-mirrors.md
Created February 18, 2024 05:14 — forked from y0ngb1n/docker-registry-mirrors.md
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized

Docker Hub 镜像加速器

国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。

Dockerized 实践 https://github.com/y0ngb1n/dockerized

配置加速地址

Ubuntu 16.04+、Debian 8+、CentOS 7+

@eallion
eallion / falsehoods-programming-time-list.md
Created January 26, 2024 10:52 — forked from timvisee/falsehoods-programming-time-list.md
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).

User script to auto remove free games from your Steam account

ref: https://steamcommunity.com/sharedfiles/filedetails/?id=756281375

The Preface

I used this script[steamdb.info] to add all available games and DLC. The script was useful... It added some really interesting free games and DLC. But at the same time the script added a lot of uninteresting games/demos as well (more than 2500!)

https://twitter.com/geekbb/status/1737634536257995177

Prompt: 你是一位精通简体中文的专业翻译,尤其擅长将专业学术论文翻译成浅显易懂的科普文章。请你帮我将以下英文段落翻译成中文,风格与中文科普读物相似。 规则:

  • 翻译时要准确传达原文的事实和背景。
  • 即使上意译也要保留原始段落格式,以及保留术语,例如 FLAC,JPEG 等。保留公司缩写,例如 Microsoft, Amazon, OpenAI 等。
  • 人名不翻译
  • 同时要保留引用的论文,例如 [20] 这样的引用。
  • 对于 Figure 和 Table,翻译的同时保留原有格式,例如:“Figure 1: ”翻译为“图 1: ”,“Table 1: ”翻译为:“表 1: ”。
@eallion
eallion / keybase.md
Created November 11, 2023 07:36 — forked from webframp/keybase.md
Signing git commits on github using keybase.io gpg key

Probably one of the easiest things you'll ever do with gpg

Install Keybase: https://keybase.io/download and Ensure the keybase cli is in your PATH

First get the public key

keybase pgp export | gpg --import

Next get the private key

@eallion
eallion / Wikipedia_Nginx_reverse_proxy_config.md
Created October 27, 2023 09:16
Wikipedia_Nginx_reverse_proxy_config

Wikipedia_Nginx_reverse_proxy_config

server {
  server_name wiki.e5n.cc;
  listen 80;
  rewrite ^/(.*) https://$server_name/$1 permanent;
}

server {
@eallion
eallion / Mastodon 同步到 Memos 脚本.md
Last active March 8, 2024 20:24
Mastodon 同步到 Memos 脚本

Mastodon 同步到 Memos 脚本

利用 Mastodon 的 Webhook 可以主动同步 Status 到 Memos(或其他平台),而不是利用 RSS 或 Crontab 被动式同步。

已测试版本

安装工具:

Make sure nth-of-type(4) selects the 3rd item in the personal profile section

Matches version 4.2.0

.account__header__bio .account__header__fields dl:nth-of-type(4) a {
    color: #79bd9a !important;
}

.account__header__bio .account__header__fields dl:nth-of-type(4) a:before {
@eallion
eallion / get_my_public_ip.sh
Created May 11, 2023 14:24
get_my_public_ip.sh
#!/bin/bash
url_list=(
api.ipify.org
bot.whatismyipaddress.com
icanhazip.com
ifconfig.co
ident.me
ifconfig.me
icanhazip.com
ipecho.net/plain