Migrated from https://bitbucket.org/saaj/workspace/snippets/zedA8x/chronologer-intro-demo
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
"""Elasticsearch ``application/x-ndjson`` file loader.""" | |
import argparse | |
import fileinput | |
import itertools | |
import json | |
import logging | |
import sys | |
from urllib.error import HTTPError |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- d93743f/3.4/DataProviders.js | |
+++ 3.4/DataProviders.js | |
@@ -1,5 +1,6 @@ | |
const Gio = imports.gi.Gio; | |
const GIRepository = imports.gi.GIRepository; | |
+const GLib = imports.gi.GLib; | |
let _, tryFn, GTop; | |
if (typeof require !== 'undefined') { | |
@@ -356,16 +357,40 @@ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
VENV=/home/user/some/path/to/venv/jupyterlab | |
docker build -t jupyterlab-venv --build-arg VENV=$VENV - <<EOF | |
FROM ubuntu:bionic | |
ARG VENV | |
RUN apt-get update && apt-get install -y --no-install-recommends \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias topmem='smemstat -sm | termsql -01 -r 6 -T 3 "SELECT SUM(PSS) as PSS, SUM(RSS) as RSS, Command \ | |
FROM tbl GROUP BY Command ORDER BY SUM(PSS) DESC LIMIT 5" | column -t -s "|"' | |
alias topmemps='ps -x -o rss,%mem,cmd | termsql -m tabs -01 "SELECT SUM(rss) / 1024 as RSS, SUM([%mem]) AS PCT, cmd \ | |
FROM tbl GROUP BY cmd ORDER BY SUM(rss) DESC LIMIT 5"' |
NewerOlder