Skip to content

Instantly share code, notes, and snippets.

resolv-file=/etc/dnsmasq-resolv.conf
server=8.8.8.8
server=8.8.4.4
conf-file=/etc/dnsmasq-conf.conf
# Configuration for resolvconf(8)
# See resolvconf.conf(5) for details
resolv_conf=/etc/resolv.conf
# If you run a local name server, you should uncomment the below line and
# configure your subscribers configuration files below.
name_servers=127.0.0.1
dnsmasq_conf=/etc/dnsmasq-conf.conf
dnsmasq_resolv=/etc/dnsmasq-resolv.conf
[Match]
Name=br0
[Network]
[Match]
Name=enp1s0
[Network]
Bridge=br0
[NetDev]
Name=br0
Kind=bridge
[Unit]
Description=Set %i interface in promiscuous mode
After=network.target
Before=systemd-networkd.service
[Service]
Type=oneshot
ExecStart=/bin/ip link set dev %i promisc on
RemainAfterExit=yes
[Unit]
Description=Lightweight DHCP client daemon on %I
Wants=network.target
Before=network.target
After=systemd-networkd.service
[Service]
PIDFile=/run/dhcpcd-%I.pid
ExecStart=/sbin/dhcpcd -A -q -t 0 %I
ExecStop=/sbin/dhcpcd -k %I
mozcのキー設定についての備忘録
設定ツールの起動
# /usr/lib64/mozc/mozc_tool --mode=config_dialog
私は英語キーボードを使うことが多く、
on/offのトグルは、「Ctrl + \」「Alt + `」に設定している。
キー設定の選択をデフォルト「MS-IME」から「ことえり」に変換。
その後に、編集ボタンを押して、以下の設定を追加。
# Gentooだと/usr/share/X11/xorg.conf.d/50-synaptics.confに該当箇所があるので、
# そこを以下のように変更。
#
# クリックボタンが独立していない最近のThinkpadでも、
# 快適に操作できるように設定してみた。以下の設定以外にも、
# キーボード入力中はタッチパッドが無効になるように、
# syndaemon -i 0.5 -t -K -R
# を実行している。私はgnomeの設定画面でチェックを入れているが、
# 他の場所で自分で実行しても問題ない。0.5秒のところを、
# 調整してみるといい。
@msnoigrs
msnoigrs / einstalled.sh
Created October 9, 2013 15:28
einstalled.sh
#!/bin/bash
emerge -pvuND $(cd /var/db/pkg/ && ls -d */* | sed -e 's/\(.*\)-\([0-9\.]\+\).*/\1/')