There have been three file formats for SSH keys. According to PuTTY document, "SSH-2 private keys have no standard format."
- OpenSSH format
- PuTTY's native format(*.PPK)
- SECSH format, RFC4716
- ssh-keygen
- "Git for Windows" contains it.
- PuTTYgen
#!/usr/bin/env python | |
# tested by Python 3.4.3 on Windows 8.1 | |
# Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:43:06) [MSC v.1600 32 bit (Intel)] on win32 | |
def main(): | |
numbers = [] | |
str = input('Please input numbers separated by comma: \n> ') | |
# https://docs.python.org/3/library/stdtypes.html#string-methods |
$>type diff-test_a.txt | |
This is test string. | |
hoge fuga. | |
This is test. | |
$>type diff-test_b.txt | |
This is test string. |
@echo off | |
REM http://curl.haxx.se/docs/manpage.html#-F | |
REM http://curl.haxx.se/mail/archive-2010-03/0049.html | |
REM cURL installed with msysgit is used on this batch. | |
REM Output of "curl -V" is below | |
REM curl 7.41.0 (i386-pc-win32) libcurl/7.41.0 OpenSSL/0.9.8zf zlib/1.2.8 | |
REM Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp | |
REM Features: AsynchDNS IPv6 Largefile SSPI Kerberos SPNEGO NTLM SSL libz | |
set curlPath="C:\Program Files (x86)\Git\bin\curl.exe" |
#!/usr/bin/env python | |
# | |
# I tested by Python 3.4.3 on Windows 8.1 | |
# Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:43:06) [MSC v.1600 32 bit (Intel)] on win32 | |
import urllib.request | |
import getpass | |
# If you access to url below via Proxy, | |
# set environment variable 'http_proxy' before execute this. |
#!/usr/bin/env python | |
""" | |
Very simple HTTP server in python. | |
Usage:: | |
./dummy-web-server.py [<port>] | |
Send a GET request:: | |
curl http://localhost |
# This is sample results of cURL's range globbing feature. | |
# I tested this on Windows 8.1. | |
# | |
# References: | |
# 'URL' section, http://curl.haxx.se/docs/manpage.html | |
$> curl -V | |
curl 7.38.0 (i386-pc-win32) libcurl/7.38.0 zlib/1.2.7 | |
Protocols: dict file ftp gopher http imap ldap pop3 rtsp smtp telnet tftp | |
Features: AsynchDNS IPv6 Largefile libz |
There have been three file formats for SSH keys. According to PuTTY document, "SSH-2 private keys have no standard format."
#!/usr/bin/env python | |
# | |
# tested by Python 3.4.3 on Windows 8.1 | |
# Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:43:06) [MSC v.1600 32 bit (Intel)] on win32 | |
import re | |
# https://docs.python.org/3/reference/lexical_analysis.html#string-and-bytes-literals | |
# http://d.hatena.ne.jp/itasuke/20090815/p1 (in Japanese) | |
filename=r"C:\\Users\\kaito\\Documents\\mydata\\scripts\\re-multilines_sample.txt" |
# https://technet.microsoft.com/ja-jp/scriptcenter/powershell_owner06.aspx (in Japanese) | |
# New-Item -path $profile -type file -force | |
# notepad $profile | |
# | |
# https://technet.microsoft.com/ja-jp/scriptcenter/powershell_owner05.aspx#EEAA (in Japanese) | |
# Run Set-ExecutionPolicy cmdlet on powershell prompt as administrator | |
# Set-ExecutionPolicy RemoteSigned | |
# | |
# tested by PowerShell 4.0 on Windows 8.1 |