Skip to content

Instantly share code, notes, and snippets.

{
"debug" : true,
"experimental" : true,
"features": {"buildkit": true}
}
# vim: set fileencoding=utf-8 ff=unix expandtab ts=4 sw=4 ft=powershell :
function SetPacmanMirror {
### https://qiita.com/yumetodo/items/94a80ca9d6171e9352a2#%E7%B5%90%E8%AB%96
$PacmanDir = 'C:\tools\ruby25\msys64\etc\pacman.d'
$Collection = @('mirrorlist.mingw32', 'mirrorlist.mingw64', 'mirrorlist.msys')
foreach ($Item in $Collection) {
$Src = Join-Path $PacmanDir $Item
if (Test-Path "$Src") {
#$Src = Get-ChildItem "${Src}*".ToString()
$Dst = "${Src}.orig"
[CmdletBinding()]
param (
[int] $TagSize = 30,
[int] $NumOfTags = 32
)
$ErrorActionPreference = 'Stop'
Set-StrictMode -Version Latest
Write-Verbose "`$PSBoundParameters['Debug']: $($PSBoundParameters['Debug'])"
Write-Verbose "`$DebugPreference: $DebugPreference"
@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",
@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
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 / 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
/Modules/
# 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
@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