Skip to content

Instantly share code, notes, and snippets.

View mplscorwin's full-sized avatar
💬
preping for EmacsConf.org

Corwin mplscorwin

💬
preping for EmacsConf.org
View GitHub Profile
# First do a fresh install of CentOS 5.7 i386, server configuration (no GUI)
# This should be performed as root since it's going to be installing a bunch of stuff
# --- Update things to make sure we have the latest patches ---
# Add EPEL so we can get reasonably recent packages
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
# --- Install all the packages --- #
yum -y install python-whisper python-carbon graphite-web python-memcached python-ldap httpd memcached
#!/bin/sh
### BEGIN INIT INFO
# Provides: statsd
# Required-Start: $local_fs $remote_fs $network $syslog
# Required-Stop: $local_fs $remote_fs $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the statsd node server
# Description: starts statsd using nodejs forever
@mplscorwin
mplscorwin / centos_build_cql+metrics.sh
Last active December 27, 2015 17:29
CentOS init for Cassandra + Graphite + StatsD (forever via cron)
################################################################################
#
# CentOS - Graphite/statsD/Cassandra configuration script
#
################################################################################
# This should be performed as root since it's going to be installing a bunch of stuff
##########
# Environment specific - only these are expected to change from dev->prod
@mplscorwin
mplscorwin / fix_owner.sh
Created November 11, 2013 22:05
fix the owner/group of all files under a set of directories via find and chown
#!/bin/bash
################################################################################
#
# shell script to fix ownership of all files under each entry in SEARCH_PATH
#
################################################################################
# space seperated list of paths
SEARCH_PATHS='/tmp/foo /tmp/bar'
@mplscorwin
mplscorwin / diff~.sh
Created November 14, 2013 23:04
Diff a file with its (emacs style) backup
#!/bin/bash
F=$1
shift
diff $* $F $F~
@mplscorwin
mplscorwin / statsd_init.sh
Last active January 3, 2016 08:59 — forked from garlandkr/statsd_init.sh
this version (which I use on CentOS as /etc/init.d/statsd) mimics more closely the "normal" sysV service control script behavior.
#!/bin/sh
### BEGIN INIT INFO
# Provides: statsd
# Required-Start: $local_fs $remote_fs $network $syslog
# Required-Stop: $local_fs $remote_fs $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: control statsd
# Description: start/stop/restart statsd using nodejs forever
@mplscorwin
mplscorwin / gist:8445328
Created January 15, 2014 21:44
fix ownership of cassandra's files when someone goes and runs it other than from "service start cassandra" (CentOS 6)
#!/bin/bash
################################################################################
#
# shell script to fix ownership of all files under each entry in SEARCH_PATH
#
# Change SEARCH_PATH as needed.
# NOTE: script has no output if it does no work.
#
################################################################################
@mplscorwin
mplscorwin / .emacs
Last active January 22, 2020 02:15
My very message init script for gnu emacs 26.3 on windows
;;; init --- Emacs startup script
;;; Commentary:
;;;; Corwin Brust <[email protected]>
;;;; huge thankx to Aaron Bedra for http://aaronbedra.com/emacs.d/
;;; Code:
(setq user-full-name "Corwin Brust")
(setq user-mail-address "[email protected]")
;; https://github.com/wyuenho/dotfiles/blob/master/.emacs
@mplscorwin
mplscorwin / erc-burnt-toast.el
Last active February 18, 2020 06:52
WIndows 10 Notification Center Support for erc-match
;;; erc-burnt-toast.el --- erc-match support for w32 notification center -*- lexical-binding: t; -*-
;; Copyright (C) 2019 Corwin Brust
;; Author: Corwin Brust <[email protected]>
;; URL: https://bru.st
;; Version: 0.1-pre
;; Package-Requires: ((emacs "26.0"))
;; Keywords: irc erc burnt-toast
@mplscorwin
mplscorwin / hide-region+.el
Last active May 11, 2023 11:46
Uploading 1.2 as pushed to EmacsWiki - getnly tested
;;; hide-region.el --- hide regions of text using overlays
;;
;; Copyright (C) 2001, 2005 Mathias Dahl
;;
;; Version: 1.0.1
;; Keywords: hide, region
;; Author: Mathias Dahl <[email protected]>
;; Maintainer: Mathias Dahl
;; URL: http://mathias.dahl.net/pgm/emacs/elisp/hide-region.el
;;