I don't have a link as it was an internal project but it was a simple ASP.NET MVC app that interfaced with Yubikey (a 2 factor dongle) and Active Directory. It would set the Yubikey password to the Active Directory for a user which would then be used to authenticate users when they logged into the network. It wasn't much work but saved the company about $20k, which was the cost of the commercial version the company was looking into.
Osh (Object SHell) is a python application giving you a set of Linux like commands which can be composed similar to pipes. However, it is objects, not strings, that are passed from one command to the next. It includes typical shell stuff, listing files and processes; database access, in which queries yield Python tuples; and distributed access, which distributes commands to the nodes of a cluster and then combines the results. For example, to submit a SQL query to each node of a cluster, getting a count on each, and combining the results:
osh @cluster [ sql "select count(*) from request where state = 'open'" ] ^ f 'node, count: count' ^ red + $
- osh: Invoke the interpreter.
- @cluster: Relay the bracketed command to each node of the cluster. The bracketed command returns (node, count) tuples. - sql: Submit a sql query (on a cluster node). - ^: Denotes piping results from one command to the next. - f: For each result from the cluster, run a function on (node, count) which returns just the count. - red +: Reduce using +, summing up all the counts. - $: Print result on the console.
Comments (868) 410 threads
Earlier commentsI built a utility for python programmers - pipreqs which helps to generate pip requirements.txt file based on imports of any project
My little open source app which converts HTML to PDF.
Useful when generating PDF invoices, legal documents. I am using it in my own projects.
Osh (Object SHell) is a python application giving you a set of Linux like commands which can be composed similar to pipes. However, it is objects, not strings, that are passed from one command to the next.
- osh: Invoke the interpreter.It includes typical shell stuff, listing files and processes; database access, in which queries yield Python tuples; and distributed access, which distributes commands to the nodes of a cluster and then combines the results. For example, to submit a SQL query to each node of a cluster, getting a count on each, and combining the results:
- @cluster: Relay the bracketed command to each node of the cluster. The bracketed command returns (node, count) tuples.
- sql: Submit a sql query (on a cluster node).
- ^: Denotes piping results from one command to the next.
- f: For each result from the cluster, run a function on (node, count) which returns just the count.
- red +: Reduce using +, summing up all the counts.
- $: Print result on the console.
All comments shown.
Couldn't load more comments. Check your connection and try again.