更新: | 2024-05-20 |
---|---|
作者: | @voluntas |
バージョン: | 2024.1 |
URL: | https://voluntas.github.io/ |
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
""" | |
Add binary-mode options to SSHClient.exec_command(...) for binary stdout, stderr channels. | |
See: https://github.com/paramiko/paramiko/issues/291 | |
""" | |
import paramiko | |
def _patched_exec_command(self, |
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
# とりあえず標準RPMをインストールする。後でコンパイルしたモジュールで上書きする。 | |
$ sudo apt-get install xrdp | |
# コンパイルに必要なライブラリを追加 | |
$ sudo apt-get install make | |
$ sudo apt-get install autoconf | |
$ sudo apt-get install libtool libtool-doc | |
$ sudo apt-get install libssl-dev | |
$ sudo apt-get install libpam0g-dev | |
$ sudo apt-get install libx11-dev and libxfixes-dev |
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
[noshift] | |
Key8=0:0 | |
Key9=65307:27 | |
Key10=49:49 | |
Key11=50:50 | |
Key12=51:51 | |
Key13=52:52 | |
Key14=53:53 | |
Key15=54:54 | |
Key16=55:55 |
原文: | Async in C# and F#: Asynchronous gotchas in C# |
---|---|
原文著者: | Tomas Petricek (@tomaspetricek) |
翻訳者: | @pocketberserker |
2月に、私は毎年恒例のMVPサミット ── Microsoft が MVP のために主催するイベント ── に出席しました。私はボストンとニューヨークを訪問する機会を利用して、二つの F# に関する講演と Channel9 lecture about type providers の収録を行いました。他のすべての活動(しばしばパブで他の F#er を議論に巻き込んだり、朝まで長い睡眠)にもかかわらず、私はいくつかの講演に参加し果せました。
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
# vim:fileencoding=utf-8 | |
import codecs | |
import sys | |
import types | |
if __name__ == '__main__': | |
# | |
# ターミナルに出力する場合 | |
# 以下のサンプルは、ターミナルに出力する場合は | |
# うまくいくが、リダイレクトさせてファイルに出力すると |
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 python | |
import os | |
import shlex | |
import struct | |
import platform | |
import subprocess | |
def get_terminal_size(): | |
""" getTerminalSize() |
NewerOlder