Skip to content

Instantly share code, notes, and snippets.

View crnisamuraj's full-sized avatar

Vudu Ronin crnisamuraj

  • Serbia
View GitHub Profile
@crnisamuraj
crnisamuraj / surf-keys.conf
Created October 28, 2020 12:29
Surfing Keyes 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');
@crnisamuraj
crnisamuraj / install-xrdp.sh
Last active February 5, 2025 16:58
install-xrdp-kde
#!/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.
@crnisamuraj
crnisamuraj / setup.md
Created August 4, 2020 12:21 — forked from Yatoom/setup.md
Thinkfan configuration

Thinkfan setup

Note: I configured this thinkfan setup for my old Thinkpad w520 on Ubuntu 17.10.

1. Install necessary programs

Install lm-sensors and thinkfan.

sudo apt-get install lm-sensors thinkfan
@crnisamuraj
crnisamuraj / profiles.json
Created March 26, 2020 19:29
Windows Terminal 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
}
@crnisamuraj
crnisamuraj / ReadDataViaSerialPort.js
Created November 23, 2019 13:35
ReadDataViaSerialPort.js
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
@crnisamuraj
crnisamuraj / nodejs-rfid.js
Created November 23, 2019 13:28 — forked from karlosgliberal/nodejs-rfid.js
Use NodeJS to read RFID ids through the USB serial stream.
/*
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
@crnisamuraj
crnisamuraj / ubuntu-mate-install.log
Last active September 14, 2017 12:32 — forked from mokiding/ubuntu-install.log
What i do after installing of ubuntu-mate
#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*