You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Effectively adds a "ForeignKey" to a 3rd-party application's model (Post in this example) without monkey-patching the code. This is accomplished by adding a ManyToMany field instead on the other side of the desired relationship on the Item model (in this example), then, removing it from Item's admin and adding a ModelChoice field and Select widg…
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
Script to create a new self-signed SSL Certificate for Nginx
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
Offline Text Editor in < 140 bytes (115 bytes). Powered by localStorage & contentEditable
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
Actor-based CLI Twitter client example for using asyncio
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
A short tutorial on how to use Vault in your Ansible workflow. Ansible-vault allows you to more safely store sensitive information in a source code repository or on disk.
Working with ansible-vault
I've been using a lot of Ansible lately and while almost everything has been great, finding a clean way to implement ansible-vault wasn't immediately apparent.
What I decided on was the following: put your secret information into a vars file, reference that vars file from your task, and encrypt the whole vars file using ansible-vault encrypt.
Let's use an example: You're writing an Ansible role and want to encrypt the spoiler for the movie Aliens.
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
Так сложилось, что времени на блог в чистом виде у меня сейчас нет. А ссылки, между тем, все приходят и приходят. А я их, разумеется, все букмаркаю и букмаркаю. Я много думал, что с этими ссылками делать. Вот одна из моих гипотез.
Сервис по обсуждению ссылок.
Дада, те кто был на reddit знают - это примерно именно оно, с некоторыми уточнениями. У меня есть интересные ссылки, в среднем на английском языке. Особой пользы в них нет, однако можно было бы предложить живым людям обсуждать эти ссылки, высказывать свои суждения и вообще. Я это вижу так:
Поток новостей. Тут показываются последние 10 новостей, которые я вбросил. Есть возможность оставить каменты к каждоый ссылке или проголосовать за понравившиеся чужие каменты. По умолчанию каменты скрыты за кликом, показывается только лучший по голосам камент (если он есть). Наверняка можно задействовать любой из существующих сервисов каментариев, если у него есть нормальный API.
Архив новостей. Тут хранятся старые ссылки и каменты к ни
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