Skip to content

Instantly share code, notes, and snippets.

@ecormaksin
ecormaksin / sources.list
Created April 24, 2022 04:19
/etc/apt/sources.list for Fossadog64 (japan mirror)
# Fossadog repo
deb https://debiandog.github.io/FossaDog/Packages-amd64/ ./
deb http://jp.archive.ubuntu.com/ubuntu/ focal main restricted
# deb-src http://jp.archive.ubuntu.com/ubuntu/ focal main restricted
deb http://jp.archive.ubuntu.com/ubuntu/ focal-updates main restricted
# deb-src http://jp.archive.ubuntu.com/ubuntu/ focal-updates main restricted
deb http://jp.archive.ubuntu.com/ubuntu/ focal universe
@ecormaksin
ecormaksin / wine_tips.md
Last active April 10, 2022 02:49
Wine関連

Wine関連メモ

  • 参考URL

  • パッケージのインストール

    sudo apt -y install wine64 winetricks
@ecormaksin
ecormaksin / intellij-idea.desktop
Last active May 3, 2022 15:14
UbuntuでIntelli IDEAのデスクトップショートカットを作成する
[Desktop Entry]
Categories=TextEditor;Development;IDE;
Type=Application
Terminal=false
Icon[ja]=/opt/idea/bin/idea.png
Name[ja]=IntelliJ IDEA
Exec=/opt/idea/bin/idea.sh
Icon=/opt/idea/bin/idea.png
# save as '/usr/share/applications/intellij-idea.desktop'
@ecormaksin
ecormaksin / Profile.ps1
Last active January 31, 2023 01:27
Windows Powershellのプロンプトをカスタマイズする
<#
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_prompts?view=powershell-7.2
以下の内容を保存する。
- Windows Powershell: `%USERPROFILE%\Documents\WindowsPowerShell\Profile.ps1`
- Powershell: `%USERPROFILE%\Documents\PowerShell\Profile.ps1`
- Visual Studio Code PowerShell Extension: `%USERPROFILE%\Documents\PowerShell\Microsoft.VSCode_profile.ps1`
#>
@ecormaksin
ecormaksin / gist:84816d52f624e2a21b840475d74bc302
Created January 11, 2022 01:56
Windowsのコマンドプロンプトのプロンプトをカスタマイズ
PROMPT $P ($D $T)$_$G
```text
https://www.javadrive.jp/command/display/index2.html
$A & (アンパサンド)
$B | (パイプ)
$C ( (左かっこ)
$D 現在の日付
@ecormaksin
ecormaksin / Microsoft_IME_US配列用_記号.txt
Created November 8, 2021 00:14
Microsoft_IME_US配列用_記号(UTF-16 LE BOM)
あ _ 名詞
え \ 名詞
え ¥ 名詞
た | 名詞
た | 名詞
@ecormaksin
ecormaksin / Google日本語入力_US配列用_記号.txt
Created November 8, 2021 00:06
Google日本語入力_US配列用_記号
あ _ 名詞
あ _ 名詞
え \ 名詞
え ¥ 名詞
た | 名詞
た | 名詞
@ecormaksin
ecormaksin / gist:26110fb6358531e7d639666673310625
Last active October 18, 2021 05:58
連番でダミーデータを作成するシェルコマンド
for i in {1..100}; do (TIMESTAMP_STR=`date +%Y%m%d_%H%M%S_%3N`; dd if=/dev/zero of="${TIMESTAMP_STR}_dummy_$i" bs=1M count=10;); done
find <target_path> -type f -name <file_filter> -print 2>/dev/null | xargs file | grep "UTF-8 Unicode (with BOM) text"
@ecormaksin
ecormaksin / ghq-peco.bat
Last active August 28, 2021 08:58
Windowsでghqとpecoを組み合わせて使うエイリアス
@echo off
for /f "tokens=*" %%x in ('ghq list -p ^| peco') do (
cd %%x
break
)