Skip to content

Instantly share code, notes, and snippets.

View arcayi's full-sized avatar

Walter Arca Yi arcayi

  • Shenzhen, China
View GitHub Profile
@arcayi
arcayi / 迁移_复制Linux.md
Last active November 3, 2024 09:26
将Linux完整的复制/迁移到新的硬盘上

迁移Linux

参考Migrate_installation_to_new_hardware

清理旧系统

按照源创建分区(新盘)

  • / 根分区:注意分区大小需要大于源分区内的内容
  • efi 启动分区:按源分区大小
  • swap 分区:按源分区大小

查看文件系统

@arcayi
arcayi / Archlinux安装使用企业微信.md
Last active November 9, 2024 02:40
Archlinux/Manjaro 安装使用企业微信

近期,腾讯开始对低版本企业微信进行强制校验限制低版本企业微信用户登录,所以我们再也不能使用wine运行低版本企业微信进行养老了,必须升级到4.x版本。而高版本的企业微信是无法通过wine直接安装运行的,所以我们需要考虑使用deepin-wine.

  1. 安装使用deepin-wine的企业版微信
yay -S com.qq.weixin.work.deepin-x11
  1. 上述步骤的主要目的是安装deepin-wine相关的依赖,你可能会在下载企业微信deb包的时候出现报错,原因是下载链接进行了变化,但是aur维护者没有及时更新,所以你需要进行下面的操作:

  2. 进入yay的aur路径,修改PKGBUILD和run.sh,调整pkgver变量和md5sums,修改内容如下:

@arcayi
arcayi / arch_enable_bbr.md
Last active July 11, 2024 01:39 — forked from epyonavenger/arch_enable_bbr.md
Arch Linux - Enable BBR

Enabling BBR On Arch Linux 6.5.5+

Become Root

sudo su

Set Up sysctl Config File

echo "net.core.default_qdisc=fq_codel" >> /etc/sysctl.d/bbr.conf
@arcayi
arcayi / unique-identifier.md
Last active February 24, 2024 07:07
Get unique identifier for Linux machine

unique ID

echo $(sudo cat /sys/class/dmi/id/product_uuid) $(sudo cat /sys/class/dmi/id/board_serial) | sha256sum | awk '{print $1}'
@arcayi
arcayi / fakeroot-tcp.sh
Created November 17, 2023 04:44 — forked from tytydraco/fakeroot-tcp.sh
Setup fakeroot-tcp without SystemV IPC support.
#!/bin/bash
cd /tmp
wget http://ftp.debian.org/debian/pool/main/f/fakeroot/fakeroot_1.24.orig.tar.gz
tar xvf fakeroot_1.24.orig.tar.gz
cd fakeroot-1.24/
./bootstrap
./configure --prefix=/opt/fakeroot \
--libdir=/opt/fakeroot/libs \
--disable-static \
@arcayi
arcayi / docker.md
Created November 16, 2023 14:03 — forked from FreddieOliveira/docker.md
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

@arcayi
arcayi / auto-increment-version.sh
Created February 19, 2023 14:13 — forked from CSTDev/auto-increment-version.sh
Script that will find the last Git Tag and increment it. It will only increment when the latest commit does not already have a tag. By default it increments the patch number, you can tell it to change the major or minor versions by adding #major or #minor to the commit message.
#!/bin/bash
#get highest tag number
VERSION=`git describe --abbrev=0 --tags`
#replace . with space so can split into an array
VERSION_BITS=(${VERSION//./ })
#get number parts and increase last one by 1
VNUM1=${VERSION_BITS[0]}
@arcayi
arcayi / action recognition datasets.md
Created September 1, 2022 10:53 — forked from jin-zhe/actionrecognitiondatasets.md
An overview of action recognition datasets and their detection classes

Activity Recognition Datasets

An overview of recent action recognition datasets and their detection classes

Concepts & terminologies:

  • Action: Atomic low-level movement such as standing up, sitting down, walking, talking etc.
  • Activity/event: Higher level occurence then actions such as dining, playing, dancing
  • Trimmed video: A short video clip containing event/action/activity of interest
  • Untrimmed video: A video clip of arbitrary length potentially containing durations without activities of interest
  • Localization: locating an instance of event/action/activity within a video at a spatial or temporal scale
  • Spatial localization: Locating the region/area of an instance of action/activity within a video