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
#!/bin/env python3 | |
# sendmailattach.py TO FROM SUBJECT BODY ATTACH_FILENAME | |
# TO = 送信先メールアドレス | |
# FROM = 送信元 | |
# SUBJECT = 題名 | |
# ATTACHMENT = 添付ファイル名 | |
# BODY_TEXT = 本文 | |
import sys |
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
// TextboxDialog for LINQPad | |
// You can use it anywhere by adding the following code to MyExtensions class on Linqpad6. | |
// Usage: | |
// var lines = MyExtensions.ReadLines() | |
// foreach (var line in lines) | |
// Console.WriteLine(line); | |
public static class MyExtensions | |
{ | |
// Write custom extension methods here. They will be available to all queries. |
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
syntax on | |
set number | |
set autoindent | |
set smartindent | |
set hlsearch | |
set incsearch | |
set ignorecase | |
set smartcase | |
set showmatch "highlight ()" |
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
#!/bin/sh | |
sudo apt-get remove docker docker-engine docker.io containerd runc | |
sudo apt-get update | |
sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
#sudo apt-key fingerprint 0EBFCD88 | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
sudo apt-get update | |
sudo apt-get install -y docker-ce | |
#sudo docker container run hello-world |
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
#!/bin/sh | |
sudo yum remove -y docker docker-common docker-selinux docker-engine | |
sudo yum install -y yum-utils device-mapper-persistent-data lvm2 | |
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo | |
sudo yum makecache fast | |
yum list docker-ce --showduplicates | sort -r | |
sudo yum -y install docker-ce | |
sudo systemctl start docker | |
sudo systemctl enable docker |
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
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> | |
<!--DataGrid用のスタイル--> | |
<Style TargetType="DataGrid"> | |
<!-- Make the border and grid lines a little less imposing --> | |
<Setter Property="BorderBrush" Value="#DDDDDD" /> | |
<Setter Property="HorizontalGridLinesBrush" Value="#DDDDDD" /> | |
<Setter Property="VerticalGridLinesBrush" Value="#DDDDDD" /> | |
<Setter Property="RowStyle"> |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
/// <summary> | |
/// パフォーマンスカウンターのカテゴリーリストを表示 | |
/// 値も表示 | |
/// Excelで処理しやすいように1行に全部表示 | |
/// </summary> | |
static void EnumPCCategory2() | |
{ | |
//参考 | |
//http://uchukamen.com/Programming2/PerfMeter2/ |