Skip to content

Instantly share code, notes, and snippets.

@hrko
hrko / file0.txt
Last active September 30, 2020 15:20
https で git push するときのパスワードをGNOMEのキーリングに保存する
$ sudo apt-get install libgnome-keyring-dev
$ cd /usr/share/doc/git/contrib/credential/gnome-keyring
$ sudo make
@hrko
hrko / packages.md
Last active September 5, 2018 16:57
Arch Linux セットアップメモ

Official Repo

gnome texlive-core texlive-fontsextra ccache zsh fzf

ttf-croscore ttf-dejavu

@hrko
hrko / _convert_zsh_history_to_fish_history.md
Last active February 2, 2019 14:01
.zhistory を fish_history に変換するやつ

extended_history (タイムスタンプ付与)オプションが有効なzshで保存された履歴は考慮しない

@hrko
hrko / minimize_zoom.ahk
Created January 19, 2021 12:22
Minimize the Zoom meeting window to the taskbar when you clicked the minimize button, so that it does not become a mini-video.
#UseHook
; パフォーマンス向上
#NoEnv
SetBatchLines -1
ListLines Off
;マウス系関数で使う座標をスクリーンからの相対位置にする
CoordMode, Mouse, Screen
@hrko
hrko / wheel_to_tabs.ahk
Created January 26, 2021 07:33
Wheel Scroll Tabs for Google Chrome
; Wheel Scroll Tabs for Google Chrome
#UseHook
; Improve the performance
#NoEnv
SetBatchLines -1
ListLines Off
; Pause the script if it receives 200 key events within 1,000 ms
#HotkeyInterval 1000
@hrko
hrko / settings.json
Created August 31, 2021 14:42
Msys2 terminal profiles for Visual Studio Code
"terminal.integrated.profiles.windows": {
"MINGW64 / MSYS2": {
"path": "C:/msys64/msys2_shell.cmd",
"args": [
"-defterm",
"-here",
"-no-start",
"-mingw64"
],
},
@hrko
hrko / get_xrdp_display.sh
Created February 15, 2023 20:03
Small script to get the display started by XRDP. This is useful when you want to launch GUI apps from SSH on the XRDP session.
#!/bin/bash
# find session ids for current user
SESSION_IDS=$(loginctl list-sessions -o json | jq -r '.[] | select(.user == "'"$USER"'") | .session')
# find XRDP sessions
XRDP_SESSION_IDS=()
for item in $SESSION_IDS; do
SERVICE=$(loginctl show-session -P Service "${item}")
if [[ $SERVICE == "xrdp-sesman" ]]; then
@hrko
hrko / flatpak-gl-nvidia.sh
Created October 23, 2023 09:56
This script installs and updates the Flatpak GL runtime for NVIDIA on Ubuntu.
#!/bin/bash -eu
# This script installs and updates the Flatpak GL runtime for NVIDIA on Ubuntu.
# It automatically detects the version of the NVIDIA driver and installs the corresponding Flatpak GL runtime.
print_section() {
local title
title=$1
echo
echo "==> ${title}"