View mongodb_collection_sizes.js
var collectionNames = db.getCollectionNames(), stats = []; | |
collectionNames.forEach(function (n) { stats.push(db[n].stats()); }); | |
stats = stats.sort(function(a, b) { return b['size'] - a['size']; }); | |
for (var c in stats) { print(stats[c]['ns'] + ": " + stats[c]['size'] + " (" + stats[c]['storageSize'] + ")"); } |
View Arduino_Speed_Tests.ino
// Arduino Speed Test Benchmarking Program | |
// Original Program Credit: Arduino.cc | |
// Modified By: Dan Watson | |
// synchannel.blogspot.com | |
// 1-29-2015 | |
// This sketch is the speed test portion of the Arduino Show Info program | |
// http://playground.arduino.cc/Main/ShowInfo | |
// Certain tests may not compile/run for all boards. Comment them out as necessary: |
View nginx.conf
http { | |
log_format filt '$remote_addr - $remote_user [$time_local] "$_request" ' | |
'$status $body_bytes_sent "$http_referer" ' | |
'"$http_user_agent" "$http_x_forwarded_for"'; | |
server { | |
location /login { | |
# `set` is provided by the Rewrite module | |
set $filter "password|secret"; |
View ESP_I2S_Client.ino
/* | |
ffmpeg -i "$file" -f s32be -acodec pcm_s32be -ar 44100 -af "volume=0.5" tcp://espip:5522 | |
*/ | |
#include "i2s.h" | |
#include <ESP8266WiFi.h> | |
const char* ssid = "***********"; | |
const char* password = "**********"; | |
WiFiServer pcmServer(5522); | |
static WiFiClient pcmClient; |
View linpack_bench.ino
# include <stdlib.h> | |
# include <stdio.h> | |
# include <math.h> | |
int do_benchmark ( void ); | |
double cpu_time ( void ); | |
void daxpy ( int n, double da, double dx[], int incx, double dy[], int incy ); | |
double ddot ( int n, double dx[], int incx, double dy[], int incy ); | |
int dgefa ( double a[], int lda, int n, int ipvt[] ); | |
void dgesl ( double a[], int lda, int n, int ipvt[], double b[], int job ); |
View cloudtrail.conf
input { | |
s3 { | |
bucket => "your_bucket_name" | |
credentials => ["acces_key","secret_key"] | |
codec => cloudtrail | |
region_endpoint => "your_region" | |
type => "cloudtrail" | |
prefix => "your/logs/path" | |
sincedb_path => "/path/.sincedb" | |
} |