Skip to content

Instantly share code, notes, and snippets.

View MestreLion's full-sized avatar

Rodrigo Silva MestreLion

  • Rio de Janeiro, Brazil
  • 10:18 (UTC -03:00)
View GitHub Profile
MestreLion /
Last active April 17, 2021 01:55 — forked from geerlingguy/
Raspberry Pi CPU temperature and throttling test script
# Raspberry Pi stress CPU temperature measurement script.
# Download this script (e.g. with wget) and give it execute permissions (chmod +x).
# Then run it with ./ [run_name]
# Variables.
#!/usr/bin/env bash
echo "Determining OS..."
if [[ "$(uname -s)" == "Linux" ]]; then
downloader="wget --no-check-certificate -q -O"
natives="libjinput-linux libjinput-linux64 liblwjgl liblwjgl64 libopenal libopenal64"
elif [[ "$(uname -s)" == "Darwin" ]]; then
MestreLion /
Created November 8, 2012 07:07 — forked from jeffery/
Update Timestamp of files in Checked-out Git Repository
#!/bin/bash -e
# Helper script to update the Last modified timestamp of files in a Git SCM
# Projects working Copy
# When you clone a Git repository, it sets the timestamp of all the files to the
# time when you cloned the repository.
# This becomes a problem when you want the cloned repository, which is part of a
# Web application have a proper cacheing mechanism so that it can re-cache files