Skip to content

Instantly share code, notes, and snippets.

Dan Ackerson danackerson

Block or report user

Report or block danackerson

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am danackerson on github.
  • I am danackerson ( on keybase.
  • I have a public key whose fingerprint is 5C30 3788 8012 568A E9F4 6C23 1B77 1D85 60C2 CCA0

To claim this, I am signing this object:

View perfectSquares.go
package main
import (
// change prime() to main() for execution => can't have 2 main()'s and go test
func main(){
index := 0
danackerson / 100_base.conf
Last active Sep 13, 2019
using nginx + lua + redis for redirects and rewrites
View 100_base.conf
# using such a setup requires `apt-get install lua-nginx-redis` under Ubuntu Trusty
# more info @
http {
lua_package_path "/etc/nginx/include.d/?.lua;;";
lua_socket_pool_size 100;
lua_socket_connect_timeout 10ms;
lua_socket_read_timeout 10ms;
server {
View apache basic auth with ip addresses
Order deny,allow
Deny from all
AuthType Basic
AuthUserFile /etc/apache2/passwd/.htpasswd
Require valid-user
Allow from 192.168
Satisfy Any
You can’t perform that action at this time.