Skip to content

Instantly share code, notes, and snippets.

View aucker's full-sized avatar
🎯
Focusing

Aucker aucker

🎯
Focusing
View GitHub Profile
@aucker
aucker / Git_Behind_Proxy.md
Last active November 24, 2023 13:26 — forked from ozbillwang/Git_Behind_Proxy.md
Configure Git to use a proxy (https or SSH+GIT)
@aucker
aucker / effective_modern_cmake.md
Created October 24, 2023 00:23 — forked from mbinna/effective_modern_cmake.md
Effective Modern CMake

Effective Modern CMake

Getting Started

For a brief user-level introduction to CMake, watch C++ Weekly, Episode 78, Intro to CMake by Jason Turner. LLVM’s CMake Primer provides a good high-level introduction to the CMake syntax. Go read it now.

After that, watch Mathieu Ropert’s CppCon 2017 talk Using Modern CMake Patterns to Enforce a Good Modular Design (slides). It provides a thorough explanation of what modern CMake is and why it is so much better than “old school” CMake. The modular design ideas in this talk are based on the book [Large-Scale C++ Software Design](https://www.amazon.de/Large-Scale-Soft

@aucker
aucker / README.md
Created October 20, 2023 19:36 — forked from paolocarrasco/README.md
How to understand the `gpg failed to sign the data` problem in git

Problem

You have installed GPG, then tried to commit and suddenly you see this error message after it:

error: gpg failed to sign the data
fatal: failed to write commit object

Debug

@aucker
aucker / nlp-resource.md
Last active April 17, 2023 13:09
Some resources about NLP I find, papers, GitHub repos, etc.

NLP resources🤓

Knowledge Graph

  1. Agriculture Knowledge Graph 这个框架在非常多的研究生学位论文中出现,总体框架已经搭好,需要修改其中的知识图谱源数据,然后更新一下相应的页面,一个看似很有工作量的论文就出来了,尤其是在构建章节。这个仓库里的东西很丰富,在构建的时候主要可以参考这个。 图片示例
  2. Knowledge graph builder and consultant 又一个问答相关的知识图谱,通过使用LTP工具进行分词、语义、三元组抽取等操作。主要利用爬虫相关技术获取数据,之后再将数据装入Neo4j中进行可视化。最终问答界面示例如下:示例.

Models

  1. ALBERT
@aucker
aucker / beginners_ubuntu.md
Created March 15, 2023 07:33 — forked from bkanhu/beginners_ubuntu.md
A Beginners Guide on Things To Do After Installing Ubuntu.

Beginners Ubuntu

A Beginners Guide To Things To Do After Installing Ubuntu.

1. Check For Updates

sudo apt update && sudo apt upgrade

2. Enable additional repositories for more software

Ubuntu has several repositories from where it provides software for your system. Enabling all these repositories will give you access to more software and proprietary drivers.

I have a tex template, so I need to install latex on wsl ubuntu.

  1. install the texlive-latex-extra and texlive
sudo apt install texlive-latex-extra texlive
  1. ctexbook.cls not found, install texlive-lang-chinese
sudo apt install texlive-lang-chinese
@aucker
aucker / unhex.md
Created September 3, 2022 06:30
impl the `unhex` function in OpenMLDB

I want to add the new built-in function in OpenMLDB, called unhex. The unhex has the following action just like Spark SQL and MySQL.

Spark SQL:

spark-sql> select unhex(hex('Spark SQL'));
Spark SQL
Time taken: 2.163 seconds, Fetched 1 row(s)
spark-sql> select unhex(hex(14));

Time taken: 0.065 seconds, Fetched 1 row(s)
@aucker
aucker / README.md
Created August 30, 2022 05:45 — forked from djfdyuruiry/README.md
WSL 2 - Enabling systemd

Enable systemd in WSL 2

This guide will enable systemd to run as normal under WSL 2. This will enable services like microk8s, docker and many more to just work during a WSL session. Note: this was tested on Windows 10 Build 2004, running Ubuntu 20.04 LTS in WSL 2.

  • To enable systemd under WSL we require a tool called systemd-genie

  • Copy the contents of install-sg.sh to a new file /tmp/install-sg.sh:

    cd /tmp
@aucker
aucker / Compile-benchmark.md
Last active August 10, 2024 18:56
use different cpu to build the Firefox and Chromium

Compiling firefox using the different cpu, perhaps I will add the m1 pro and m1 max benchmark.

AMD Ryzen 7 6800H

ThinkBook 14 G4+ ARA

envs: Windows 11 pro, WSL2, Ubuntu20.04

24:35.31 (suppressed 9 warnings in gfx/cairo)
24:35.31 (suppressed 1 warnings in gfx/graphite2)
24:35.31 (suppressed 23 warnings in gfx/skia)
24:35.31 (suppressed 4 warnings in intl/icu)
@aucker
aucker / curl & wget.md
Created August 26, 2022 01:34
The curl and wget tools

Curl & Wget(●'◡'●)

Curl

Usually, I can curl through the link to get some info.

~ curl www.google.com
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>302 Moved</TITLE></HEAD><BODY>
<H1>302 Moved</H1>