This file contains hidden or 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
| # 最新化(完了後再起動) | |
| $ sudo apt-get update #パッケージリストの更新 | |
| $ sudo apt-get upgrade #インストールされているパッケージの更新 | |
| $ sudo apt-get autoremove #不要と判断されたパッケージは削除 | |
| $ sudo shutdown -r now # 再起動 | |
| $ sudo apt install task-japanese task-japanese-desktop | |
| $ sudo shutdown -r now # 再起動 |
This file contains hidden or 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
| xfreerdp /u:username /p:password /f +fonts +clipboard /v:10.10.10.10:3389 |
This file contains hidden or 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
| find / -type f -perm -u=s -exec ls -l {} \; 2> /dev/null |
This file contains hidden or 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
| using System; | |
| using System.IO; | |
| using System.IO.Compression; | |
| namespace ZipReader | |
| { | |
| internal class Program | |
| { | |
| public static void Main(string[] args) | |
| { |
This file contains hidden or 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
| .NET Core 3.1でのWindowsサービスの作成方法を調べたので記録しておく。 | |
| .NET Coreでは、WorkerServiceというものを使うらしい | |
| 詳しくはまだわからない。 | |
| Riderでは、[Worker Service]とテンプレートが用意されている。 | |
| 基本的にはこれを使えばよいと思う。 | |
| NuGetで、[Microsoft.Extensions.Hosting.WindowsServices]をインストールする必要がある。 | |
| これを入れておかないと、UseWindowsServices()メソッドが呼び出せない。 |
This file contains hidden or 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
| # 秘密鍵作成 | |
| openssl genrsa 2048 > private.key | |
| # CSR作成 | |
| openssl req -new -key private.key > server.csr | |
| # 色々聞かれる | |
| # CNは必須 | |
| # 自分で署名 | |
| openssl x509 -req -days 3650 -signkey private.key < server.csr > server.crt |
This file contains hidden or 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
| # 引用URL | |
| https://www.hiroom2.com/2017/07/02/debian-9-vbox-guest-additions-ja/ | |
| $ sudo apt install -y linux-headers-amd64 | |
| $ sudo apt build-dep -y linux | |
| # 上記だけだとDebian9.8でエラー | |
| $ sudo apt install -y build-essential linux-headers-`uname -r` dkms |
This file contains hidden or 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
| # Windows 10 | |
| 1. フォルダ作成 | |
| 2. GodMode.{ED7BA470-8E54-465E-825C-99712043E01C} | |
| # Windows 7 | |
| 1.フォルダ作成 | |
| 2. GodMode.{ED7BA470-8E54-465E-825C-99712043E01C} |
This file contains hidden or 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
| # coding: utf-8 | |
| import sys | |
| import win32com.client | |
| import pythoncom | |
| _VERSION_ = 'v0.1.0' | |
| def show_version(): | |
| print("=" * 20) |
This file contains hidden or 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
| # coding: utf-8 | |
| """ | |
| Anaconda環境を想定 | |
| 参考URL: | |
| https://docs.microsoft.com/en-us/office/vba/api/outlook.olattachmenttype | |
| https://docs.microsoft.com/en-us/office/vba/outlook/concepts/attachments/modify-an-attachment-of-an-outlook-email-message | |
| https://qiita.com/pashango2/items/5075cb2d9248c7d3b5d4#memoryview%E3%81%A7bytes%E3%81%AB%E5%A4%89%E6%8F%9B | |
| """ | |
| import win32com.client | |
| import os.path |
NewerOlder