This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e24a5c8f584c38001ead4767a5cc352a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Extract three topmost commits from the current branch and format them as e-mailable patches: | |
$ git format-patch -3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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 / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 |