<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-0000000-00']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
Everyone hates antivirus software – except IT departments.
Sophos does a particularly annoying thing on my work MacBook... some process (I think it's called "Sweep") constantly changes the permissions on /usr/local/bin
so that I can't update or install Homebrew packages.
This unlocks things temporarily:
sudo chown -R $(whoami) /usr/local/bin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Calculating Pi with the Leibniz formula: | |
1 1 1 1 π | |
1 - ––– + ––– - ––– + ––– - ... = ––– | |
3 5 7 9 4 | |
Repository for the upcoming Gymnasium course.
sudo apt-get remove --purge libreoffice*
sudo apt-get clean
sudo apt-get autoremove
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
+-----+ | |
+----[PWR]-------------------| USB |--+ | |
| +-----+ | | |
| GND/RST2 [ ][ ] | | |
| MOSI2/SCK2 [ ][ ] A5/SCL[ ] | C5 | |
| 5V/MISO2 [ ][ ] A4/SDA[ ] | C4 | |
| AREF[ ] | | |
| GND[ ] | | |
| [ ]N/C SCK/13[ ] | B5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# getload | |
# | |
# This miniscule script is a hack to return the current | |
# CPU load. It is simply stripping off the first | |
# value returned from loadavg. | |
cat /proc/loadavg | head -n1 | cut -d " " -f1 | |
exit 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# cpustatus | |
# | |
# Prints the current state of the CPU like temperature, voltage and speed. | |
# Temperature is reported in degrees Fahrenheit (F) - converting from C requires bc | |
# CPU speed is calculated in megahertz (MHz). | |
function convert_to_MHz { | |
let value=$1/1000 | |
echo "$value" |
sudo apt-get purge wolfram-engine