This file contains 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
; Disables Capslock | |
SetCapsLockState, AlwaysOff | |
; Allows navigation using capslock + IJKL while keeping other modifiers intact like shift and ctrl | |
Capslock & I::Send {Blind}{Up} | |
Capslock & K::Send {Blind}{Down} | |
; Capslock & J::Send {Blind}{Left} | |
; Capslock & L::Send {Blind}{Right} |
This file contains 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
// To view the default settings, hold "alt" while clicking on the "Settings" button. | |
// For documentation on these settings, see: https://aka.ms/terminal-documentation | |
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"defaultProfile": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}", | |
"profiles": |
This file contains 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
#r "nuget: OxyPlot.Core.Drawing, 2.0.0" | |
using OxyPlot; | |
using OxyPlot.Axes; | |
using OxyPlot.Core.Drawing; | |
using OxyPlot.Series; | |
/* export functions */ | |
static PlotModel ExportToPng(this PlotModel plot, string file, int width = 1024, int height = 768) | |
{ | |
PngExporter.Export(plot, file, width, height, OxyColors.White); |
This file contains 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 | |
# RasPiComm+ Example Project LED Array | |
# prints general info | |
function print_info() { | |
echo "RasPiComm+ Example Project 1" | |
echo "Controlling a LED-Array with a potentiometer" | |
echo "" | |
} |
This file contains 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 | |
# the url of the campaign | |
CAMPAIGN="raspicommplus-all-in-one-raspberry-pi-extension" | |
# use the first argument as the campaign name | |
if [[ "$1" != "" ]]; then | |
CAMPAIGN="$1" | |
fi |
This file contains 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 | |
# free-ttyAMA0 script written by mdk | |
# http://www.amescon.com | |
# this script configures the raspbian image to not use the ttyAMA0 port for debugging purposes and makes it useable in userland | |
function configure_ttyAMA0_fix_cmdlinetxt() { | |
local file="/boot/cmdline.txt" |
This file contains 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/sh | |
# The content of the raspberry pi revision | |
# Content of the file /etc/init.d/rtc.sh | |
RTC_SCRIPT_HEADER="#! /bin/sh\n\n### BEGIN INIT INFO\n# Provides: rtc\n# Required-Start: $remote_fs $syslog\n# Required-Stop: $local_fs\n# Default-Start: 2 3 4 5\n# Default-Stop: 0 1 6\n# Short-Description: Creates the real time clock i2c device when executed\n### END INIT INFO\n\n# Activate the real time clock\n" | |
RTC_SCRIPT_BODY_REVISION1="echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-0/new_device" | |
RTC_SCRIPT_BODY_REVISION2="echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device" | |
RTC_SCRIPT_REVISION1=$RTC_SCRIPT_HEADER$RTC_SCRIPT_BODY_REVISION1 |
This file contains 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
# | |
# This script installs the RasPiComm Rs-485 Device Driver that is packaged as a debian package from http://packages.amescon.com | |
# | |
# Check if http://packages.amescon.com is already added to the list of package servers | |
INSTALLED=`cat /etc/apt/sources.list | grep packages.amescon.com -c` | |
if [ $INSTALLED = 0 ] ; then | |
echo Installing http://packages.amescon.com as a package source | |
# Add http://packages.amescon.com to the apt-get package servers | |
echo "deb http://packages.amescon.com/ ./" >> /etc/apt/sources.list |
This file contains 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
# | |
# This shell script configures the gpio's for use with joystick | |
# | |
# Export the gpio's into the file system | |
echo 4 > /sys/class/gpio/export | |
echo 22 > /sys/class/gpio/export | |
echo 23 > /sys/class/gpio/export | |
echo 24 > /sys/class/gpio/export | |
echo 25 > /sys/class/gpio/export |