Todos Nuevo

user:thomas gists creados por el usuario

title:mygist gists con el título indicado

filename:myfile.txt gists que contienen archivos con el nombre indicado

extension:yml gists que contienen archivos con la extensión indicada

language:go gists que contienen archivos con el lenguaje indicado

topic:homelab gists with given topic

Iniciar sesión


Todos Nuevo Iniciar sesión

Todos los gists

Recientemente creado
Menos reciente creado
Recientemente actualizado
Menos reciente actualizado
paramah's Avatar

paramah / import.py

0 gustos
0 bifurcaciones
1 archivos
Última actividad 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 gustos
0 bifurcaciones
1 archivos
Última actividad 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 gustos
0 bifurcaciones
1 archivos
Última actividad 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 gustos
0 bifurcaciones
1 archivos
Última actividad 1740951564
1 test
Siguiente Anterior

Desarrollado por Opengist ⋅ Load: 279ms⋅

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