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
// 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'); |
#!/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. |
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"globals" : | |
{ | |
"alwaysShowTabs" : true, | |
"defaultProfile" : "{}", | |
"initialCols" : 120, | |
"initialRows" : 30, | |
"keybindings" : | |
[ |
#!/bin/bash | |
/usr/bin/yakuake & | |
sleep 1 | |
function instruct { | |
cmd="qdbus org.kde.yakuake $1" | |
eval $cmd &> /dev/null | |
sleep 0.1 | |
} |
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 |
/* | |
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 |
#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* |