Skip to content

Instantly share code, notes, and snippets.

View mimikun's full-sized avatar
😷
Remember COVID-19

mimikun

😷
Remember COVID-19
View GitHub Profile
@vrtmrz
vrtmrz / typography-ja-mod.css
Created September 21, 2023 08:52
Obsidianの日本語の微調整CSS
:root {
--default-font: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;
--editor-font: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
/* --override-font: "BIZ UDゴシック"; */
/* --override-font: "HackGen35"; */
/* --override-font: "BIZ UDPゴシック"; */
/* --override-font: "Yu Gothic"; */
}
.cm-content {
@sheepla
sheepla / Get-PhysicalMemory.ps1
Created April 29, 2023 09:23
Get physical memory device detailed info on Windows
<#
.DESCRIPTION
Get physical memory (RAM) detailed information
#>
using namespace System.Collections.Generic
$memoryType = [Dictionary[int,string]]::new()
$memoryType.Add(0,"Unknown")
$memoryType.Add(1,"Other")
@sheepla
sheepla / cd-ghq.ps1
Last active October 13, 2023 09:38
cd to ghq's repository selected by fzf on PowerShell
function Test-Command {
param(
[Parameter(Position=1)]
$Name
)
$null -ne (Get-Command $Name -ErrorAction:"SilentlyContinue")
}
if ((Test-Command ghq) -and (Test-Command fzf)) {
@sheepla
sheepla / LinuxユーザーのためのWindowsカスタマイズガイド.md
Last active May 10, 2024 13:25
LinuxユーザーのためのWindowsカスタマイズガイド

LinuxユーザーのためのWindowsのおすすめツール・アプリケーション+個人的なカスタマイズガイド

これはなに?

普段はLinux(Arch Linux + i3)を使っているsheeplaが、Windowsでいい感じの環境を作るためにもがいた記録です。 「キーボード操作ですべてを完結させたい」「お気に入りのフォント・キーバインドを設定して生活したい」といったこだわりを捨てられない人におすすめです。 逆に、「安定した環境を使いたい」「Windowsのデフォルトの設定を壊したくない」「細々としたカスタマイズに時間を掛けたくない」人や商用のリッチなソフトウェアを多用する人にはあまり役に立たないかもしれません。

ターミナル

@sheepla
sheepla / ManageLocalUsers.md
Last active October 13, 2023 09:38
Manage local users with Windows PowerShell

ローカルユーザーの管理

通常、GUIでローカルユーザーを管理するには、管理コンソールの「ローカルユーザーとグループ」(lusrmgr.msc)を開きます。

Win+X -> G (コンピューターの管理) -> 「ローカル ユーザーとグループ」

PowerShellの場合、名前に LocalUser と付いたコマンドレットを使えば ローカルユーザーを簡単に管理することができます。

ローカルユーザーの一覧や詳細情報の取得

<#
.DESCRIPTION
Get Remote Desktop Server configuration
#>
$reg = Get-Item 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp\'
[pscustomobject] @{
ListenPort = $reg.GetValue("PortNumber")
AvailableUsers = @(
<#
.DESCRIPTION
Get available application commands full path and description
.EXAMPLE
Get-ApplicationCommandDescription.ps1 | ? Description -ne $null | Select-Object -First 10
Path Description
---- -----------
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
@sheepla
sheepla / ghq-fzf.zsh
Last active February 17, 2024 14:05
ghq で管理しているリポジトリに Ctrl-g で cd する on zsh
#
# 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`

microblog.pub建立

どうも、国見小道です。今回は、Fediverseに参加するためのさまざまなソフトの1つ、「microblog.pub」を建てて数日運用してみて得られた知識と感想について書いていきます。

microblog.pubというActivityPub実装のOSSがあります。これはMastodonPleromaMisskeyと同じカテゴリに属する、マイクロブログ型の分散SNSです。microblog.pubは「おひとりさま」を徹底追求したもので、なんとログインページにはパスワードの入力欄しかありません

loginPage

無事productionのbuildが成功した後にこのことを確認して、ド肝を抜かれました。