Skip to content

Instantly share code, notes, and snippets.

View B83C's full-sized avatar
🤔
Seeking the truth

Law Heng Yi B83C

🤔
Seeking the truth
View GitHub Profile

微信中文解决办法

在微信无法显示中文的情况,可以通过增加字体和设 Lang variable 的方式来解决。

具体看:https://askubuntu.com/questions/1019530/chinese-fonts-are-not-visible-in-programs-installed-in-wine

如果可以显示中文,但是输入框无法显示正在输入的文字或内容,则需要添加 dll 文件来解决。

具体看:https://zhuanlan.zhihu.com/p/76331687
@abiosoft
abiosoft / README.md
Last active March 8, 2023 03:00
Systemd Arch Machine

Arch Dev Container Setup

Prerequisites

Linux distro using Systemd with systemd-container package installed.

Install arch boostrap

$ curl -LO https://raw.githubusercontent.com/tokland/arch-bootstrap/master/arch-bootstrap.sh
@chengen
chengen / aes-256-cbc.md
Last active April 29, 2024 22:16
Using AES-256-CBC with openssl and nodejs with or whiout salt

Ecrypt data using aes-256-cbc without salt

$ echo  'this is hello world'  | openssl  aes-256-cbc -a -nosalt -k hello
HEQ/s/mOMof648tJxJvvwtHUTcq2j021RbgvqLA02lY=
-a means encoding the output using base64
-nosalt force openssl do encryption without salt
-k the encryption key
@fffaraz
fffaraz / dns.c
Created May 29, 2016 05:58
DNS Query Code in C with linux sockets
//DNS Query Program on Linux
//Author : Silver Moon ([email protected])
//Dated : 29/4/2009
//Header Files
#include<stdio.h> //printf
#include<string.h> //strlen
#include<stdlib.h> //malloc
#include<sys/socket.h> //you know what this is for
#include<arpa/inet.h> //inet_addr , inet_ntoa , ntohs etc