Skip to content

Instantly share code, notes, and snippets.

Avatar

xhu MrHuxu

View GitHub Profile
@MrHuxu
MrHuxu / .wezterm.lua
Last active Apr 18, 2022
wezterm config
View .wezterm.lua
local wezterm = require 'wezterm';
return {
font = wezterm.font("Iosevka NF"),
color_scheme = "Ayu Mirage",
font_size = 19.0,
window_background_image = "/Users/xhu/Pictures/1380180928620.jpg",
window_background_image_hsb = {
brightness = 0.018,
hue = 1.0,
@MrHuxu
MrHuxu / .tmux.conf
Last active Apr 18, 2022
tmux configs
View .tmux.conf
# Enable true color
set -g default-terminal 'tmux-256color'
set-option -ga terminal-overrides ',xterm-256color:Tc'
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
@MrHuxu
MrHuxu / dependencies
Last active Apr 24, 2022
nvim configs
View dependencies
neovim
ripgrep
gopls
rust-analyzer
lua-language-server
@MrHuxu
MrHuxu / Makefile
Last active Aug 13, 2021
Makefile font bold & colored
View Makefile
FONT_RED := $(shell tput setaf 1)
FONT_GREEN := $(shell tput setaf 2)
FONT_YELLOW := $(shell tput setaf 3)
FONT_BLUE := $(shell tput setaf 4)
FONT_PURPLE := $(shell tput setaf 5)
FONT_CYAN := $(shell tput setaf 6)
FONT_GRAY := $(shell tput setaf 7)
FONT_BLACK := $(shell tput setaf 8)
FONT_BOLD := $(shell tput bold)
FONT_RESET := $(shell tput sgr0)
@MrHuxu
MrHuxu / style.css
Created May 28, 2021
no zhihu for stylish
View style.css
header, .GlobalSideBar.GlobalSideBar--old, .TopstoryTabs.Topstory-tabs, .Card>img, .CommentsV2-footer, .ColumnPageHeader, .Recommendations-Main, .ContentItem-actions .Popover, .Button.ContentItem-action.Button--withIcon, .VoteButton--up>span>svg, .VoteButton--down, .AuthorInfo-avatar, .Voters>button {
display:none;
}
.Topstory-container {
display: block;
width: 100%;
padding: 0 150px;
}
.Topstory-mainColumn {
background-color: #555;
@MrHuxu
MrHuxu / gvm.fish
Last active May 27, 2021
use gvm in fisher shell
View gvm.fish
# install https://github.com/edc/bass using fisher/omf
# place this file in .config/fish/functions
function gvm
bass source ~/.gvm/scripts/gvm ';' gvm $argv
end
@MrHuxu
MrHuxu / Dockerfile
Last active Feb 23, 2021
gfriends-inputer
View Dockerfile
FROM ubuntu:21.04
RUN apt-get update \
&& apt-get install -y wget unzip expect locales ca-certificates
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \
locale-gen
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
@MrHuxu
MrHuxu / [vps] Caddyfile docker-compose
Last active Apr 30, 2021
[vps] Caddyfile docker-compose
View [vps] Caddyfile docker-compose
clone this project to /root/work
View [Nas] caddyConfiguration
volumes
docker/caddy/index.html:/etc/caddy/index/index.html
docker/caddy/caddyfile:/etc/caddy/Caddyfile
port
8008:80
@MrHuxu
MrHuxu / [nas] nginxConfigurations
Last active Apr 28, 2020
[nas] nginxConfigurations
View [nas] nginxConfigurations
volumes
docker/nginx/index.html:/usr/share/nginx/html/index.html
docker/nginx:/etc/nginx/conf.d
port
8008:80