Skip to content

Instantly share code, notes, and snippets.

View chaiyujin's full-sized avatar
🐼
Focusing

Yuki-Chai chaiyujin

🐼
Focusing
  • Zhejiang University
  • Hangzhou, Zhejiang, China
View GitHub Profile
@chaiyujin
chaiyujin / remote_subl.md
Created October 31, 2022 15:21 — forked from gwenzek/remote_subl.md
Sublime Text for remote development

This steps should help working remotely with Sublime Text. They are meant to be incremental, just setting up SFTP will go a long way.

My workflow

I have all my code on my laptop, edit locally and automatically push the files to my server. I never edit "tracked" files on the server directly. I sometimes modify untracked files on the server using rmate (see below).

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@chaiyujin
chaiyujin / build_ffmpeg_emscripten.sh
Last active July 11, 2023 15:00
FFmpeg Build Script
LIB_ROOT=$HOME/libs
CONFIG_ARGS=(
--target-os=none # use none to prevent any os specific configurations
--arch=x86_32 # use x86_32 to achieve minimal architectural optimization
--enable-cross-compile # enable cross compile
--disable-x86asm # disable x86 asm
--disable-inline-asm # disable inline asm
--disable-asm # disable asm
--disable-stripping # disable stripping
@chaiyujin
chaiyujin / ohmyzsh.md
Created June 28, 2021 15:57 — forked from yovko/ohmyzsh.md
ZSH (using Oh My ZSH) on Manjaro Linux

ZSH (using Oh My ZSH) on Manjaro Linux

0. If ZSH is not already installed on your Manjaro system you can do it with the command:

sudo pacman -Syu zsh

You do not need to install manjaro-zsh-config and all the other related packages like zsh-syntax-highlighting, zsh-history-substring-search, zsh-autosuggestions, etc., as we will use Oh My Zsh.

@chaiyujin
chaiyujin / FindFFmpeg.cmake
Last active July 1, 2021 04:38
FindFFmpeg.cmake
# ==================================================================================================================== #
# Prepare #
# - include dir: $HOME/ffmpeg_build/include #
# - library dir: $HOME/ffmpeg_build/lib #
# - binary dir: $HOME/ffmpeg_build/bin #
# ==================================================================================================================== #
# ==================================================================================================================== #
# Linux FFmpeg installation:
# ```
@chaiyujin
chaiyujin / ssh_issues.md
Created December 22, 2020 06:40
ssh connection issues
  1. Make sure the permission of file:
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys
@chaiyujin
chaiyujin / ubuntu_update_booting_kernel.md
Created December 8, 2020 12:42
Ubuntu: Install Kernel and Set GRUB Default Kernel

Ubuntu: Install Kernel and Set GRUB Default Kernel

Install Kernel

Install the default kernel:

sudo apt install linux-generic

Set GRUB Default Kernel

  1. Find entrance from /boot/grub/grub.cfg
    • Get the $menuentry_id_option:
@chaiyujin
chaiyujin / Install NVIDIA Driver and CUDA.md
Created June 3, 2018 01:52 — forked from zhanwenchen/Install NVIDIA Driver and CUDA.md
Install NVIDIA CUDA 9.0 on Ubuntu 16.04.4 LTS