Skip to content

Instantly share code, notes, and snippets.

Greg Nilchee gnilchee

  • Evernote
  • Woodinville, WA
Block or report user

Report or block gnilchee

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
mestizo / gist:9167834
Last active Oct 5, 2019
Completely disable IPv6 on OSX
View gist:9167834
#To Get List of Hardware
sudo networksetup -listallhardwareports
#To Disable IPv6 on Wifi Adapter
sudo networksetup -setv6off wi-fi
#To Disable IPv6 on Built-in Ethernet Adapter
sudo networksetup -setv6off Ethernet
mapbutcher / EnableWinRm
Created Jul 17, 2013
Enable WinRM with basic auth
View EnableWinRm
set-executionpolicy -executionpolicy remotesigned
winrm quickconfig -q
winrm set winrm/config/winrs '@{MaxMemoryPerShellMB="512"}'
winrm set winrm/config '@{MaxTimeoutms="1800000"}'
winrm set winrm/config/service '@{AllowUnencrypted="true"}'
winrm set winrm/config/service/auth '@{Basic="true"}'
dsuch / haproxy.conf
Created Jun 26, 2013
HAProxy config for URL-based rate limiting
View haproxy.conf
# At most 10 concurrent connections from a client
acl too_fast fe_sess_rate ge 10
# Matches any path beginning with a given prefix
acl bursts_inclined path_beg -i /client1
# Effectively working as a delay mechanism for clients that are too fast
tcp-request inspect-delay 1000ms
# Fast-path - accept connection if it's not this troublesome client
dctrwatson / nginx.conf
Last active Mar 1, 2020
Caching PyPi packages locally with nginx
View nginx.conf
user www-data;
worker_processes 4;
error_log /var/log/nginx/error.log;
pid /var/run/;
events {
worker_connections 1024;
marcelom /
Created Dec 5, 2012
Tiny Python Syslog Server
#!/usr/bin/env python
## Tiny Syslog Server in Python.
## This is a tiny syslog server that is able to receive UDP based syslog
## entries on a specified port and save them to a file.
## That's it... it does nothing else...
## There are a few configuration parameters.
LOG_FILE = 'youlogfile.log'
SIN-777 / mysql_total_memory_usage_calculation.sql
Created Jun 5, 2012
mysql total memory usage calculation query
View mysql_total_memory_usage_calculation.sql
-- copied from:
ghoseb /
Created Nov 14, 2008
The evolution of a Python Programmer
#Newbie programmer
def factorial(x):
if x == 0:
return 1
return x * factorial(x - 1)
print factorial(6)
#First year programmer, studied Pascal
You can’t perform that action at this time.