- 近藤うちお
- 著書に、以下があります
- やわらかHubot https://gist.github.com/udzura/0cb2447c305c51670414
This file contains hidden or 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 today() { | |
var b = new Date(); | |
var d = b.getFullYear(); | |
var e = b.getMonth() + 1; | |
var c = b.getDay(); | |
var a = b.getDate(); | |
return d + "/" + e + "/" + a | |
} | |
function addDate(h, f, i) { | |
var g = new Date(h); |
どうも、国見小道です。今回は、Fediverseに参加するためのさまざまなソフトの1つ、「microblog.pub」を建てて数日運用してみて得られた知識と感想について書いていきます。
microblog.pubというActivityPub実装のOSSがあります。これはMastodonやPleromaやMisskeyと同じカテゴリに属する、マイクロブログ型の分散SNSです。microblog.pubは「おひとりさま」を徹底追求したもので、なんとログインページにはパスワードの入力欄しかありません。
無事productionのbuildが成功した後にこのことを確認して、ド肝を抜かれました。
This file contains hidden or 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
# | |
# ghq-fzf.zsh | |
# | |
# ABOUT: | |
# `cd` to `ghq` repositories directory on `zsh` | |
# You can launch this function with `Ctrl-g` | |
# | |
# INSTALLATION: | |
# Requires `zsh` and `fzf` | |
# Download this file then, append `source path/to/fzf-ghq.zsh` to your `~/.zshrc` |
This file contains hidden or 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
Set-PSReadlineOption -EditMode Emacs | |
Set-PSReadlineOption -BellStyle None | |
Set-PSReadlineOption -PredictionSource History | |
Get-Alias | Where-Object {$_.Name -match "[a-z]+"} | Remove-Alias -Force | |
Set-Alias mv Move-Item | |
Set-Alias cp Copy-Item | |
Set-Alias kill Stop-Process | |
Set-Alias ps Get-Process | |
Set-Alias rm Remove-Item |
This file contains hidden or 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
<# | |
.DESCRIPTION | |
Get available application commands full path and description | |
.EXAMPLE | |
Get-ApplicationCommandDescription.ps1 | ? Description -ne $null | Select-Object -First 10 | |
Path Description | |
---- ----------- |
This file contains hidden or 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
<# | |
.DESCRIPTION | |
Get Remote Desktop Server configuration | |
#> | |
$reg = Get-Item 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp\' | |
[pscustomobject] @{ | |
ListenPort = $reg.GetValue("PortNumber") | |
AvailableUsers = @( |
普段はLinux(Arch Linux + i3)を使っているsheeplaが、Windowsでいい感じの環境を作るためにもがいた記録です。 「キーボード操作ですべてを完結させたい」「お気に入りのフォント・キーバインドを設定して生活したい」といったこだわりを捨てられない人におすすめです。 逆に、「安定した環境を使いたい」「Windowsのデフォルトの設定を壊したくない」「細々としたカスタマイズに時間を掛けたくない」人や商用のリッチなソフトウェアを多用する人にはあまり役に立たないかもしれません。
This file contains hidden or 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 Test-Command { | |
param( | |
[Parameter(Position=1)] | |
$Name | |
) | |
$null -ne (Get-Command $Name -ErrorAction:"SilentlyContinue") | |
} | |
if ((Test-Command ghq) -and (Test-Command fzf)) { |