Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

.foos for foos & more

NotificationsYou must be signed in to change notification settings

0mp/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FreeBSD

# dwmmkdir -p${HOME}/hgit clone http://github.com/0mp/dwm${HOME}/h/dwmmake -C${HOME}/h/dwm clean dwm install# makaronmkdir -p${HOME}git clone --recursive https://github.com/0mp/makaron${HOME}/h/makaronmake -C${HOME}/h/makaron install# goatmkdir -p${HOME}/hgit clone http://github.com/0mp/goat${HOME}/h/goatmake -C${HOME}/h/goat clean install

mDNS

pkg install avahi-app nss_mdnssysrc avahi_daemon_enable="YES"sysrc dbus_enable="YES"if! grep -q"hosts.*:.*mdns" /etc/nsswitch.conf;then    tmp="$(mktemp)"&& \    sed'/hosts/s/$/ mdns/' /etc/nsswitch.conf>"$tmp"&& \    cat"$tmp"> /etc/nsswitch.conf    rm"$tmp"fi

Finally, addmdns to thehosts line in/etc/nsswitch.conf.

Give less memory to ARC

sysctl vfs.zfs.arc_max=$(expr -- $(sysctl -n hw.physmem) / 2)

lagg(4) configuration

sysrc ifconfig_em0="up"sysrc wlans_iwm0="wlan0"sysrc ifconfig_wlan0="WPA powersave"sysrc create_args_wlan0="wlanaddr \$(ifconfig em0 ether | awk '/ether/{print \$2}') country de"sysrc cloned_interfaces="lagg0"sysrc ifconfig_lagg0="up laggproto failover laggport em0 laggport wlan0 DHCP"

Firefox

Microphone support: setmedia.cubeb.backend tooss in about:config. (https://forums.freebsd.org/threads/how-to-use-microphone-with-firefox.74292/#post-485968)

Git

Sample~/.gitconfig.local

[includeIf "gitdir:~/rust/"]    path = ~/.gitconfig-rust

Specifying how to reconcile divergent branches

git config pull.rebase false  # merge (the default strategy)git config pull.rebase true   # rebase                      git config pull.ff only       # fast-forward only

macOS

Bootstrapping chezmoi:

configuration_file="$HOME/.config/chezmoi/chezmoi.toml"source_dir="/Volumes/D/dotfiles"mkdir -p "$(dirname "$configuration_file")"echo "sourceDir = \"$source_dir\"" > "$configuration_file"chezmoi init 0mp

Store SSH/GPG passphrases in macOS Keychain

echo "UseKeychain yes" >> ~/.ssh/config

Always show file extensions in Finder

Finder has to restart for the setting to apply.

defaults write NSGlobalDomain AppleShowAllExtensions -bool truekillall Finder

[8]ページ先頭

©2009-2025 Movatter.jp