Skip to content

Instantly share code, notes, and snippets.

View miguelitosd's full-sized avatar

Mike Marion miguelitosd

View GitHub Profile
{
"id": 1,
"title": "Cablemodem Stats",
"tags": [],
"style": "dark",
"timezone": "browser",
"editable": true,
"hideControls": true,
"sharedCrosshair": true,
"rows": [
@miguelitosd
miguelitosd / cablemodem_stats.pl
Created October 19, 2016 21:22
Perl script to feed signal/uptime from motorola cablemodem into carbon/graphite database
#!/usr/bin/perl -w
use strict;
use 5.020;
use Cache::FileCache;
use Data::Dumper;
use Date::Format;
use File::Basename qw( basename );
use Getopt::Long qw( :config auto_help auto_version bundling no_ignore_case );
use IO::Socket;
@miguelitosd
miguelitosd / gitlab
Last active October 29, 2015 16:33 — forked from limansky/gitlab
GitLab initscript for 6-0
#!/sbin/runscript
# GitLab 5.2 and 5.3 init script for Gentoo Linux
# see https://github.com/gitlabhq/gitlabhq/blob/master/doc/installation.md
GITLAB_BASE=/home/git/gitlab
GITLAB_USER=git
####
# Assumes variables set in /etc/default/gitlab..
# app_user app_root socket_path gitlab_git_http_server_options gitlab_git_http_server_repo_root gitlab_git_http_server_log