All New

user:thomas gists created by user

title:mygist gists with given title

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

Login


All New Login

All gists

Recently created
Least recently created
Recently updated
Least recently updated
paramah's Avatar

paramah / import.py

0 likes
0 forks
1 files
Last active 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 likes
0 forks
1 files
Last active 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 likes
0 forks
1 files
Last active 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 likes
0 forks
1 files
Last active 1740951564
1 test
Newer Older

Powered by Opengist ⋅ Load: 167ms⋅

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