networkimprov / pacman-watch Goto Github PK
View Code? Open in Web Editor NEWMonitor Arch Linux updates for trouble.
Monitor Arch Linux updates for trouble.
Avoid HTTPS.
Generate single-use password params for URL.
Possibly http://en.wikipedia.org/wiki/S/KEY
add function to retrieve the pacman-watch status URL
provide command-line switch for pacman-watch
if switch on and URL returns error, print error and exit
File names: client-{open,close}.{sh,service,timer} -- no need for 'pacman-watch' prefix
Header comments: follow example of service.go
client-open.sh: maybe
if pacman -Qu | grep common_word > /dev/null; then ...
Since client-open isn't a service unto itself, could client-open .service & .timer files be combined?
Provide an install script instead of commands in readme.
Provide client.conf file for shell vars: host, client, password, etc.
Commit message template: {add,fix,clean}: {server,client} description
add = new feature, fix = repair feature, clean = polish without additions or fixes
Run scripts found in a test/ directory after reboot, before client-close.
First script checks log files for update-related errors.
For any command that hits the network, retry every minute for network errors.
After 20 retries to /{open,close}, give up (update is stale by then).
Server will allow /open, failed /close, /open
Disable .timer during open/restart/test/close sequence (server expects single-threaded client)
Hey, I started a new server instance with: ./service test and run the following curl commands:
[self@anvl pacman-watch]$ curl 'http://192.168.0.100:4321/open?client=tom&pw=password'
ok
tom@2014-10-30T21:45:16-07:00
[self@anvl pacman-watch]$ curl 'http://192.168.0.100:4321/close?client=tom@2014-10-30T21:45:16-07:00&pw=password'
error
already closed
I have never used the "tom" client before.
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.