Skip to content

Instantly share code, notes, and snippets.

Avatar
☁️

Cameron Stokes clstokes

☁️
View GitHub Profile
@clstokes
clstokes / 2013-06-19-dns-issues.md
Last active Dec 18, 2015
Collection of links related to the DNS Issue that affected LinkedIn and many others on June 19, 2013.
View 2013-06-19-dns-issues.md

Main Article

Updates from Companies Involved

Network Solutions

From https://www.networksolutions.com/blog/2013/06/important-update-for-network-solutions-customers-experiencing-website-issues/ :

In the process of resolving a Distributed Denial of Service (DDoS) incident on Wednesday night, the websites of a small number of Network Solutions customers were inadvertently affected for up to several hours. We are proactively working with these customers and have resolved most issues, none of which involved malicious activity. No confidential data was compromised, including passwords, credit card information, or cookies. If you are a Network Solutions customer and are experiencing problems with your website, please call us at (866) 391-4357 so we can help to quickly resolve the issue. Thank you for your patience and support as we work to fully resolve this situation.

View gist:4996752
class webserver {
package {
"webserver":
name => "CHANGE THIS TO THE PACKAGE NAME",
ensure => latest,
}
}
@clstokes
clstokes / gist:4961765
Created Feb 15, 2013
One-liner for openssl...
View gist:4961765
# Saving here for future use...
# from https://twitter.com/jordansissel/status/302338969536970752, see follow-up tweet about '-days' option.
openssl req -x509 -batch -nodes -newkey rsa:2048 -keyout lumberjack.key -out lumberjack.crt
@clstokes
clstokes / gist:4587942
Created Jan 21, 2013
dasin-cloud-aws compilation errors
View gist:4587942
macbook-air:dasein-cloud-aws clstokes$ mvn clean install -DskipTests=true
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building dasein-cloud-aws 2013.04-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ dasein-cloud-aws ---
[INFO] Deleting /Users/clstokes/Desktop/dasein-cloud-aws/target
[INFO]
View gist:4574026
import org.gradle.plugins.javascript.coffeescript.CoffeeScriptCompile
apply plugin: 'coffeescript-base'
repositories {
mavenCentral()
mavenRepo name: "Gradle", url: "http://repo.gradle.org/gradle/repo"
}
task compileCoffeeScript(type: CoffeeScriptCompile) {
@clstokes
clstokes / gist:4472989
Created Jan 7, 2013
Groovy script for the Jenkins Script Console to GitHub repositories. Will throw exceptions for builds with other trigger types.
View gist:4472989
import hudson.model.*
import hudson.triggers.*
import com.cloudbees.jenkins.GitHubTrigger
for(item in Hudson.instance.items) {
println item.name
item.triggers.each{ k,v ->
((GitHubTrigger)v).getGitHubRepositories().each{
println it
@clstokes
clstokes / gist:4076802
Created Nov 15, 2012
md: auto-read-only?
View gist:4076802
[ec2-user@ip-10-252-77-244 ~]$ cat /proc/mdstat
Personalities : [raid10]
md127 : active (auto-read-only) raid10 xvdg[1] xvdh[2] xvdi[3] xvdf[0]
4192000 blocks super 1.2 128K chunks 2 near-copies [4/4] [UUUU]
unused devices: <none>
[ec2-user@ip-10-252-77-244 ~]$ sudo cp /mnt/ebs-vol1/test1 /mnt/ebs-vol1/test2
[ec2-user@ip-10-252-77-244 ~]$ cat /proc/mdstat
Personalities : [raid10]
md127 : active (auto-read-only) raid10 xvdg[1] xvdh[2] xvdi[3] xvdf[0]
@clstokes
clstokes / pom.xml
Created Oct 24, 2012 — forked from codahale/pom.xml
Basic maven pom for Java.
View pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>my-project</artifactId>
<version>0.0.1-SNAPSHOT</version>
<dependencies>
<!-- none yet -->
@clstokes
clstokes / gist:3821723
Created Oct 2, 2012
source sequence is illegal/malformed utf-8
View gist:3821723
["Received new event", {:source=>"tcp://0.0.0.0:1556/client/127.0.0.1:38974", :event=>#<LogStash::Event:0x3b215c11 @data={"@source"=>"tcp://0.0.0.0:1556/client/127.0.0.1:38974", "@type"=>"akamai", "@tags"=>[], "@fields"=>{}, "@timestamp"=>"2012-10-02T17:50:51.812000Z", "@source_host"=>"0.0.0.0", "@source_path"=>"/client/127.0.0.1:38974", "@message"=>"12.53.117.198 - - [26/Sep/2012:23:22:52 +0000] \"GET /www.weather.com/ HTTP/1.1\" 200 96556 \"-\" \"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1\" \"-\"\n"}, @cancelled=false>}] {"level":"debug","file":"/opt/logstash/logstash-1.1.1-monolithic.jar!/logstash/inputs/base.rb","line":"129","method":"to_event"}
JSON::GeneratorError: source sequence is illegal/malformed utf-8
to_json at json/ext/GeneratorMethods.java:71
to_json at file:/opt/logstash/logstash-1.1.1-monolithic.jar!/logstash/event.rb:132
to_json at json/ext/GeneratorMethods.java:71
tty_write at file:/opt/log
View gist:3821288
Skipping capture since it is not a named capture and named_captures_only is true. {"field":"MINUTE","level":"debug","file":"/opt/logstash/logstash-1.1.1-monolithic.jar!/logstash/filters/grok.rb","line":"210","method":"filter"}
Skipping capture since it is not a named capture and named_captures_only is true. {"field":"SECOND","level":"debug","file":"/opt/logstash/logstash-1.1.1-monolithic.jar!/logstash/filters/grok.rb","line":"210","method":"filter"}
Exception in thread "LogStash::Runner" Skipping capture since it is not a named capture and named_captures_only is true. {"field":"URIPATH","level":"debug","file":"/opt/logstash/logstash-1.1.1-monolithic.jar!/logstash/filters/grok.rb","line":"210","method":"filter"}
org.jruby.exceptions.RaiseException: (SystemExit) watchdog timeout
at org.jruby.RubyThread.join(org/jruby/RubyThread.java:509)
at Agent.wait(file:/opt/logstash/logstash-1.1.1-monolithic.jar!/logstash/agent.rb:326)
at logstash.runner.main(logstash/runner.rb:42)
at org.jruby.RubyArray.each(org/jruby/