Skip to content

Instantly share code, notes, and snippets.

Marc Esher marcesher

Block or report user

Report or block marcesher

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
marcesher / gist:7168642
Last active May 24, 2020
install 7zip on linux
View gist:7168642
In this case, in AWS Linux:
yum-config-manager --enable epel
yum install -y p7ip
cp /usr/bin/7za /usr/bin/7z
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 / 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 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 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
marcesher / rot13.go
Created Jan 8, 2014
go tour rot13 exercise I imagine the strings.ToLower version is much slower. experimenting is all.
View rot13.go
package main
import (
type rot13Reader struct {
r io.Reader
marcesher / go_tour_http_handle_exercise.go
Created Jan 8, 2014
simple solution to go tour exercise for http.Handle
View go_tour_http_handle_exercise.go
package main
import (
type String string
type Hello struct {
Greeting string
marcesher / slightly_better_wordcount.go
Last active Jan 1, 2016
ugly-ass solution for Go wordcount map exercise
View slightly_better_wordcount.go
package main
import (
func WordCount(s string) map[string]int {
m := make(map [string] int)
for _, v := range strings.Fields(s) {
You can’t perform that action at this time.