Skip to content

Instantly share code, notes, and snippets.

View cmckni3's full-sized avatar

Chris McKnight cmckni3

View GitHub Profile
@cmckni3
cmckni3 / rails_resources.md
Created September 28, 2016 18:26 — forked from jookyboi/rails_resources.md
Rails-related Gems and guides to accelerate your web project.

Gems

  • Bundler - Bundler maintains a consistent environment for ruby applications. It tracks an application's code and the rubygems it needs to run, so that an application will always have the exact gems (and versions) that it needs to run.
  • rabl - General ruby templating with json, bson, xml, plist and msgpack support
  • Thin - Very fast and lightweight Ruby web server
  • Unicorn - Unicorn is an HTTP server for Rack applications designed to only serve fast clients on low-latency, high-bandwidth connections and take advantage of features in Unix/Unix-like kernels.
  • SimpleCov - SimpleCov is a code coverage analysis tool for Ruby 1.9.
  • Zeus - Zeus preloads your Rails app so that your normal development tasks such as console, server, generate, and specs/tests take less than one second.
  • [factory_girl](h
@cmckni3
cmckni3 / python_resources.md
Created September 28, 2016 18:26 — forked from jookyboi/python_resources.md
Python-related modules and guides.

Packages

  • lxml - Pythonic binding for the C libraries libxml2 and libxslt.
  • boto - Python interface to Amazon Web Services
  • Django - Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
  • Fabric - Library and command-line tool for streamlining the use of SSH for application deployment or systems administration task.
  • PyMongo - Tools for working with MongoDB, and is the recommended way to work with MongoDB from Python.
  • Celery - Task queue to distribute work across threads or machines.
  • pytz - pytz brings the Olson tz database into Python. This library allows accurate and cross platform timezone calculations using Python 2.4 or higher.

Guides

@cmckni3
cmckni3 / psake.md
Last active January 3, 2024 20:19
Psake notes

TeamCity and psake

What is psake

  • Open-source build automation tool
  • Powershell-based
  • Leverages existing command line knowledge
  • Replaces msbuild for most tasks

Installation

@cmckni3
cmckni3 / emacs-notes.md
Created September 19, 2016 20:05
emacs notes

Ctrl-x Ctrl-c Close emacs

q or Ctrl-g Close window

Configuration file: ~/.emacs.d\init.el

@cmckni3
cmckni3 / work-imac-casks.sh
Last active September 26, 2016 16:02
Work stuff
alfred apache-directory-studio base beaker-electron bitbar caffeine charles cloud cocoapods-app docker-toolbox firefox flux github-desktop google-chrome google-chrome-canary gpgtools iterm2-borderless-padding java kaleidoscope mojibar nylas-n1 oclint reveal rstudio sequel-pro sourcetree sublime-text the-unarchiver transmit vagrant wasted yemuzip
@cmckni3
cmckni3 / async-program.cs
Created September 16, 2016 18:34
Async C# program.cs
static int Main(string[] args)
{
AsyncContext.Run(() => MainAsync());
}
static async Task MainAsync()
{
...
}
@cmckni3
cmckni3 / virtualbox-port-forward.sh
Last active January 22, 2017 00:13
My standard port forwards for VirtualBox
VBoxManage controlvm "default" natpf1 "mysql,tcp,127.0.0.1,3306,,3306"
VBoxManage controlvm "default" natpf1 "development server,tcp,127.0.0.1,3000,,3000"
VBoxManage controlvm "default" natpf1 "elasticsearch,tcp,127.0.0.1,9200,,9200"
VBoxManage controlvm "default" natpf1 "logstash-lumberjack,tcp,127.0.0.1,5000,,5000"
VBoxManage controlvm "default" natpf1 "kibana,tcp,127.0.0.1,5601,,5601"
VBoxManage controlvm "default" natpf1 "logstash-filebeat,tcp,127.0.0.1,5044,,5044"
VBoxManage controlvm "default" natpf1 "mongo,tcp,127.0.0.1,27017,,27017"
VBoxManage controlvm "default" natpf1 "redis,tcp,127.0.0.1,6379,,6379"
VBoxManage controlvm "default" natpf1 "statsd admin,tcp,127.0.0.1,8126,,8126"
VBoxManage controlvm "default" natpf1 "memsql,tcp,127.0.0.1,3307,,3307"
@cmckni3
cmckni3 / keybase.md
Created May 17, 2016 19:52
Keybase proof

Keybase proof

I hereby claim:

  • I am cmckni3 on github.
  • I am cmckni3 (https://keybase.io/cmckni3) on keybase.
  • I have a public key whose fingerprint is DAF4 64C8 D086 86AB 9DD4 B687 08E4 6B1B 5A14 3970

To claim this, I am signing this object:

@cmckni3
cmckni3 / performance.md
Last active February 9, 2016 16:15
Check the performance of a query
mysqlslap -u root -p --concurrency=100 --iterations=20 --create-schema=database_name --query="select * from tablename where name = 'Something';"