Skip to content

Instantly share code, notes, and snippets.

View robertripoll's full-sized avatar
👨‍💻
Hacking

Robert Ripoll robertripoll

👨‍💻
Hacking
View GitHub Profile
@robertripoll
robertripoll / get_gpt_conversations_title.py
Created January 14, 2024 12:32
Python script to retrieve the title of ChatGPT conversations
#!/usr/local/bin/python
import sys
import requests
from bs4 import BeautifulSoup
import json
def get_data_object(url) -> dict | None:
try:
# Fetch HTML content from the URL
@robertripoll
robertripoll / Print Bike Document.scpt
Created October 9, 2023 19:40
Print Bike document with Chrome
-- Prompt user to choose a file
set theFile to choose file with prompt "Select your file:"
-- Create a temporary path with .html extension
set filePath to POSIX path of theFile
set tempFilePath to filePath & ".temp.html"
-- Copy the original file to the temporary path
do shell script "cp " & quoted form of filePath & " " & quoted form of tempFilePath
@robertripoll
robertripoll / BarcodeGeneratorPNG.php
Created July 12, 2017 10:01
Barcode generator in PNG format with text in the bottom
public function getBarcode($code, $type, $widthFactor = 2, $totalHeight = 30, $color = array(0, 0, 0))
{
$barcodeData = $this->getBarcodeData($code, $type);
// calculate image size
$width = ($barcodeData['maxWidth'] * $widthFactor);
$height = $totalHeight;
if (function_exists('imagecreate')) {
// GD library
@robertripoll
robertripoll / README.md
Last active September 23, 2020 18:08
Telnet Server C#