Look at LSB init scripts for more information.
Copy to /etc/init.d:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)| # use ctrl+left/right arrow keys to jump over words | |
| "\e[5C": forward-word | |
| "\e[5D": backward-word | |
| # enable autocomplete (using up/down arrow keys) | |
| "\e[B": history-search-forward | |
| "\e[A": history-search-backward | |
| # ignore case when autocomplete file/directory name using tab | |
| set completion-ignore-case on |
| set nocompatible "Use vim rather than vi settings | |
| " useful commands for ctags - ]/[i next text under cursor, ]/[d difinition down/up, capital all in file in preview | |
| "================================= | |
| " --- OS SPECIFIC SETTINGS ---- " | |
| "================================= | |
| if has("win32") | |
| source $VIMRUNTIME/vimrc_example.vim | |
| source $VIMRUNTIME/mswin.vim |
| #!/bin/sh | |
| # @j_whittington | |
| # | |
| # Script to convert makefile generate from atmel studio 7 (windows) | |
| # to linux path, assuming that you have gcc on PATH | |
| # | |
| # based on https://gist.github.com/theterg/6082389 | |
| # GPL |
| var SerialPort = require('serialport'); | |
| var port = new SerialPort('/dev/ttyUSB0', { | |
| baudRate: 4800 | |
| }); | |
| port.on('open', function() { | |
| port.write(new Buffer(256), function(err) { | |
| if (err) { | |
| return console.log('Error on write: ', err.message); | |
| } |
Look at LSB init scripts for more information.
Copy to /etc/init.d:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)| import os,sys | |
| # Get folder | |
| if len(sys.argv) > 1: | |
| folder = sys.argv[1] | |
| else: | |
| # folder = os.path.dirname(os.path.realpath(__file__)) | |
| folder = os.getcwd() | |
| convert = { |
| #Colors | |
| #======= | |
| #enables color in the terminal bash shell export | |
| CLICOLOR=1 | |
| #sets up the color scheme for list export | |
| LSCOLORS=gxfxcxdxbxegedabagacad | |
| # for a colourful vim | |
| export TERM='xterm-256color' | |
| #=============COLORS================= |
| #include <Arduino.h> | |
| #include <Wire.h> | |
| #define COLS 96 | |
| #define ROWS 16 | |
| #define FRAME_SIZE ((ROWS * COLS) / 8) | |
| #define COL_BYTES FRAME_SIZE / 8 | |
| #define FOOTER_CHAR 0x03 |
| obj-m += gs_usb.o | |
| all: | |
| make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules | |
| clean: | |
| make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean | |
| reload: gs_usb.ko | |
| sudo rmmod gs_usb.ko | |
| sudo insmod gs_usb.ko |
| import datetime | |
| import statistics | |
| import plotly.express as px | |
| import pandas as pd | |
| from cantools.logreader import Parser | |
| # path to comparison files | |
| software_file = "/Users/john/Desktop/software-timestamps.log" | |
| hardware_file = "/Users/john/Desktop/hardware-timestamps.log" |