This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Match] | |
Name = enp0s8 | |
[Network] | |
Address = 192.168.56.10/24 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
# File systems | |
sgdisk --new 1::+1m --typecode 1:ef02 --new 2 /dev/sda | |
mkfs.ext4 /dev/sda2 | |
mount /dev/sda2 /mnt | |
# Select a mirror | |
cp /etc/pacman.d/mirrorlist /tmp/mirrorlist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\Default%20Settings] | |
"Present"=dword:00000001 | |
"HostName"="" | |
"LogFileName"="putty.log" | |
"LogType"=dword:00000000 | |
"LogFileClash"=dword:ffffffff | |
"LogFlush"=dword:00000001 | |
"SSHLogOmitPasswords"=dword:00000001 | |
"SSHLogOmitData"=dword:00000000 | |
"Protocol"="ssh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function OpenWorkbook() As Boolean | |
Dim fileName As Variant | |
OpenWorkbook = True | |
fileName = Application.GetOpenFilename("Excelブック,*.xls?") | |
If fileName = False Then 'ファイル選択キャンセル | |
OpenWorkbook = False | |
Exit Function | |
End If |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\KeyBoard Layout] | |
"Scancode Map"=hex:00,00,00,00,00,00,00,00,\ | |
05,00,00,00,\ | |
1d,00,3a,00,\ | |
1d,00,7b,00,\ | |
1d,00,79,00,\ | |
38,00,70,00,\ | |
00,00,00,00 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
require "rake/clean" | |
DICS = ["L", "okinawa", "jinmei", "propernoun"] | |
CLEAN.include(FileList["SKK-JISYO.*"]) | |
task :default => "SKK-JISYO.XL.cdb" | |
desc "全部入り辞書の cdb 形式を作成" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# さくらVPSで使っている iptables の設定 | |
sshport=$(grep ^Port /etc/ssh/sshd_config | cut -d' ' -f2) | |
iptables=/sbin/iptables | |
$iptables -F | |
$iptables -X | |
$iptables -P INPUT DROP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Dropbox CLI スクリプトをダウンロードして LAN sync を無効にする | |
# Dropbox CLI スクリプトをダウンロード | |
wget -O dropbox.py "https://www.dropbox.com/download?dl=packages/dropbox.py" | |
chmod +x dropbox.py | |
# LAN sync を無効にする | |
echo disable lansync | |
./dropbox.py running && ./dropbox.py start # dropbox が動いていないなら起動する |