Skip to content

Instantly share code, notes, and snippets.

@maejok-xx
maejok-xx / ForkRepos.py
Last active August 29, 2023 03:56
Easily Fork multiple GitHub repositories (and set them private) using GitHub API
# Author: https://github.com/maej20
# ---- repolist.txt EXAMPLE ----
#
# user1/repo-name
# # someoneelse/skipped-repo-name
# user524/you-get-the-repo
# CoolDude_69420/For_Good-Measure-repo
#
# -------- END EXAMPLE --------
@maejok-xx
maejok-xx / cpu_temp.sh
Last active June 10, 2020 22:39
Linux CPU Temperature Shell Script
#!/bin/bash
cpu_temp=$(</sys/class/thermal/thermal_zone0/temp)
cpu_temp_c=$((cpu_temp/1000))
cpu_temp_f=$(echo "scale=0;((9/5) * $cpu_temp_c) + 32" | bc)
echo "${cpu_temp_c}C / ${cpu_temp_f}F"