Skip to content

Instantly share code, notes, and snippets.

View lakshmi-kannan's full-sized avatar

Lakshmi Kannan lakshmi-kannan

  • San Francisco, CA
View GitHub Profile
root@dfw1-maas-prod-api0:/etc/sv/check_http_status_code# grep "17:50:12" /var/log/apache2/access/log/current
monitoring.api.rackspacecloud.com:80 10.14.238.3 - - [19/Jan/2013:17:50:12 +0000] "GET /" 301 349 "-" "-" "-" 401
monitoring.api.rackspacecloud.com:80 10.14.238.2 - - [19/Jan/2013:17:50:12 +0000] "GET /" 301 349 "-" "-" "-" 503
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\" \"%{X-Response-Id}o\" %D" raxvhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %O" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
Input: "one two three"
Output: "eno owt eerht"
@lakshmi-kannan
lakshmi-kannan / 0_reuse_code.js
Created August 14, 2014 23:33
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
# [freight] adding st2api_0.8.0-5_amd64.deb to pool
# [freight] adding st2auth_0.8.0-5_amd64.deb to pool
# [freight] adding st2common_0.8.0-5_amd64.deb to pool
# [freight] adding st2debug_0.8.0-5_amd64.deb to pool
# [freight] adding st2reactor_0.8.0-5_amd64.deb to pool

CI using StackStorm on top of GitHub, Docker and DockerHub

In this blog post, we cover CI part of CICD with Docker as an example. At a high level, this blog post will show you a way to create a docker image and push it to a registry on every commit to a github repo. You've probably read our own James Fryman's excellent blog post on continuous delivery with StackStorm in a more traditional environment. If not, I highly recommend reading it. Before getting into the details, here's some motivation for switching to container based immutable infrastructure.

Motivation

Process: Spark [491]
Path: /Applications/Spark.app/Contents/MacOS/Spark
Identifier: Cisco-Systems.Spark
Version: 1.3244 (3244)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Spark [491]
User ID: 501
Date/Time: 2015-08-19 11:38:43.543 -0700
Installation failures and next steps
====================================
We have seen installer failing for the following reasons:
1) Problem: Installer is running behind a proxy.
Solution: While we make the installer resilient to handle proxies (probably next release), please use AWS to try out StackStorm.
Here are the image ids available in the us-east-1:
~/Documents ❯❯❯ traceroute stackstorm.slack.com ⏎
traceroute: Warning: stackstorm.slack.com has multiple addresses; using 52.5.113.141
traceroute to stackstorm.slack.com (52.5.113.141), 64 hops max, 52 byte packets
1 rt-n56u (192.168.200.1) 1.297 ms 0.860 ms 1.270 ms
2 24.130.8.1 (24.130.8.1) 13.910 ms 13.385 ms 14.055 ms
3 te-0-3-0-2-sur04.santaclara.ca.sfba.comcast.net (68.86.249.169) 17.148 ms 15.017 ms 13.761 ms
4 hu-0-3-0-7-ar01.hayward.ca.sfba.comcast.net (68.87.192.253) 15.344 ms
hu-0-3-0-6-ar01.hayward.ca.sfba.comcast.net (68.87.192.249) 15.396 ms 15.670 ms
5 he-0-19-0-0-ar01.santaclara.ca.sfba.comcast.net (68.85.154.253) 23.606 ms 16.103 ms
hu-0-0-0-1-ar01.santaclara.ca.sfba.comcast.net (68.85.57.145) 15.556 ms