Skip to content

Instantly share code, notes, and snippets.

View culurciello's full-sized avatar

Eugenio Culurciello culurciello

View GitHub Profile
@culurciello
culurciello / pytorchcheat.txt
Created April 22, 2017 11:44
pytorch info
http://pytorch.org/
https://discuss.pytorch.org/
https://github.com/pytorch/
https://github.com/bfortuner/pytorch-cheatsheet/blob/master/pytorch-cheatsheet.ipynb
<?xml version="1.0"?>
<robot name="visual">
<!-- E. Culurciello, March 2021 -->
<!-- basic 2-fingers gripper -->
<link name="base">
<inertial>
<mass value="1"/>
<inertia ixx="100" ixy="0" ixz="0" iyy="100" iyz="0" izz="100" />
<origin/>
</inertial>
@culurciello
culurciello / my-pi-temp.sh
Last active January 12, 2024 18:54
Display the ARM CPU and GPU temperature of Raspberry Pi
#!/bin/bash
# Script: my-pi-temp.sh
# Purpose: Display the ARM CPU and GPU temperature of Raspberry Pi
# -------------------------------------------------------
cpu=$(</sys/class/thermal/thermal_zone0/temp)
echo "--- Measure Raspberry Pi CPU and GPU temperature ---"
echo "$(date) @ $(hostname)"
echo "-------------------------------------------"
echo "GPU $(vcgencmd measure_temp)"
echo "CPU temp=$((cpu/1000))'C"
@culurciello
culurciello / github2llm.py
Created February 21, 2024 20:40
a python script that can recursively parse a directory of files with specific files extensions and copy all the files into a text string. Must be able to take as argument the directory string, and must have a variable to specify multiple file extensions. It should save the text file as prompt.txt
# E. Culurciello, February 2024
# generated with Gemini:
# generate a python script that can recursively parse a directory of files with specific files extensions and copy all the files into a text string. Must be able to take as argument the directory string, and must have a variable to specify multiple file extensions. It should save the text file as prompt.txt
# run as: python github2llm.py my_dir/ "swift,json,xcodeproj,plist"
import os
import sys
def parse_directory(directory, extensions):