Skip to content

Instantly share code, notes, and snippets.

@uhooi
uhooi / 取扱説明書.md
Last active August 29, 2023 06:53
uhooiの取扱説明書

働く時間

  • 9:00〜17:45で働きたい
  • 夜や休日に働くのが苦手
  • 緊急/重要なら夜や休日も働く
    • 変に気を遣われるよりは声を掛けてほしい、無理なときは無理と言う

場所や環境

  • リモートワークのときは仕事部屋で作業している
@sheepla
sheepla / ojosudo
Last active February 9, 2024 15:35
sudo but for お嬢様
#!/bin/sh
echo -e "貴方は領主様から通常の講習を受けたはずですわ。
これは通常、以下の3点に要約されますの:
#1) 市民の皆様のプライバシーを尊重すること。
#2) タイプする前に考えること。
#3) そしてノブレス・オブリージュを肝に銘じておくことですわ。
"
exec sudo "${@}"
@kat0h
kat0h / has_wsl.patch
Last active May 22, 2022 09:13
has('wsl') porting for vim (供養)
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt
index 72e2cf13f..833a39a11 100644
--- a/runtime/doc/builtin.txt
+++ b/runtime/doc/builtin.txt
@@ -10445,6 +10445,7 @@ xpm Compiled with pixmap support.
xpm_w32 Compiled with pixmap support for Win32. (Only for
backward compatibility. Use "xpm" instead.)
xsmp Compiled with X session management support.
+wsl Vim is running on WSL (Windows Subsystem for Linux).
xsmp_interact Compiled with interactive X session management support.
" requires https://github.com/liquidz/ddu-source-custom-list
" cf. https://github.com/mattn/vim-sonictemplate/blob/master/autoload/fzf/sonictemplate.vim
function! s:ddu_sonictemplate() abort
let id = denops#callback#register(
\ {s -> sonictemplate#apply(s, 'n')},
\ {'once': v:true})
call ddu#start({'sources': [
\ {'name': 'custom-list',
\ 'params': {'texts': sonictemplate#complete('', '', 0), 'callbackId': id}}]})
endfunction
@sheepla
sheepla / slack-sidebar-themes.md
Last active April 13, 2021 23:50
Slackのサイドバーテーマ。

Slack Sidebar Themes

Installation

  1. Copy these color codes.
  2. Open the following menu Preferences -> Themes.
  3. Paste it into the Colors item.

Or send a direct message to slackbot and click Switch sidebar theme.

@anthonyeden
anthonyeden / FontInstallation.ps1
Last active June 1, 2024 16:31
Font User Installation - Powershell (No Admin Password Needed)
# Run this as a Computer Startup script to allow installing fonts from C:\InstallFont\
# Based on http://www.edugeek.net/forums/windows-7/123187-installation-fonts-without-admin-rights-2.html
# Run this as a Computer Startup Script in Group Policy
# Full details on my website - https://mediarealm.com.au/articles/windows-font-install-no-password-powershell/
$SourceDir = "C:\InstallFont\"
$Source = "C:\InstallFont\*"
$Destination = (New-Object -ComObject Shell.Application).Namespace(0x14)
$TempFolder = "C:\Windows\Temp\Fonts"