Migrated from https://bitbucket.org/saaj/workspace/snippets/BeKARa/simple-cpu-and-rss-monitor-that-pushes-to
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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 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 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 | |
# This coverts Redis Desktop Manager's Snap into an AppImage. | |
# Inspired by https://github.com/AppImage/AppImageKit/issues/166 | |
# Tested on Linux Mint 18 / Ubuntu Xenial | |
if ! [ -x "$(command -v unsquashfs)" ]; then | |
echo 'Error: squashfs-tools is not installed.' >&2 | |
exit 1 | |
fi |
This file contains 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 | |
VERSION=4.1.0 | |
mkdir dist | |
chmod 777 dist | |
cat << EOF > docker-build.sh | |
#!/bin/bash -e |
This file contains 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
FROM ubuntu:trusty | |
ENV DEBIAN_FRONTEND=noninteractive LANG=C.UTF-8 | |
RUN apt-get update -q | |
RUN apt-get install --no-install-recommends -qy \ | |
mysql-server libmysqlclient-dev python3-pip python3-dev build-essential | |
RUN apt-get install --no-install-recommends -qy wget | |
RUN pip3 install mysqlclient pymysql pytest-benchmark |
This file contains 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 \ |
NewerOlder