Note: I configured this thinkfan setup for my old Thinkpad w520 on Ubuntu 17.10.
Install lm-sensors and thinkfan.
sudo apt-get install lm-sensors thinkfan
| #Go to sudo and update repo | |
| sudo su | |
| #Replace .rs in sources.list | |
| sed -i 's/rs.//g' /etc/apt/sources.list | |
| apt update | |
| #Remove unused things | |
| apt purge firefox* libreoffice* gnome-orca* deja-dup* atril* rhythmbox* pidgin* thunderbird* plank* pluma* shotwell* synapse* |
| /* | |
| DESCRIPTION | |
| ----------- | |
| Use NodeJS to read RFID ids through the USB serial stream. Code derived from this forum: | |
| http://groups.google.com/group/nodejs/browse_thread/thread/e2b071b6a70a6eb1/086ec7fcb5036699 | |
| CODE REPOSITORY | |
| --------------- | |
| https://gist.github.com/806605 |
| Learn more or give us feedback | |
| # This is an example on how to send and receive data from the Arduberry via Serial | |
| # | |
| # Karan Nayan | |
| # Initial Date: 23 May 2014 | |
| # http://www.dexterindustries.com/ | |
| #!/usr/bin/python | |
| import serial | |
| ser = serial.Serial('/dev/ttyAMA0', 9600, timeout = 0) #Open the serial Port | |
| ser.flushInput() # Clear the input buffer |
| #!/bin/bash | |
| /usr/bin/yakuake & | |
| sleep 1 | |
| function instruct { | |
| cmd="qdbus org.kde.yakuake $1" | |
| eval $cmd &> /dev/null | |
| sleep 0.1 | |
| } |
| { | |
| "$schema": "https://aka.ms/terminal-profiles-schema", | |
| "globals" : | |
| { | |
| "alwaysShowTabs" : true, | |
| "defaultProfile" : "{}", | |
| "initialCols" : 120, | |
| "initialRows" : 30, | |
| "keybindings" : | |
| [ |
| #!/bin/bash -e | |
| # Install XRDP. | |
| sudo apt install -y xrdp | |
| #sudo sed -e 's/^new_cursors=true/new_cursors=false/g' \ | |
| # -i /etc/xrdp/xrdp.ini | |
| sudo systemctl enable xrdp | |
| sudo systemctl restart xrdp | |
| # Load Ubuntu config. |
| // an example to create a new mapping `ctrl-y` | |
| // mapkey('<Ctrl-y>', 'Show me the money', function() { | |
| // Front.showPopup('a well-known phrase uttered by characters in the 1996 film Jerry Maguire (Escape to close).'); | |
| // }); | |
| // an example to remove mapkey `Ctrl-i` | |
| unmap('<Ctrl-i>'); | |
| //tab history | |
| unmap('F'); |
| #!/usr/bin/env bash | |
| URL=$1 | |
| youtube-dl -f 'bestaudio' -x --audio-format 'mp3' --audio-quality '0' --embed-thumbnail --add-metadata $URL |
| ### Fading | |
| fading = true; | |
| fade-in-step = 0.06; | |
| fade-out-ste = 0.06; | |
| fade-delta = 3; | |
| fade-exclude = [ | |
| "class_g = 'yakuake'" | |
| ] | |
| ### Opacity |