A screenrc-style status footer for Claude Code showing real-time session data.
[Opus] 14% | ↓28.5K ↑8.2K/200.0K | +156 -23 | 14m07s | main | myproject/src | $0.08
| const coll = db.getCollection("myCollection"); | |
| const idxs = coll.getIndexes(); | |
| function keyPairs(idx) { | |
| // preserve key order | |
| return Object.keys(idx.key).map(f => [f, idx.key[f]]); | |
| } | |
| function isPrefixIndex(smaller, larger) { | |
| const a = keyPairs(smaller); |
| ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCqzI+HYYmBFfRGg0evUqXe78v8Uzn2RCwuiVXz1T36XRg7enOxl7ukv4bbYw7Kh9uWbq3K/gfth/0dCp823BTgTVL37w4MPYjiPfww241W9cIDikYL1jOmBKBaT7WMVtvz4qenpJeB5qycgmiqfnGGBKSB92TcAEVcbNmaGhke+kCJCaxU5Y6PGHBabP0EWQc3zPgUAlzuLsQ0yThKEOb0TTw0nSfhkx6OH3CwJz+AhNYq2jnXzJfAlp9qXToJ1LIKmtsGjpUSRczUMO+IYsxYIWSM22oiZ7fcb07CeWrd6kOGTI1oiMIhLMbEbdI64oaLzxu4FkJEtQc0Yuc8uK8h [email protected] |
| (function () { | |
| 'use strict'; | |
| angular.module('app.chart') | |
| .controller('flotChartCtrl', ['$scope', '$http', flotChartCtrl]); | |
| function flotChartCtrl($scope, $http) { | |
| var areaChart, lineChart1; | |
| lineChart1 = {}; |
sudo -H pip install awscli --ignore-installed sixCollecting awscli [..]
Installing collected packages: pyasn1, rsa, futures, jmespath, six, python-dateutil, docutils, botocore, s3transfer, colorama, awscli Successfully installed awscli-1.10.19 botocore-1.4.10 colorama-0.3.3 docutils-0.12 futures-3.0.5 jmespath-0.9.0 pyasn1-0.1.9 python-dateutil-1.5 rsa-3.3 s3transfer-0.0.1 six-1.4.1
| ### Keybase proof | |
| I hereby claim: | |
| * I am jtomaszon on github. | |
| * I am javierzon (https://keybase.io/javierzon) on keybase. | |
| * I have a public key whose fingerprint is 3561 72D9 D29B A1F9 A0CD 58D0 BD72 F2FB 08B7 9E61 | |
| To claim this, I am signing this object: |
| #!/bin/bash | |
| # If not set APP_DIR variable, fail | |
| [ -z ${APP_DIR} ] && echo "Usage: Define APP_DIR before the script" && exit 1 | |
| LOG=/home/user/cleanupReleases.log | |
| logger -p info -t cleanupReleases "Starting cleanup on ${APP_DIR}... " | |
| CLEANUP=$(ls -dt ${APP_DIR}/releases/* | awk 'NR>1') | |
| [ -z "$CLEANUP" ] && echo "Nothing to cleanup" && exit 2 |
| ### IMPROVE SYSTEM MEMORY MANAGEMENT ### | |
| # Increase size of file handles and inode cache | |
| fs.file-max = 2097152 | |
| # Do less swapping | |
| vm.swappiness = 1 | |
| vm.dirty_ratio = 60 | |
| vm.dirty_background_ratio = 2 | |
| vm.zone_reclaim_mode = 0 |
| /* | |
| * Inspired by: http://stackoverflow.com/questions/4360060/video-streaming-with-html-5-via-node-js | |
| */ | |
| var http = require('http'), | |
| fs = require('fs'), | |
| util = require('util'); | |
| http.createServer(function (req, res) { | |
| var path = 'video.mp4'; |