This file contains 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
# need to install xdotool | |
# move to a upper monitor | |
xdotool getactivewindow windowmove $[DISPLAY_WIDTH] 0 | |
# move to a lower monitor | |
xdotool getactivewindow windowmove $[DISPLAY_WIDTH] 1201 |
This file contains 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
'<置換元の文字列>' -replace '[ \t!]', '_' | Set-Clipboard -PassThru |
This file contains 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
<!DOCTYPE html> | |
<html lang="ja-JP"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>the simplest HTML template</title> | |
<link href=".css" rel="stylesheet" type="text/css"> | |
<script src="script.js" defer></script> | |
</head> |
This file contains 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
#!/usr/bin/env bash | |
cd `dirname $0` | |
if [ $# -gt 3 ]; then | |
echo "呼出時の引数: <コピー元ディレクトリー パス> <コピー先ディレクトリー パス> (<除外パターンファイルのパス>)" | |
exit 1 | |
fi | |
if [ $# -lt 2 ]; then |
This file contains 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
select | |
Host | |
, user | |
, PLUGIN | |
, AUTHENTICATION_STRING | |
, PASSWORD_EXPIRED | |
from mysql.user; |
This file contains 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
#!/bin/bash | |
if [ $# -gt 2 -o $# -lt 1 ]; then | |
echo "Usage: $0 TARGET_FOLDER_PATH [TARGET_FILE_REGEX]" | |
exit 1 | |
fi | |
TARGET_FOLDER_PATH=$1 | |
if [ $# -eq 1 ]; then |
This file contains 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
-- https://learn.microsoft.com/ja-jp/sql/relational-databases/tables/view-the-table-definition?view=sql-server-ver16#TsqlProcedure | |
SELECT | |
s.name AS schema_name | |
, t.name AS table_name | |
, c.* | |
, st.name AS [システム型] | |
, ut.name AS [ユーザー定義型] | |
FROM | |
sys.columns AS c | |
INNER JOIN sys.tables AS t ON |
This file contains 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
# %USERPROFILE%\scoop\apps\cmder\current\config\cmder_prompt_config.lua | |
# 22行目 | |
prompt_lambSymbol = "$" |
This file contains 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
LOCAL_BIN_DIR=$HOME/.local/bin | |
echo $PATH | grep $LOCAL_BIN_DIR >/dev/null | |
if [ $? -ne 0 ]; then | |
export PATH=$LOCAL_BIN_DIR:$PATH | |
fi |
This file contains 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
mkdir -p ~/ws/ghq | |
git config --global ghq.root '~/ws/ghq' |
NewerOlder