What is Hackers' Pub?

Hackers' Pub is a place for software engineers to share their knowledge and experience with each other. It's also an ActivityPub-enabled social network, so you can follow your favorite hackers in the fediverse and get their latest posts in your feed.

0
0
0
0
0
0
0
0

I wrote a tool many years ago, called it dokumatix.

I wrote it half because I wanted more flexibility in my note taking, and half because I thought it would be funny.

It's a UNIX command line, filesystem oriented, document creation system.

...

Allow me to explain.

You create an output directory, preferably on a webserver. I just run apache on my desktop. All your documents will appear here in a basic index.

Then, you create a new directory, cd into it, and run dokumatix -i. This instantiates a new document build tree. If you run dokumatix (no i flag this time) anywhere under this directory, it will rebuild the entire document and shove the output to the configured web root.

You create clickable sections of the document by creating directories in the format "XX-Section-Name" where XX is a number that will be used as a sort order. The dashes after will be converted to spaces, and the remaining name used in the document as section headers.

This supports nesting, and will create a table of contents at the top of the document. The body of the doc will also be created following the same structure.

Inside directories is the meat and potatoes. Files are created with the form "XX-arbitraryName.extension." The XX is again, used as a sort order, the name is ignored, and just for keeping the pre-document self documenting. The work is done by the extensions. There are about 30 options right now. The most basic is just .html, which just gets sucked into the final document. There are basic ones like .ulist and .olist, which make every new line in the file a new entry into an unnumbered or ordinal list. Images can be imported, .dot files are parsed by graphviz and converted to png format. I have created quote formats, iFrames, tables, you name it. Aside from images, the entire thing is basic text, and the most quote unquote markdown you may need is : for field separators in tables, return carriage for new lines and lists, and the occasional use of <b> or <i>.

It takes all of your files, sorts them, builds a TOC, and produces a consistent looking document. You build the entire thing with mkdir, cd, mv, cp, and your $EDITOR. Want to reorder some things? Rename files to change the sort order. Need a spell checker? Install one and run it. Want to make it print ready? Open it in your web browser and save it as a PDF.

I wrote this as a goof in the days after I left $weDropPackets in 2016 because I needed a project and it sounded funny. It has become my defacto tool for brain dumping. It works how my brain works; I like UNIX, it is very UNIX like. It even works well for final documents; I have successfully imported the HTML output into a WYSIWYG editor, tweaked it, and presented it to top tier management.

Does _anybody_ but me care? Be awesome to get some help with stuff I don't know well. Maybe introduce CSS support. I absolutely suuuuuck at HTML, and the stuff this thing produces might pass 3.2 validation.

Oh, and it is 100% Perl, and the original code was written while I was drunk.

0
0
0
0
0
0

土耳其爆逾十年來最大示威 反對派市長被捕激發衝突- BBC News 中文

youtube.com/watch?v=7-B-mtvJ9U

> 土耳其爆發十多年來最大規模的反政府示威,抗議活動已持續近一週,警民衝突升級激化,造成過千人被捕。有分析認為,土耳其政局正處於重要的十字路口。事件源於總統埃爾多安的主要政敵——伊斯坦堡市長伊馬姆奧盧,因政府涉嫌貪污遭逮捕還押。成千上萬人無視政府的示威禁令走上街頭,反抗在位長達22年的埃爾多安。屬於反對派共和人民黨的...

0
0
0
0
0
0
0
0
0
0
0
0

This probably goes without saying but I wanted to log it for reference: Restoring an untrusted PostgreSQL raw data (base) dump is not safe!

Besides the obvious reason (stored procedures that could run arbitrary untrusted code), the server trusts the binary data files and will go out of bounds and access arbitrary memory if they are corrupted/inconsistent.

I don't think this is really a vulnerability or anything worth worrying about, it should just be known/documented (that if you need to restore a raw data dump from someone else, you should make sure the postgres daemon is sandboxed). This does not apply to SQL dumps, only the raw cluster data directory.

Mentioning this because I helped debug a crashing server due to a corrupted DB and confirmed the code makes data integrity assumptions ^^

0
0
0
0

ここのミードステーキも作ってみたいのよね
https://svente.jp/blogs/alcohol/mead-food-recipes

