Skip to content

Instantly share code, notes, and snippets.

@hyuki
hyuki / chat.md
Created March 17, 2023 01:12
ChatGPT と結城浩の対話(矛盾や反復を含んだ対話によってAIと人間の識別は行えるか)

こんにちは。今後、GPT-4を使ったアプリケーションやサービスがたくさん登場してくると思います。その中には、たとえばSNSを利用したbotもたくさん出てくるでしょう(現在でもすでにありますけれど)。そこで質問なんですが、SNSでおしゃべりしている相手が、人間なのか、GPT-4などの技術を使ったAIなのかを識別するにはどのような会話をしてみればいいでしょうか。一般的なAIでは難しいかもしれないので、GPT-4に限ってもいいです。あなたの考えを聞かせてください。

GPT-4のような高度なAIと人間を識別するのは、時に難しいことがあります。しかし、いくつかの方法を試してみることで、相手が人間かAIかを見極めることができるかもしれません。

  1. 複雑な感情やニュアンスについて尋ねる: AIは感情やニュアンスを理解するのが苦手です。複雑な感情を表現する文章やシチュエーションについて尋ねてみて、その反応を見てください。
@muratamuu
muratamuu / async-timer.md
Last active February 15, 2024 10:21
Rust で非同期タイマー処理

tokio の例

準備

[dependencies]
tokio = { version = "1.23.0", features = ["time", "macros", "rt-multi-thread"] }

または

@camerahacks
camerahacks / CM4-Provision.md
Last active May 30, 2023 10:44
CM4 Provision System Postinstall Script

CM4 Provision System Postinstall Script

{DPHacks} a website for everything camera hack related.

Postinstall script to be used with Raspberry Pi's CM Provisioning System (https://github.com/raspberrypi/cmprovision)

This script has been tested with Raspberry Pi OS Bullseye edition realeased April 8th 2022 and after.

It takes advantage of the user configuration file.

Instructions

@take4blue
take4blue / flutterCreateIcon.ps1
Created February 23, 2022 01:10
Flutterのランチャーアイコンを単一?のイメージから生成する
# Flutter専用のアイコン画像作成コマンド
# 変換元ファイルや変換先ファイルなどすべて固定
# 変換元
# assets/icons/base.png 1536x1536ファイル android/web/Windows用の元ファイル
# assets/icons/windows.png 1536x1536ファイル windows用ファイル(このファイルがなければbase.pngから作成する)
# assets/icons/ios.png 1536x1536ファイル iOS用の元ファイル
# 変換先
# Android(フォルダがある場合に変換する)
# android\app\src\main\res\mipmap-hdpi\ic_launcher.png 72x72
# android\app\src\main\res\mipmap-mdpi\ic_launcher.png 48x48
@Dids
Dids / raw_img_gpt_efi.md
Last active January 11, 2024 12:25
Working with raw disk images with GPT + EFI partition in linux

What is the purpose of this guide?

I originally wanted to create bootable disks for UEFI (i)PXE booting, meaning I could directly boot premade disk images over the network, no matter what they may contain.

While this guide serves my purpose well, it's also generic enough to be extended to almost any use case. For example, you might use it as temporary or even portable storage, mountable across different operating systems, or you might use it as a disk image for a virtual machine.

DISCLAIMER: Be very careful with the commands listed below, as you could potentially not only cause data loss, but even prevent your operating system from booting, no matter how unlikely either of those may be. Pay attention to the commands, comments and differences between the guide and your local environment.


@froop
froop / rsyslog-omfwd-NoActionQueue.md
Last active January 24, 2023 07:06
[rsyslog] メッセージ出力のタイミングが遅延する

[rsyslog] メッセージ出力のタイミングが遅延する

事象

rsyslog パッケージの omfwd モジュールにより、TCP ベースの syslog 転送 [^1] が発生した際に、ソケットから制御が戻るまでの間、他のアクションでも出力が待たされる(最大で数分)。 例えば、デフォルトの /etc/rsyslog.conf の場合、下記ファイルへの出力が遅延する。

  • /var/log/messages
@psyburr
psyburr / Capture_Desktop.md
Last active September 7, 2023 19:29
Quick How-To guide on recording PulseAudio with ffmpeg

[[[ Capturing your Desktop / Screen Recording ]]]

[[PageOutline(1, Contents)]]

Here are a few solutions for capturing your desktop and recording a video of your screen with ffmpeg. (A Chinese version of this page is [[Capture/Desktop中文版本|also available]].)

For the sake of brevity, these commands do not specify any additional encoder settings. For more info about H.264 encoding, see [[Encode/H.264|the H.264 encoding guide]].

@tana3n
tana3n / RaspberryPi3-on-Realtek-WLAN.md
Last active June 7, 2022 09:42
RaspberryPi 3で🦀の無線LANを動かす

Raspberry Pi 3で🦀のWLANを動かしたメモ.md

Raspbian上で確認(Ver未確認) また、

sudo apt-get install raspberrypi-kernel-headers build-essential git dkms
sudo apt-get upgrade

してある前提です。

TP-Link WN722N (V2)

一応いっておくけどV1-V3間でモジュール全部違うっぽいので別の人は調べてね

@weibeld
weibeld / 10-use-case-1.yml
Last active April 19, 2023 22:39
GitHub Actions example workflow — Use Case 1
name: release
on:
release:
types: [published]
jobs:
main:
runs-on: ubuntu-latest
env:
ARCHIVE_NAME: ${{ github.event.repository.name }}-${{ github.event.release.tag_name }}
steps:
@Ah-da-Coder
Ah-da-Coder / state.py(コメント付き)
Created March 13, 2020 14:41
StateパターンのPythonコード
class State():
"""Stateパターンの抽象クラス
"""
def action(self):
"""動作メソッド
Returns:
None
"""