frc1418 / de Goto Github PK
View Code? Open in Web Editor NEW:shell: A helpful CLI tool for deploying to FRC robots.
License: MIT License
:shell: A helpful CLI tool for deploying to FRC robots.
License: MIT License
It's not a great idea to make users store passwords for their networks in environment variables or have to handle them at all. We should at least handle encrypted passwords.
Right now we reconnect to whichever network we started on, but try to use the same PSK no matter what. This works fine for me since I'm usually at school and only need to reconnect to FCCPS-STUDENT, but it's not a great implementation.
Currently it is still "dep.7"
We might want or need to use these as an alternative to the Thunderbolt-ethernet adapters.
It just feels sort of off to ask for passwords first.
We should just have another environment variable (DEPLOY_ROBOT_NETWORK_SSID
, probably) rather than hardcoding it to 1418
.
I created a tool called wif
over the summer, which handles network switching with ease. Supporting switching with that might make things easier in terms of credential management and the like.
Right now make
puts the program into /usr/local/bin
. This is common practice, but that directory by default requires users to have root/sudo access.
A better option would be to put it in ~/.local/bin
, which is writable without root (by the owner of the home directory, of course).
The issue with this is that the $PATH
variable doesn't contain that directory by default on most systems. We'd need to check that that directory is in the path and warn the user if necessary that they need to add it.
The content is on the manpage right now.
We still use names formatted as DE_WHATEVER_THE_NAME_IS
. There are two things wrong with this:
DE_
for clarification at the starting of each name.For this, you will likely need to find a way to iterate through each variable, ask the user for the value, and store it. Alternatively (perhaps this would be easier), you could just cat an empty config into ~/.de
and open it in the user's $EDITOR
for them to write to manually. Choose whatever you think is best.
This is a way we could potentially make things more generalized than naming enX
every time. airport
will automatically give you the WiFi device.
There may be a name for Ethernet (-over-Thunderbolt) as well, gotta look into that.
As much as bash scripts are fun, we may want to consider a rewrite in Python or another language. It would be a complicated process, but it might help with some other issues.
Having people set a bunch of environment variables is an impractical way to handle configuration. It might be better if we store all the configuration information in a dotfile in root or something like that.
This tool has a naming conflict with golang/dep.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.