Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Localhost configs #11

Open
ysl2 opened this issue Sep 18, 2023 · 7 comments
Open

Localhost configs #11

ysl2 opened this issue Sep 18, 2023 · 7 comments

Comments

@ysl2
Copy link
Owner

ysl2 commented Sep 18, 2023

No description provided.

@ysl2
Copy link
Owner Author

ysl2 commented Sep 18, 2023

/home/yusongli/.dosbox/dosbox.localhost.conf

[autoexec]
mount c /home/yusongli/Documents/asm/dependencies/MASM
c:

@ysl2
Copy link
Owner Author

ysl2 commented Sep 18, 2023

/home/yusongli/.config/alacritty/alacritty.localhost.yml

font:
  size: 13.0
window:
  opacity: 1.0

@ysl2 ysl2 changed the title localhost localhost configs Sep 18, 2023
@ysl2
Copy link
Owner Author

ysl2 commented Sep 18, 2023

/home/yusongli/.bashrc.localhost.pre

#!/bin/bash
MYCONDA=/home/yusongli/.vocal/miniconda3
MYTMUX=/usr/bin/tmux

/home/yusongli/.bashrc.localhost.post

#!/bin/bash

export GOPROXY=https://goproxy.cn

alias 201="ssh [email protected] -p 23331 -i ~/.ssh/yusongli_201"
alias i53="ssh [email protected] -p 2444"

function cd {
    builtin cd "$@"
    command -v conda &> /dev/null && conda_env
}

function conda_env {
    [[ $PWD/ == $HOME/Documents/baiduseg/* ]] && conda activate baiduseg
    [[ $PWD/ == $HOME/Documents/yunet/* ]] && conda activate yunet
    [[ $PWD/ == $HOME/Documents/fastvit/* ]] && conda activate fastvit
    [[ $PWD/ == $HOME/Documents/wangzhiping/* ]] && conda activate wangzhiping
}

@ysl2
Copy link
Owner Author

ysl2 commented Sep 18, 2023

~/.ssh/config.localhost

Host hd202
    HostName abc.cn
    User yusongli
    Port 23332
    Identityfile ~/.ssh/yusongli_202

Host i53
    HostName 219.231.164.69
    User yusongli
    Port 2444

@ysl2
Copy link
Owner Author

ysl2 commented Nov 21, 2023

~/.scripts/wm/autostart.localhost.sh

#!/bin/sh

# Small and big:
# xrandr --output eDP-1 --mode 1920x1080 --pos 320x1440 --rotate normal --output HDMI-1 --primary --mode 2560x1440 --pos 0x0 --rotate normal --output DP-1 --off --output HDMI-2 --off
# Small and middle:
xrandr --output eDP-1 --mode 1920x1080 --pos 0x1024 --rotate normal --output HDMI-1 --off --output DP-1 --primary --mode 1280x1024 --pos 320x0 --rotate normal --output HDMI-2 --off
# Small and TV:
# xrandr --output eDP-1 --mode 1920x1080 --pos 0x768 --rotate normal --output HDMI-1 --primary --mode 1360x768 --pos 280x0 --rotate normal --output DP-1 --off --output HDMI-2 --off
# feh --bg-fill ~/Pictures/wallpapers/2560x1440.svg
feh --bg-fill ~/Pictures/garden.jpeg
# swaybg -i ~/Pictures/wall.png -m fill
fcitx5 &
udiskie --no-automount --no-notify --tray &
cfw &

@ysl2 ysl2 pinned this issue Nov 21, 2023
@ysl2 ysl2 changed the title localhost configs Localhost configs Nov 21, 2023
@ysl2
Copy link
Owner Author

ysl2 commented Aug 10, 2024

vim hot setting

set nu rnu sb spr et ts=4 sw=4

vim hot settings for single file

# vim: set et ts=4 sw=4:

@ysl2
Copy link
Owner Author

ysl2 commented Jan 3, 2025

~/.gitconfig.localhost

[user]
    name = your_name
    email = your_email
[merge]
 	conflictstyle = zdiff3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant