全部 新建

user:thomas 由使用者建立的 Gists

title:mygist Gists 的標題

filename:myfile.txt Gists 的檔案名稱

extension:yml Gists 的副檔名

language:go Gists 的程式語言

topic:homelab gists with given topic

登錄


全部 新建 登錄

所有 Gists

倒序排序 創建
順序排序 創建
倒序排序 更新
順序排序 更新
paramah's Avatar

paramah / import.py

0 喜歡
0 分支
1 檔案
最後活躍 1748028461
1 import csv
2 import requests
3
4 CSV_PATH = 'PATH_TO/pocket/part_000000.csv' # getpocket export file
5 API_URL = 'http://shiori.para.net/api/bookmarks'
6 HEADERS = {
7 'Content-Type': 'application/json',
8 'Authorization': 'Bearer TOKEN'
9 }
paramah's Avatar

paramah / gist:179909e0402740a2b7fead2220a6de8e

0 喜歡
0 分支
1 檔案
最後活躍 1747308323
1 #!/bin/bash
2
3 FILE=".trivyignore"
4 TMP_FILE="$(mktemp)"
5 USER_AGENT="TrivyIgnoreAnnotator"
6
7 while IFS= read -r line; do
8 trimmed="$(echo "$line" | xargs)" # usuń spacje z początku i końca
9 if [[ "$trimmed" =~ ^CVE-[0-9]{4}-[0-9]+$ ]]; then
10 echo "Pobieram opis dla $trimmed..."
paramah's Avatar

paramah / gist:d3184b65820143018964fefbcc363e61

0 喜歡
0 分支
1 檔案
最後活躍 1741686418
1 package conftest
2
3 import json
4
5 # Funkcja do sprawdzania struktury JSON
6 is_valid_json(input) {
7 # Sprawdź, czy input jest łańcuchem znaków
8 is_string(input)
9
10 # Parsuj JSON
paramah's Avatar

paramah / gist:5f5d6c00f9784245a1faa469d251cb80

0 喜歡
0 分支
1 檔案
最後活躍 1740951564
1 test
上一頁 下一頁

由 Opengist 提供支持 ⋅ Load: 189ms⋅

繁體中文
Čeština Deutsch English Español Français Magyar Italiano Polski Português Русский Türkçe Українська 中文 繁體中文