Skip to content

Instantly share code, notes, and snippets.

@andystanton
andystanton / Start up local Docker Machine on OSX automatically.md
Last active April 3, 2024 00:50
Start up local Docker Machine on OSX automatically.

Notice

This script is no longer required with Docker for Mac which includes an option to run Docker at startup and doesn't use docker-machine to administer the local Docker engine.

Requirements

  • Docker Machine + Docker
  • curl
  • A Virtualbox-driven Docker Machine called "default" docker-machine create --driver virtualbox default (this is the default with Docker toolkit).
@coderanger
coderanger / gmos.md
Created April 23, 2015 04:27
GMOs: Not That Dangerous

Okay, so lets rewind a bit. Roundup is a brand name used by Monsanto for a type of herbicide called "glyphosphate" While it was under patent protection for 20 years, those patents all expired back in 2000 so now many companies market similar herbicides. These products are used by farmers to kill off smaller plants like grasses and bacteria that spread in the wild and would use nutrients in the soil that the farmer would rather be absorbed by their crops. It does this by blocking the creation of a few key proteins needed by all cells. This doesn't affect insects for the most part as animals don't make these proteins ourselves, we have to eat them ("essential amino acids"). But in plants, it kills them by denying them these required proteins.

Enter "Roundup Ready Soybeans" (and others, soybeans were the first though). They took genes from a few sources (a specific bacterium, a virus that infects cauliflowers, and a petunia flower) and combined to create a new method to synthesize those essential proteins, spec

@scalp42
scalp42 / knife
Created March 13, 2013 20:01
Empty nodes run list
knife exec -E "search(:node,'*:*').select{|n|n.run_list.empty?}.each{|n| puts n.name}"
@lefou
lefou / scala.nanorc
Last active November 18, 2021 05:06
Color theme for console editor nano, supporting Scala language.
## Nano color theme for Scala.
## 2013, 2018, Tobias Roeser
##
syntax "scala" "\.(scala|sbt|sc)$"
color green "\<(new|this|transient)\>"
color green "\<(catch|do|else|finally|for|if|match|return|switch|throw|try|val|var|while)\>"
color green "\<(def|abstract|class|extends|final|import|package|private|protected|public|trait|volatile)\>"
color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)|\+|\-|\*|\/"
color red "@(\\.|[^(])*"
color yellow "\<(true|false|null)\>"
@lusis
lusis / log4j.xml
Created November 23, 2011 07:11
Ruby logstash cli application - allows searching historical data in ElasticSearch or live tailing from AMQP topic exchange
<!-- the env variables are controlled by Chef and passed in via -D on the java command-line -->
<!-- This is using the appender here: https://github.com/t0xa/gelfj -->
<appender name="graylog2" class="org.graylog2.log.GelfAppender">
<param name="graylogHost" value="${graylog.server}"/>
<param name="originHost" value="${graylog.origin}"/>
<param name="extractStacktrace" value="true"/>
<param name="addExtendedInformation" value="true"/>
<!-- The _web part is because a given app has multiple components -->
<!-- This app might have a _web as well as an _batch component -->
<param name="facility" value="${graylog.facility}_web"/>