Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
#!/bin/bash | |
# | |
# Usage: runperf ./my-benchmark-binary | |
# | |
# Script to run a benchmark / performance test in decent conditions. Based on: | |
# - https://www.llvm.org/docs/Benchmarking.html | |
# - "Performance Analysis and Tuning on Modern CPU" by Denis Bakhvalov, Appendix A. | |
# - https://github.com/andikleen/pmu-tools | |
# | |
# Note that this doesn't do any actual benchmarking, your binary must be able to do that all by itself. |
It's now here, in The Programmer's Compendium. The content is the same as before, but being part of the compendium means that it's actively maintained.
#!/usr/bin/env ruby | |
require 'base64' | |
require 'openssl' | |
require 'digest/sha1' | |
require 'net/http' | |
require "uri" | |
require 'time' | |
DEBUG = false |
// Logging levels: | |
// | |
// INFO | |
// WARN | |
// ERROR | |
// FATAL | |
// | |
// Usage: | |
// var log = require('./logger.js'); | |
// |