Skip to content

Instantly share code, notes, and snippets.

View dstroot's full-sized avatar
:octocat:
Slingin' Code

Dan Stroot dstroot

:octocat:
Slingin' Code
View GitHub Profile
@dstroot
dstroot / master_install.sh
Created May 23, 2012 21:14
master install script
#!/bin/bash
###############################################
# To use:
# wget https://raw.github.com/gist/2776679/c131c0548e7cd2ece85edfb8bea70575586147c7/install-redis.sh
# chmod 777 install-redis.sh
# ./install-redis.sh
###############################################
echo "*****************************************"
echo " Get superuser and install all updates "
echo "*****************************************"
@dstroot
dstroot / curl.sh
Created May 24, 2012 23:59
curl command to test site speed
curl -w "\nTotal time: %{time_total}\nTime pretransfer: %{time_pretransfer}\nTime starttransfer: %{time_starttransfer}\nSize download: %{size_download}\n Speed download: %{speed_download}" www.vizilinkz.com
@dstroot
dstroot / raspberry_sendmail.sh
Created November 18, 2012 16:10
Setup email routing (Sendmail) on Asterisk Raspberry Pi
# Set "Smart" Relay Host
sudo sed -i.bak -e 's/DS$/DSsmtp.west.cox.net/' /etc/mail/sendmail.cf
# Restart Sendmail
/etc/init.d/sendmail restart
@dstroot
dstroot / numverify.go
Created January 20, 2017 00:36 — forked from IndianGuru/numverify.go
numverify.go
package main
import (
"encoding/json"
"fmt"
"log"
"net/http"
"net/url"
)
FROM golang:1.7-alpine
RUN apk add --no-cache \
git
ENV GOPATH $HOME/gocode
ENV PATH $GOPATH/bin:$PATH
COPY docker/entry.sh /docker-entrypoint
RUN chmod u+x /docker-entrypoint
@dstroot
dstroot / redis-server
Created May 23, 2012 20:03 — forked from tessro/redis-server
An Amazon AMI initscript for Redis
#!/bin/sh
#
# redis - this script starts and stops the redis-server daemon
#
# chkconfig: - 85 15
# description: Redis is a persistent key-value database
# processname: redis-server
# config: /etc/redis/redis.conf
# config: /etc/sysconfig/redis
# pidfile: /var/run/redis.pid

Keybase proof

I hereby claim:

  * I am dstroot on github.   * I am dstroot (https://keybase.io/dstroot) on keybase.   * I have a public key ASCCKrF70wPevMuYx-3aMbQ4Wv9Ruajf1Rsch62byYChVwo

To claim this, I am signing this object:

@dstroot
dstroot / lfu.go
Created March 8, 2019 16:20 — forked from fteem/lfu.go
Code example for the article "When to use Least Frequenty Used cache and how to implement it in Golang" https://ieftimov.com/golang-least-frequently-used-cache
package main
import (
"container/list"
"fmt"
)
type CacheItem struct {
key string // Key of item
value interface{} // Value of item
@dstroot
dstroot / install-mongo.sh
Created March 25, 2012 17:38
Install MongoDB on Amazon EC2
#!/bin/bash
echo "*****************************************"
echo " Add the 10gen repository - after you press"
echo " enter add the following lines and then"
echo " cntl-X to save:"
echo " [10gen]"
echo " name=10gen Repository"
echo " baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64"
echo " gpgcheck=0"
echo "*****************************************"
@dstroot
dstroot / resume.json
Last active July 5, 2019 19:22 — forked from thomasdavis/resume.json
{ "theme": "elegant"}
{
"basics": {
"name": "Daniel J. Stroot",
"label": "Technology Leader",
"summary": "I’m an experienced technology leader who drives IT transformation. I have a strong enterprise architecture, cloud architecture and open source technology skills. I also love building high-performing agile teams. Specialties: React, Redux, Javascript - still a \"full stack developer\" in my spare time.",
"website": "https://danstroot.com",
"email": "dan.stroot@gmail.com",
"location": {
"city": "Los Angeles",
"state": "california",