I'm attempting to write a script to generate SSH Identity key pairs for me. from M2Crypto import RSA key = RSA.gen_key(1024, 65337) key.save_key("/tmp/my.key", cipher=None) The file /tmp/my.key looks great now. By running ssh-keygen -y -f /tmp/my.key > /tmp/my.key.pub I can extract the public key. My question is how can I extract the public key from python? Using key.save_pub_key("/tmp/my.key.pub"
This document summarizes Andy McKay's presentation on the anatomy of Mozilla's large Django site. It discusses performance optimizations including caching, reducing SQL queries, async tasks with Celery, and localization. It also covers code reuse through libraries like Bleach and JavaScript testing. Testing, linting, and continuous integration with Hudson were also mentioned.
Playdoh¶ Mozilla’s Playdoh is a web application template based on Django. Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design. Playdoh is simply a pre-configured Django project that adds some essential modules and middleware to meet the following goals: Enhance the security of your application and its data Achieve optimal performance in the fac
hiddencode - A Sphinx Extension¶ Simple, inelegant Sphinx extension which adds a directive for a highlighted code-block that may be toggled hidden and shown in HTML. Naturally, this directive is called hidden-code-block. This is possibly useful for teaching courses. The directive, like the standard code-block directive, takes a language argument and an optional linenos parameter. The hidden-code-b
CodeIQ中の人、millionsmileです。 2013年5月25日~26日に台湾でPyCon(Python Conference)が開催され、その主催者であるTim HsuさんとYung-Yu Chenさんから「Word Transformer!」というPython問題が出題されました。 問題はわずか5日の掲載期間だったにもかかわらず、39名ものPythonistaの方々に挑戦いただきました!ありがとうございます。 出題者のTimさんからは、どの解答もレベルが高く素晴らしい!と感動の声が届いております。 After review these solution, I surprisingly find there are a lot of possible way to solve the problem. These submission extend my understandin
Django REST Framework Django REST framework is a powerful and flexible toolkit for building Web APIs. Some reasons you might want to use REST framework: The Web browsable API is a huge usability win for your developers. Authentication policies including packages for OAuth1a and OAuth2. Serialization that supports both ORM and non-ORM data sources. Customizable all the way down - just use regular f
fabricのみに依存しています。cuisine, fabtoolsは実装の参考にしていますが、 依存はしていません。 使い方¶ fabfile.pyを以下のように書きます。 from fabric.api import env, task from envassert import file, process, package, user, group, port, cron, detect env.use_ssh_config = True @task def check(): env.platform_family = detect.detect() assert file.is_exists("/etc/hosts") assert file.is_file("/etc/hosts") assert file.is_dir("/tmp/") assert file.dir_exis
Your Unified Data Layer for Analytics, Search, and AI From Ingest to Insights in Real Time "We needed a solution that could watch, record and analyze production in real time. CrateDB gives us the freedom to be cumulative and scale limitless - we found no alternative solution with such simplicity and efficiency.” "Working with CrateDB brings positive outcomes. The ingestion and throughput have very
UPDATE: I’m currently available for Django/Machine-Learning/Design consulting. If you are interested, please contact me: info@mathandpencil.com. For more info, please check out my firm Math & Pencil UPDATE: Part II of this article can be found here: I started Math & Pencil just about two years ago. Before I started the companies, I had almost zero web development experience (I’m a data guy) - I st
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く