Skip to content

Instantly share code, notes, and snippets.

View TheFern2's full-sized avatar

Fernando B TheFern2

View GitHub Profile
from pyfirmata import Arduino, util
import time
from eip import PLC
def boolean_read(tag):
'''
simple tag read
'''
return comm.Read(tag)
Name: Flash
Serial: eNrzzU/OLi0odswsqnHLSSzOqDGoca7JKCkpsNLXLy8v1ytJTczVLUotKNFLzs8FAJHYETc=
if anyone wants to thank ETH: 0x527c2aB55b744D6167dc981576318af96ed26676
Thank you!
@TheFern2
TheFern2 / vimrc
Last active July 15, 2019 08:03
My Vimrc Configuration
" General Settings {{{
set nocompatible "vim, not vi
filetype plugin indent on
set number
set tabstop=4
set background=dark
syntax enable
set laststatus=2
" }}}
@TheFern2
TheFern2 / Initial-Server-Setup.md
Last active September 15, 2019 21:30
Droplet Ubuntu 18.04 Notes

Setup

Once droplet is spinning, run through initial server setup:

Initial Server Setup Setup formatted as markdown for future reference

Introduction

When you first create a new Ubuntu 18.04 server, there are a few configuration steps that you should take early on as part of the basic setup. This will increase the security and usability of your server and will give you a solid foundation for subsequent actions.

Note: The guide below demonstrates how to manually complete the steps we recommend for new Ubuntu 18.04 servers. Following this procedure manually can be useful to learn some basic system admi

@TheFern2
TheFern2 / JavaFX-Intellij.md
Created September 12, 2019 01:48
JavaFX Application Deployment

Install Java JDK 11-13

I will be using Java 11 since is the LTS release.

Check current version in path:

java -version

JavaFX 13 and IntelliJ

@TheFern2
TheFern2 / Commits.md
Last active September 25, 2019 23:34
Git Commands for mere mortals

Better commit messages

This is my custom commit message:

# If this commit is applied, it will... (Less than 50 chars)

# Why was this change made?

# How does it address the issue?
@TheFern2
TheFern2 / Bash-Stuff.md
Created September 22, 2019 07:15
Linux Things

Aliases

In order to keep bashrc or bash_profile clean, aliases should go in the bash_aliases file. Add below IF to bashrc.

if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
@TheFern2
TheFern2 / Pip-Dev.md
Last active September 23, 2019 05:50
Pip Packages Development

Install Pip Packages

If you want to test a PIP package located in a local git repository you can do it this way:

pip install git+file:///path/to/your/git/repo
@TheFern2
TheFern2 / Git-Forking-Collabs.md
Last active April 2, 2020 15:03
Git-Collaboration

Workflow for making a patch git

  • Fetch from master
  • Create branch
  • Fix bugs
  • Run unit tests
  • Rev up version
  • Tags
  • Deleting branches