Skip to content

Instantly share code, notes, and snippets.

View clstokes's full-sized avatar
☁️

Cameron Stokes clstokes

☁️
View GitHub Profile

ASUS RT-N16 vs. Apple Airport Extreme (2013)

test setup

Tested with 13-inch, Mid 2012 Macbook Air running 802.11n. Latest firmware on both devices.

Run iperf with -d Do a bidirectional test simultaneously.

asus rt-n16 wifi (sitting next to router)

cstokes-ml:~ clstokes$ iperf -c 192.168.1.24 -d

@clstokes
clstokes / 2013-06-19-dns-issues.md
Last active December 18, 2015 17:59
Collection of links related to the DNS Issue that affected LinkedIn and many others on June 19, 2013.

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.

class webserver {
package {
"webserver":
name => "CHANGE THIS TO THE PACKAGE NAME",
ensure => latest,
}
}
@clstokes
clstokes / gist:4961765
Created February 15, 2013 17:05
One-liner for openssl...
# 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 January 21, 2013 18:01
dasin-cloud-aws compilation errors
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]
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 January 7, 2013 06:41
Groovy script for the Jenkins Script Console to GitHub repositories. Will throw exceptions for builds with other trigger types.
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:07ad4202a3fa6c627df4
Last active November 13, 2015 22:16
🐛 Terraform: No ingress rules were found...
clstokes-mbpro:consul-cluster clstokes$ terraform apply aws-nat-consul-cluster/terraform/
atlas_artifact.consul: Refreshing state... (ID: us-east-1:ami-fa522a90,us-west-2:ami-9b4150fa)
atlas_artifact.consul_client: Refreshing state... (ID: us-east-1:ami-0e5f2764,us-west-2:ami-35435254)
template_file.consul_update: Refreshing state... (ID: d82b4576930c7fe3d4a263ba5b15ed833c1cd9e5b984b1c9b92447dff46a2459)
aws_vpc.main: Refreshing state... (ID: vpc-36b13452)
aws_key_pair.main: Refreshing state... (ID: atlas-example)
aws_subnet.subnet_b: Refreshing state... (ID: subnet-dd7077f6)
aws_subnet.subnet_c: Refreshing state... (ID: subnet-803eccf6)
aws_security_group.admin_access: Refreshing state... (ID: sg-4d38a62b)
aws_security_group.consul: Refreshing state... (ID: sg-4c38a62a)
@clstokes
clstokes / do-ubuntu.json
Last active November 10, 2015 18:53
📝 Working HashiCorp Atlas and DigitalOcean example.
{
"variables": {
"region": "nyc2",
"source_image": "ubuntu-14-04-x64",
"atlas_username": "{{ env `ATLAS_USERNAME` }}",
"atlas_name": "digitalocean-example"
},
"builders": [{
"type": "digitalocean",
"image": "{{user `source_image`}}",
@clstokes
clstokes / gist:4076802
Created November 15, 2012 05:26
md: auto-read-only?
[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]