ネットで探したり chatGPT に聞いたりして作りました。
json | jsonc | json5 | jsonl | ndjson | |
---|---|---|---|---|---|
とは? | みんな知ってる JSON。 | コメントが書ける JSON |
#!/usr/bin/env -S bash -c "docker run -p 8080:8080 -it --rm \$(docker build --progress plain -f \$0 . 2>&1 | tee /dev/stderr | grep -oP 'sha256:[0-9a-f]*')" | |
# syntax = docker/dockerfile:1.4.0 | |
FROM node:20 | |
WORKDIR /root | |
RUN npm install sqlite3 |
ネットで探したり chatGPT に聞いたりして作りました。
json | jsonc | json5 | jsonl | ndjson | |
---|---|---|---|---|---|
とは? | みんな知ってる JSON。 | コメントが書ける JSON |
# esp32s2-test.py -- small WiFi test program for ESP32-S2 CircuitPython 6 | |
# taken from https://www.reddit.com/r/circuitpython/comments/ianpm8/using_wifi_when_running_on_esp32s2saola1_board/ | |
# | |
import time | |
import ipaddress | |
import wifi | |
import socketpool | |
import ssl | |
import adafruit_requests |
Git 2.26.0以下*1には、細工したリポジトリをgit clone
したときに、
そのユーザーのCredential(たとえばGitHub.comをcloneするときに使う認証情報)を奪い取れる脆弱性があります。
📝 取得できる認証情報は credential.helper
の設定に依存する
既にPoC(検証するためのコード)もあり、結構簡単なので是非Gitを2.26.1以上にアップデートしましょう。 git submoduleを使うと見た目ではわかりにくい攻撃もできるので、「気をつける」では回避は難しいです。
class TooManyTriesException(BaseException): | |
pass | |
[ Update 2025-03-24: Commenting is disabled permanently. Previous comments are archived at web.archive.org. ]
Most of the terminal emulators auto-detect when a URL appears onscreen and allow to conveniently open them (e.g. via Ctrl+click or Cmd+click, or the right click menu).
It was, however, not possible until now for arbitrary text to point to URLs, just as on webpages.
import sys, importlib | |
from pathlib import Path | |
def import_parents(level=1): | |
global __package__ | |
file = Path(__file__).resolve() | |
parent, top = file.parent, file.parents[level] | |
sys.path.append(str(top)) |
# VERSION 1.0.4 | |
# Author: @madhavajay | |
# This currently works for iOS and watchOS in the Simulator and Devices | |
# Changes | |
# Using ${TOOLCHAIN} in two places now | |
# Added double quotes " around paths | |
# Fixed watchOS Issues | |
# Instructions iOS |
sudo curl -o /usr/local/bin/imgcat -O https://raw.githubusercontent.com/gnachman/iTerm2/master/tests/imgcat && sudo chmod +x /usr/local/bin/imgcat | |
# If you have a better way to fix the permissions, comment below! |