Skip to content

Instantly share code, notes, and snippets.

@ay65535
ay65535 / install_jman.sh
Last active January 10, 2024 11:45
日本語manページをインストールするスクリプト (Mac用,というか自分用)
#!/usr/bin/env bash
# 参考サイト: http://tukaikta.blog135.fc2.com/blog-entry-224.html
# ================各種設定================
# ダウンロードするファイル (GNU 日本語man)
#
# http://linuxjm.sourceforge.jp/ からダウンロードするファイルを指定します。
#export GNUJMAN=man-pages-ja-20120915.tar.gz
#export GNUJMAN=man-pages-ja-20150315.tar.gz
@ay65535
ay65535 / .vimrc
Created March 30, 2015 12:57
my .vimrc (for Ubuntu server)
" 参考: http://www.server-world.info/query?os=Ubuntu_14.04&p=initial_conf&f=6
" vim の独自拡張機能を使う(viとの互換性をとらない)
set nocompatible
" 文字コードを指定する
set encoding=euc-jp
" ファイルエンコードを指定する
set fileencodings=iso-2022-jp,sjis
@ay65535
ay65535 / peco-select-history
Created April 3, 2015 17:51
peco-select-history 複数行のコマンドにも対応版
function peco-select-history() {
local buffer
local sep='¶'
buffer=$(
history -nr $'\n'=$sep 1 | \
peco --layout=bottom-up --query "$LBUFFER" | \
sed s/$sep/\\$'\n'/g)
if [[ ! -z buffer ]]; then
BUFFER=$buffer
fi
@ay65535
ay65535 / build-zsh.sh
Last active August 29, 2015 14:19 — forked from nicoulaj/build-zsh.sh
#!/bin/sh
# Build Zsh from sources on Ubuntu.
# From http://zsh.sourceforge.net/Arc/git.html and sources INSTALL file.
PREFIX=/home/2012/ats/local
MANDIR=/home/2012/ats/local/share/man
BINDIR=/home/2012/ats/local/bin
INFODIR=/home/2012/ats/local/share/info
# Some packages may be missing
# Homebrew dependencies
HEAD=''
DEVEL=''
# ==> Installing dependencies for gptfdisk: popt, icu4c
brew install gptfdisk
brew install caskroom/cask/brew-cask $HEAD
brew cask install google-chrome
/Modules/
@ay65535
ay65535 / after_cleaninstall.md
Last active May 31, 2024 22:46
useful commands that can be used after clean installation of Windows 10
# Change network profile
$privNwIfIdx = Get-NetConnectionProfile | Where-Object -Property Name -like 'eoRT*' | Select-Object -ExpandProperty 'InterfaceIndex'
Set-NetConnectionProfile -InterfaceIndex $privNwIfIdx -NetworkCategory Private
start ms-settings:about
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit\Favorites]
"Favorites"="コンピューター\\HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Applets\\Regedit\\Favorites"
"Explorer"="コンピューター\\HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer"
"Console"="コンピューター\\HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Console"
"NET Framework Setup"="コンピューター\\HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\NET Framework Setup"
@ay65535
ay65535 / Vagrantfile
Created September 8, 2018 10:28 — forked from tmatilai/Vagrantfile
My global Vagrant configuration (~/.vagrant.d/Vagrantfile)
# URI of the local (caching) HTTP proxy
LOCAL_HTTP_PROXY = 'http://192.168.33.200:8123'
# Configures vagrant-cachier and vagrant-proxyconf.
# Should be called only on "local machine" providers.
def configure_caching(config)
if Vagrant.has_plugin?('vagrant-cachier')
config.cache.enable_nfs = true
config.cache.enable :gem
config.cache.enable :npm
@ay65535
ay65535 / nord_edited.json
Created May 9, 2019 19:45
usage: concfg import .\nord_edited.json; reference: http://github.mindzgroup.com/concfg/
{
"black": "#2E3440",
"dark_blue": "#3B4252",
"dark_green": "#434C5E",
"dark_cyan": "#A3BE8C",
"dark_red": "#D8DEE9",
"dark_magenta": "#E5E9F0",
"dark_yellow": "#ECEFF4",
"gray": "#8FBCBB",
"dark_gray": "#5E81AC",