これは、AnsibleでWindowsを管理するために、WinRMにHTTPSで接続できるよう設定するためのドキュメントです。
自己証明書は、PowerShellの New-SelfSignedCertificate ではなくLinux上でopensslコマンドで作成したものを使用します。
設定対象のWindows VMを
- ホスト名: wintest1
- IPアドレス: 192.168.122.70
| package dumb_handle_map | |
| // NOTE: ONLY TO SHOW WHAT A GENERATION IS DOING | |
| // BUT DOES NO INSERTION WHATSOEVER | |
| Handle_Map :: struct($T: typeid) { | |
| entries: [dynamic]Entry(T), | |
| } | |
| Entry :: struct($T: typeid) { |
| // Ref: https://old.reddit.com/r/C_Programming/comments/1dlc4kw | |
| #include <stdint.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #define new(n, t) (t *)calloc(n, sizeof(t)) | |
| typedef struct node node; | |
| struct node { |
| Anyone is free to copy, modify, publish, use, compile, sell, or | |
| distribute this software, either in source code form or as a compiled | |
| binary, for any purpose, commercial or non-commercial, and by any | |
| means. | |
| In jurisdictions that recognize copyright laws, the author or authors | |
| of this software dedicate any and all copyright interest in the | |
| software to the public domain. We make this dedication for the benefit | |
| of the public at large and to the detriment of our heirs and | |
| successors. We intend this dedication to be an overt act of |
| // This package started out as a port of the minicoro library with the following copyright: | |
| // | |
| // Copyright (c) 2021-2023 Eduardo Bart (https://github.com/edubart/minicoro) | |
| // | |
| // Permission is hereby granted, free of charge, to any person obtaining a copy of | |
| // this software and associated documentation files (the "Software"), to deal in | |
| // the Software without restriction, including without limitation the rights to | |
| // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | |
| // of the Software, and to permit persons to whom the Software is furnished to do | |
| // so. |
| #include <memory.h> | |
| #define _XOPEN_SOURCE_EXTENDED 1 | |
| #include <sys/mman.h> | |
| #include <stdint.h> | |
| #include <stdio.h> | |
| #include <climits> | |
| #include <algorithm> | |
| int main() { |
Bluesky は Twitter の類似サービスとして期待されている分散 SNS の一つです。 Twitter の創設者である Jack Dorsey による出資を受けており、 Bluesky, PBLLC によって開発・運営されています。 Bluesky は現在公式のアプリ・ウェブでは、日本語の UI がなくとっつきにくい部分があるため、ここでは楽しみ方について簡単に説明します。
まずは何にせよ、フォローする人を見つける必要があります。 Bluesky 公式 Web または、公式アプリからログインしている人は、以下の日本語話者カスタムフィード (ユーザーが作成した、独自のタイムライン) Japanese Cluster を見れば、日本語話者が見つかると思います。
とはいえ、このカスタムフィードでは、人が多すぎて何がなんだかと思う人も多いと思うので、今トレンドのポスト (投稿) を取得する方法を説明します。まず、設定からコンテンツ言語を日本語にします。コンテンツ言語は、カスタムフィードにおいて、どの言語のポストを取得するか? という設定になります。左メニューから、 Settings > Content Languages の順にアクセスすると変更できます。
| #import <Quartz/Quartz.h> | |
| #import <Vision/Vision.h> | |
| int main(int argc, const char * argv[]) { | |
| @autoreleasepool { | |
| NSString *target = @"test.pdf"; | |
| CGFloat dpi = 200; | |
| PDFDocument *doc = [[PDFDocument alloc] initWithURL:[NSURL fileURLWithPath:target]]; | |
| NSUInteger pageCount = [doc pageCount]; | |
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>linuxのディスクI/O周りやxfsのソースコードを読めるようになるためのおすすめの参考資料募集中です
— Masahiko Sawada (@masahiko_sawada) June 16, 2023