Skip to content

Instantly share code, notes, and snippets.

$ docker run -d --entrypoint "sleep" openjdk:8 900
e23ed611c217d1038a993b4c9794c27e0363530335c50e2ce26be596301aceb0
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e23ed611c217 openjdk:8 "sleep 900" 2 seconds ago Up 1 second vigilant_carson
$ docker exec -ti vigilant_carson /bin/bash
root@e23ed611c217:/# ps -ef
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 01:35 ? 00:00:00 sleep 900
root 7 0 1 01:36 pts/0 00:00:00 /bin/bash
@bspindler
bspindler / signup.html
Last active November 10, 2017 22:37
signup form
<form id="signupForm" action="https://uat.metricly.com/signupAndProvision" onsubmit="addFields();" method="post" >
<input id="firstName" maxlength="40" name="firstName" placeholder="First Name" size="40" type="text" /><br/><br />
<input id="lastName" maxlength="80" name="lastName" placeholder="Last Name" size="40" type="text" /><br><br />
<input id="title" maxlength="40" name="title" placeholder="Title" size="40" type="text" /><br><br />
<input id="company" maxlength="40" name="company" placeholder="Company" size="40" type="text" required /><br>
<div id="companyError" style="font-size: small; color: red;"></div><br />
<input id="email" maxlength="80" name="email" placeholder="Email" size="40" type="text" required /><br>
<div id="emailError" style="font-size: small; color: red;"></div><br />
<input id="phone" maxlength="40" name="phone" placeholder="Phone" size="40" type="text" /><br><br />
<input id="password" maxlength="40" name="password" placeholder="password" size="40" type="password" required /><br><br /
@bspindler
bspindler / format-patch
Created February 22, 2016 01:28
format-patch-for-am
Extract three topmost commits from the current branch and format them as e-mailable patches:
$ git format-patch -3
e24a5c8f584c38001ead4767a5cc352a
Applying the patch:
# show stats.
git apply --stat file.patch
# check for error before applying.
git apply --check file.patch
# apply the patch finally.
git am < file.patch