Skip to content

Instantly share code, notes, and snippets.

@mp107
mp107 / intel_wlan_temperature.sh
Created December 4, 2020 17:07
Intel WLAN (iwlwifi) temperature
# WLAN temp.
# Find thermal zone ID
# cat /sys/class/thermal/thermal_zone*/type
# ...
# iwlwifi
# ...
# Read value
echo "WLAN temp.: $(expr $(cat /sys/class/thermal/thermal_zone1/temp) / 1000) C"
@mp107
mp107 / wine-msoffice-2007-extension-csv.desktop
Last active January 17, 2020 12:54
Microsoft Office 2007 Wine extensions handlers
[Desktop Entry]
Type=Application
Name=Microsoft Office Excel (csv)
MimeType=text/csv
Exec=env WINEPREFIX="/home/mp/.wine_msoffice_2007" wine start /ProgIDOpen Excel.CSV %f
NoDisplay=true
StartupNotify=true
#!/bin/bash
# Functions
put_directory()
{
SUBVOL_DIRECTORY="$1"
USER_DIRECTORY="$2"
echo "Put directory $SUBVOL_DIRECTORY in $USER_DIRECTORY"
if [ -e "${SUBVOL_DIRECTORY}" ]
0. Use on your own responsibility.
0. Method 1.
1. Download file jdk-6u45-linux-x64.bin
2. Move jdk-6u45-linux-x64.bin to /var/cache/oracle-jdk6-installer/ location
3. Download file oracle-java6-installer_6u45-0~webupd8~8_all.deb
4. sudo dpkg -i oracle-java6-installer_6u45-0~webupd8~8_all.deb
0. Method 2.
1. Download file jdk-6u45-linux-x64.bin
2. Move jdk-6u45-linux-x64.bin to /var/cache/oracle-jdk6-installer/ location