Skip to content

Instantly share code, notes, and snippets.


Marc Esher marcesher

View GitHub Profile
marcesher / jenkins.log
Created Mar 16, 2019
jenkins errors after upgrade to 2.138.4
View jenkins.log
INFO: node0 Scavenging every 660000ms
Jenkins home directory: /var/lib/jenkins found at: SystemProperties.getProperty("JENKINS_HOME")
Mar 16, 2019 7:31:34 PM org.eclipse.jetty.server.handler.ContextHandler doStart
INFO: Started w.@3214ee6{Jenkins v2.138.4,/,file:///var/cache/jenkins/war/,AVAILABLE}{/var/cache/jenkins/war}
Mar 16, 2019 7:31:34 PM org.eclipse.jetty.server.AbstractConnector doStart
INFO: Started ServerConnector@3e62d773{HTTP/1.1,[http/1.1]}{}
Mar 16, 2019 7:31:34 PM org.eclipse.jetty.server.Server doStart
INFO: Started @2499ms
Mar 16, 2019 7:31:34 PM winstone.Logger logInternal
INFO: Winstone Servlet Engine v4.0 running: controlPort=disabled
View docker-compose-after-changing-version.log
PS C:\dev\projects\python\kubetest> docker stack deploy --compose-file .\docker-compose.yml web
Ignoring unsupported options: build
Stack web was created
Waiting for the stack to be stable and running...
- Service redis has one container running
PS C:\dev\projects\python\kubetest> kubectl get services
View chocolatey.log
2017-12-15 19:52:19,402 12756 [INFO ] - ============================================================
2017-12-15 19:52:19,581 12756 [INFO ] - Chocolatey v0.10.8
2017-12-15 19:52:19,590 12756 [DEBUG] - Chocolatey is running on Windows v 10.0.16299.0
2017-12-15 19:52:19,592 12756 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2017-12-15 19:52:19,592 12756 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2017-12-15 19:52:19,602 12756 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" install -y --timeout=0 --execution-timeout=0 docker-for-windows
2017-12-15 19:52:19,603 12756 [DEBUG] - Received arguments: install -y --timeout=0 --execution-timeout=0 docker-for-windows
2017-12-15 19:52:19,654 12756 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2017-12-15 19:52:19,661 12756 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers...
2017-12-15 19:52:19,668 12756 [DEBUG] - [Pending] Removing all p
View config.yaml
region: us-east-1
function_name: hello_twilio
handler: service.handler
role: lambda_execution_role
description: trying to use lambda to make twilio calls
# if access key and secret are left blank, boto will use the credentials
# defined in the [default] section of ~/.aws/credentials.
View a_single_job.groovy
new BaseJobBuilder(
name: "operations-jira-restart",
description: "Restarts dev jira. To be used when Jira is not responding",
emails: ["", ""]
).build(this).with {
scm {
git("https://[redacted]/SoftwareDevelopment/operations-jenkins-automation.git", "master")
steps {
shell("fab restart_jira")
marcesher /
Last active Aug 29, 2015
Strange hanging behavior with python httplib in one environment only
# Problem: In only one environment, I see behavior with httplib where issuing a request against a FQDN will hang, but works fine with a URL without the domain
# eg request("GET", "") hangs, but request("GET", "/") does not
# I only see this problem in one of our hosting environments, on both 2.6 and 2.7
# I cannot replicate it anywhere else
import httplib
cn = httplib.HTTPConnection("", 80, timeout=5)

These are questions about browser testing and state.

Imagine a large suite of browser tests that intend to deeply regression test an application. Like most web apps, this involves different types of state: user permissions, expected data in a database, etc. Testing the application requires logging in as different users and/or user types to test different views into the data.

  1. What are patterns for creating expected state prior to running browser tests?
  2. Is it appropriate for the browser tests to communicate directly with the database of the system under test, creating state in the same manner that you would in an integration test?
  3. How important is it that browser tests be decoupled from the application under test, such that the only thing required to run tests are the tests themselves, which can be pointed at any applicable URL (dev, test, staging)?
marcesher / gist:9863995
Created Mar 29, 2014
View gist:9863995
if [[ $1 == *.go ]]
goimports -w $1
View pig.log
at java.lang.String.intern()Ljava/lang/String; (Native Method)
at clojure.lang.Symbol.intern(Ljava/lang/String;)Lclojure/lang/Symbol; (
at clojure.lang.Keyword.intern(Ljava/lang/String;)Lclojure/lang/Keyword; (
at clojure.core$keyword.invoke(Ljava/lang/Object;)Ljava/lang/Object; (core.clj:574)
at$get_data_table$fn__4180$fn__4181.invoke(Ljava/lang/Object;)Ljava/lang/Object; (data.clj:176)
at clojure.core$map$fn__4207.invoke()Ljava/lang/Object; (core.clj:2485)
at clojure.lang.LazySeq.sval()Ljava/lang/Object; (
at clojure.lang.LazySeq.seq()Lclojure/lang/ISeq; (
at clojure.lang.ChunkedCons.chunkedNext()Lclojure/lang/ISeq; (