蜂蜜酒ミードを使った料理レシピ

  リトアニア国家遺産の蜂蜜酒(ミード)や蜂蜜薬草酒(ミードネクター)を使ったデザートや料理のレシピをご紹介します。薫り高い蜂蜜のお酒で料理をさらに引き立ててくれるでしょう。   デザートレシピ     【クルミのミードアイス】   - 材料 - ミード 0.5カップ 卵黄 8個 粉砂糖(アイシングシュガー) 1カップ 砕いたクルミ 500g ホイップクリーム 600g   - 調理方法 - 湯煎しながら卵黄と粉砂糖を混ぜる。 ミード「スタクリシュケス」と砕いたクルミを入れる。 ホイップクリームを入れて混ぜる。 容器に移して凍らせたら完成。       【イチゴのミードタルト】   - 材料 - 苺(小ぶりのもの) 1kg ホイップクリーム 200g 刻んだピスタチオ 少々 - ビスケット生地用材料 - 卵 3個 砂糖 125g 小麦粉 150g ベーキングパウダー 小さじ1 バター 適量 ベーキング時の油として - クリームソース用材料 - ミードネクター 大さじ2 牛乳 0.75カップ 砂糖 大さじ1 バター 200g   - 調理方法 - 卵、砂糖、小麦粉、ベーキングパウダーでベースのビスケット生地を作る。 生地にバターを塗って焼く。 ミルクと砂糖を熱してカラメル状にする。 そこにミードネクターとバターを加えて混ぜクリームソースを作る。 ベースのビスケットが冷めたらクリームソースを塗る。 その上にイチゴを飾る。 ホイップクリームと刻んだピスタチオを添えて完成。       【洋ナシのミードコンポート】   - 材料 - 洋ナシ 5つ 水 500cc ガムシロップ 1カップ クローブ(香辛料) 適量 ココナッツ お好みで ホイップクリーム お好みで - カラメルソース用材料 - ミード 大さじ2 砂糖 100g 蜂蜜 大さじ1   - 調理方法 - 洋ナシを輪切りにして水、ガムシロップと一緒に沸騰させる。 沸騰したらクローブ(香辛料)を入れて冷ます。 砂糖、蜂蜜、ミード(スタクリシュケス)を沸騰させソースを作る。 カラメル状に糸を引いたらお皿に盛った洋ナシにかける。 お好みで刻んで炒ったココナッツやホイップクリームを添えて完成。       料理レシピ     【タイのミードグリル】 - 材料 - ミードネクター 大さじ2 タイ 500g レモン 1個(果汁を絞ったもの) レモン汁 1 塩 少々 ソース(下記材料参照) - ソース用材料 - 赤唐辛子 1個 玉ねぎ 1個 にんにく 3片 ディル(香草) お好みで ケーパー 小さじ1 酢 小さじ2 油 小さじ5 水 100cc 塩、胡椒 少々   - 調理方法 - ウロコを取ったタイに塩を揉む。 レモン汁とミードネクターによく浸してホイルに包み5〜6時間置く。 ソース作り:赤唐辛子、玉ねぎ、にんにく、ディル(香草)を細かく刻む。 そこにケーパー、酢、油、水を加えて塩胡椒で味を整える。 下ごしらえの済んだタイをオーブン(もしくは炭火)で網焼きにする。 ソースをかけて完成。       【ミードシャシリク】   - 材料 - ミードネクター 大さじ2 鶏肉(ヒレ) 4切れ 醤油 大さじ1 蜂蜜 大さじ1 マスタード 大さじ1 レモン汁 大さじ1 塩 小さじ1 生姜のすりおろし 少々 ソース(下記材料参照)  - ソース用材料 - 赤唐辛子 1個 玉ねぎ 1個 にんにく 3片 ディル(香草) お好みで ケーパー 小さじ1 酢 小さじ2 油 小さじ5 水 100cc 塩、胡椒 少々   - 調理方法 - ミードネクター、醤油、蜂蜜、マスタード、レモン汁、塩、生姜のすりおろしを和える。 そこに一口大に切った鶏肉を和えて5〜6時間置く。 ソース作り:赤唐辛子、玉ねぎ、にんにく、ディル(香草)を細かく刻む。 そこにケーパー、酢、油、水を合わせて塩胡椒で味を整える。 下ごしらえの済んだ鶏肉を串に刺して炭火で焼く。 ソースをかけて完成。     【ミードステーキ】   - 材料 - ミードネクター 適量 豚肉 500g 黒コショウ 少々 シナモン 小さじ1 醤油 大さじ5 クローブ 少々 レモン汁 大さじ5 - ソース用材料 - オリーブオイル 大さじ5 ショウガ根 適量 蜂蜜 適量 レモン汁 適量 マスタード 適量 白ワイン 適量 グラニュー糖 小さじ1   - 調理方法 - 豚肉を切り、黒コショウ、シナモン、醤油、クローブ、レモン汁で和える。 ミードネクターに肉が隠れるくらい浸して一晩置く。 アルミホイルに包んで焼き、最後にホイルから取り出して焼き目を入れる。 オリーブオイル、ショウガ根、蜂蜜、レモン汁、マスタード、白ワインを合わせたソースをかけて完成。       【ミードローストチキンのフルーツライス詰め】   - 材料 - ミードネクター 大さじ3 塩 鶏肉の塩揉みに適量 鶏肉 1羽(1.2kg) 米 125g リンゴ 1個 梨 1個 バナナ 1本 レーズン 0.5カップ マヨネーズ 大さじ6 レモン汁 大さじ2   - 調理方法 - 鶏肉を塩揉みしてミードネクターに漬けて一晩置く。 お米を炊き、刻んだ果物(リンゴ、梨、バナナ)やレーズンと混ぜ合わせる。 さらにレモン汁とマヨネーズで和え鶏肉に詰める。 足をヒモで結ぶ。 残ったマヨネーズは表面に塗り込む。 オーブンで1時間グリルして完成。       【ミード・ハーリング】   - 材料 - ミードネクター 大さじ3 ハーリング(ニシンの酢漬け) 2匹 玉ねぎ(小玉) 1個 油 適量 シナモン 少々 塩 少々 レーズン 大さじ2 レモン汁 大さじ2 爪楊枝 数本   - 調理方法 - 刻んだ玉ねぎを油で炒めシナモンと塩で味付けする。 レーズンを加えさらに炒める。 その後でミードネクターとレモン汁を加える。 できた具をハーリングの上に乗せて包み爪楊枝で止める。 お好みでアボカド、ピクルス、オリーブの実などをお皿に飾り付けて完成。       【ミード牛フィレのオーブングリル】   - 材料 - ミードネクター 大さじ2 牛フィレ肉 500g 塩 適量 コショウ 適量 玉ねぎ 2つ 油 適量 サワークリーム 大さじ3 チーズ 150g パセリ 少々   - 調理方法 - 牛肉を切って塩コショウで味付けする。 牛肉と輪切りにした玉ねぎにミードネクターを加えて手で揉む。 牛肉と玉ねぎを層になるように重ねて冷蔵庫で12時間寝かせる。 オーブンプレートに油を敷く。 そこに牛肉、玉ねぎの順に乗せる。 さらにサワークリーム、チーズ、パセリを乗せる。 オーブンでこんがり焼く。 野菜のソテーやポテトも添えて完成。  

