Start the systemd daemon:
sudo systemctl daemon-reload
sudo systemctl start user-api.service
sudo systemctl enable user-api.service
Access to the endpoint:
# site-packages に .pth を1枚だけ設置(これで import 可能に) | |
install -d %{buildroot}%{python3_sitelib} | |
cat > %{buildroot}%{python3_sitelib}/%{srcname}.pth <<'EOF' | |
%{customdir} | |
EOF |
#!/bin/bash | |
find_git_root() { | |
dir="${1:-$PWD}" | |
while [ "$dir" != "/" ]; do | |
if [ -e "$dir/.git" ]; then | |
echo "$dir" | |
return 0 | |
fi | |
dir="$(dirname "$dir")" |
Specify the USB device
lsblk
Mount the device
sudo mkdir -p /mnt/usb
sudo mount /dev/sdb1 /mnt/usb
import React, { useState, useEffect } from 'react'; | |
import axios from 'axios'; | |
const HelloComponent = () => { | |
const [helloMessage, setHelloMessage] = useState('Loading...'); | |
useEffect(() => { | |
const fetchData = async () => { | |
try { | |
const graphqlQuery = { |
import requests | |
# GitHub APIトークンとリポジトリ情報 | |
GITHUB_TOKEN = 'your_github_token' | |
REPO_OWNER = 'your_owner_name' | |
REPO_NAME = 'your_repo_name' | |
HEADERS = {'Authorization': f'token {GITHUB_TOKEN}'} | |
# 特定のバージョン間でマージされたPRを取得 | |
def get_merged_prs(base_branch='main'): |
Name: example-package | |
Version: 1.0 | |
Release: 1%{?dist} | |
Summary: An example RPM package | |
License: GPL | |
URL: http://www.example.com | |
Source0: example.txt | |
BuildArch: noarch |
sudo yum install rpm-build python3-devel
pip install setuptools_rust
PyPi package の download
Note: This article is only for amazon.co.jp.
Upload your pdf via Send to Kindle (https://www.amazon.co.jp/sendtokindle) app.
Remove an item listed in personal documents.
FROM node:14 | |
RUN apt-get update \ | |
&& npm install -g @google/clasp -g \ | |
WORKDIR /workdir | |
VOLUME /workdir | |
SHELL ["/bin/bash", "-c"] |