Skip to content

Instantly share code, notes, and snippets.

View tblobaum's full-sized avatar
😆

Thomas J Blobaum tblobaum

😆
  • Creston, Iowa
View GitHub Profile
@tblobaum
tblobaum / date-calc-days.js
Last active December 20, 2021 21:56
Calculate which date is x days before/after a date
var MONTHS = {
1: 31,
2: 28,
3: 31,
4: 30,
5: 31,
6: 30,
7: 31,
8: 31,
@tblobaum
tblobaum / batman.md
Last active December 8, 2021 19:15
We all have a Batman with a 22

6/19/1983 Austen Blobaum born 7/6 from 2100

3/2/1985 Regina Blobaum born 888 days to 8/8/88

7/25/1986 Thomas Blobaum born 14 days to 8/8

6/17/2005 Batman Begins on Austen's 22nd

7/18/2008 The Dark Knight on Tommy's 22nd

SEO Checklist

If you happen to be a beginner within the realm of Search Engine Optimization, never fear! This SEO checklist is not only going to make sure that you won’t make any drastic mistakes during your humble SEO beginnings, but it’s also going to allow you to master the art of SEO as a whole.

Setting Up

Installation of Google Analytics (and Setting Up Goals)

Web counters are ideal in any case, and you'd be even better off if you installed several, as opposed to just one. You can find information on how to install Google Analytics on the internet, but there are many other web counter services to consider such as Google Analytics - Matomo - Piwik, and even SiteCatalyst.

### Keybase proof
I hereby claim:
* I am tblobaum on github.
* I am tblobaum (https://keybase.io/tblobaum) on keybase.
* I have a public key ASBrCZLua7GZkQF1KEx0n0tEJyNffz--qilw3DPbSM4mnwo
To claim this, I am signing this object:
[11/11 16:37:59 CST] info: socket.io started
[11/11 16:38:01 CST] Express server started on port: 80
[11/11 16:38:01 CST] /opt/haibu/apps/nko3-candy-wars/nko3-candy-wars/package/node_modules/socket.io/node_modules/redis/index.js:506
[11/11 16:38:01 CST] throw callback_err;
[11/11 16:38:01 CST] ^
[11/11 16:38:01 CST] Error: Ready check failed: ERR operation not permitted
[11/11 16:38:01 CST] at RedisClient.on_info_cmd (/opt/haibu/apps/nko3-candy-wars/nko3-candy-wars/package/node_modules/socket.io/node_modules/redis/index.js:319:35)
[11/11 16:38:01 CST] at Command.RedisClient.ready_check.send_anyway [as callback] (/opt/haibu/apps/nko3-candy-wars/nko3-candy-wars/package/node_modules/socket.io/node_modules/redis/index.js:367:14)
[11/11 16:38:01 CST] at RedisClient.return_error (/opt/haibu/apps/nko3-candy-wars/nko3-candy-wars/package/node_modules/socket.io/node_modules/redis/index.js:502:25)
[11/11 16:38:01 CST] at RedisReplyParser.RedisClient.init_parser (/opt
#!/bin/sh
#
# fleet-drone
#
# chkconfig: - 85 15
# description:
# processname: fleet-drone
# config: /etc/node/fleet-drone.conf
# pidfile: /var/run/fleet-drone.pid
var Redis = require('redis-stream')
, client = new Redis('localhost', 6379, 0)
, stream = client.stream()
// this will get an intersection of all the elements in
// `set1`, `set2` & `set3` and then it will use each of the members
// in the resulting intersection as a key in a `sinter` with `subset1`
// and each of those resulting sets will be piped to stdout
// this will not use pipelining and will call `sinter subset1 member` once
// for every member of the original intersection
@tblobaum
tblobaum / rename-redis-keys.js
Created July 22, 2012 13:19
script to rename lots of redis keys
var Redis = require('redis-stream')
, client = new Redis(6379, 'localhost', process.argv[2] || 0)
, stream = client.stream()
var keys = client.stream('keys')
process.stdin
.pipe(Redis.es.split())
.pipe(keys)
.pipe(Redis.es.mapSync(function (key) {
#!/usr/bin/env node
// a list of meta data for all services
// probably loaded from a json file or database
var settings = {
api : { name : 'api' }
, static : { name : 'static' }
}
var Seaport = require('seaport')
global
log 0.0.0.0 local2 info
chroot /var/lib/haproxy
pidfile /var/run/haproxy.pid
daemon
defaults
option http-server-close
option http-pretend-keepalive
timeout connect 4s