svente.jp · Svente(スベンテ)リトアニアインポーター

0
0
0
0
0

The "federated" service that isn't federated. Which is owned by one company. 🤔 (I know folks like it, hi all of you through the bridge... but it is not owned by the people, it is owned by one single company).

A world without Caesars: How the atproto community is rebuilding the web to return power to the people https://tcrn.ch/4cm52Rr
0
0
0
0

Hyunjin Cho shared the below article:

Hacker's Pub에 입문한 한국어권 여러분을 위한 안내서

Jaeyeol Lee @kodingwarrior@hackers.pub

Hacker's Pub은 소프트웨어 업계 종사자들이 자유롭게 생각을 공유하고 소통할 수 있는 소셜 네트워크 서비스이자 블로깅 플랫폼입니다. ActivityPub 프로토콜을 지원하여 Mastodon, Misskey 등 다른 SNS 서비스 사용자들과도 연결되어 플랫폼 경계를 초월한 소통이 가능합니다. 이 글에서는 Hacker's Pub의 의미와 ActivityPub 프로토콜에 대한 간략한 소개, 그리고 커뮤니티에 기여할 수 있는 다양한 방법을 제시합니다. 오픈 소스로 개발되는 Hacker's Pub 생태계에 참여하여 함께 서비스를 발전시키고, 우리만의 클라이언트를 만들어 Hashnode와 같은 블로그 템플릿을 구축하는 미래를 기대해 볼 수 있습니다. Hacker's Pub은 상호 존중과 신뢰를 바탕으로 모든 이들이 자유롭게 의견을 나누고 함께 만들어가는 공간입니다.

Read more →
0
4
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0

https://news.hada.io/topic?id=19948

나는 프로그래밍을 Solaris에서 시작했고, FreeBSD의 오랜 팬이자 사용자였지만, 이제 와서는 BSD를 권하지 않음. 내 개인적으로도 이젠 더이상 쓰지 않고 있고. 물론 BSD가 특정 시나리오에서는 매우 뛰어난, 그리고 일반적으로 좋은 서버 OS라는 점은 지금도 유효하지만, 더이상 개인이 사용할 우위점은 거의 없다고 생각함.

  1. 리눅스가 충분히 안정화되었고, 가장 안정적인 OS를 찾는다면 RHEL(+클론들)을 쓰면 됨. 대형 유저들이 많으며, 전문가 집단이 구성하고 충분히 테스트한 OS임.
  2. 리눅스가 de facto standard여서, 더 효율적인 솔루션들이 있더라도 작은 차이라도 큰 특수 분야가 아니라면 굳이 다른 방법을 찾는 비용을 정당화하기 어려움. 무엇보다 유지보수, 확장, 인프라 이전 등 모든 면에서 리눅스가 제일은 아닐지 몰라도 충분히 쌈.
  3. 보안에 있어서도 OpenBSD의 품질은 대단하지만, 대형 리눅스 배포판들 또한 취약점 패치 속도에서 매우 빠른 편이고 보안 툴들도 잘 갖추고 있음. 이제 양자간 개발자, 사용자 숫자의 차이는 인원과 설계의 질로 메꿀 수 있는 수준이 아니라고 봄.

0
0