This file contains hidden or 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
sudo sed -ri 's/=.*/\L&/g; s/public$/public-share/; s/documents/docs/g; s/pictures/pics/g' /etc/xdg/user-dirs.defaults | |
xdg-user-dirs-update --force |
This file contains hidden or 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
FROM scratch | |
ADD rootfs.tar.xz / | |
CMD ["/bin/bash"] |
This file contains hidden or 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
diff --git a/DCO.md b/DCO.md | |
index c9cedee..5bfe198 100644 | |
--- a/DCO.md | |
+++ b/DCO.md | |
@@ -1,11 +1,11 @@ | |
-Docker Developer Certificate of Origin 1.1 | |
+Developer's Certificate of Origin 1.1 | |
-By making a contribution to the Docker Project ("Project"), I represent and warrant that: | |
+By making a contribution to this project, I certify that: |
This file contains hidden or 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
diff --git a/pkg/cgroups/cgroups.go b/pkg/cgroups/cgroups.go | |
index b40e1a3..3df82c2 100644 | |
--- a/pkg/cgroups/cgroups.go | |
+++ b/pkg/cgroups/cgroups.go | |
@@ -62,7 +62,15 @@ func GetInitCgroupDir(subsystem string) (string, error) { | |
return parseCgroupFile(subsystem, f) | |
} | |
-func (c *Cgroup) Path(root, subsystem string) (string, error) { | |
+func (c *Cgroup) Path(subsystem string) (string, error) { |
This file contains hidden or 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 build --rm - | |
FROM busybox | |
RUN true | |
RUN true | |
RUN true | |
RUN false | |
<Ctrl+D> | |
Uploading context 2.048 kB | |
Uploading context | |
Step 0 : FROM busybox |
This file contains hidden or 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
FROM busybox | |
RUN echo -n '[ ] testing...' && sleep 5 && echo -e 'done.\r[✓]' |
This file contains hidden or 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
{ echo 'FROM debian'; echo 'RUN apt-get update'; } | perl -w -MArchive::Tar -e 'my $tar = Archive::Tar->new; { local $/; $tar->add_data("Dockerfile", <>); } print $tar->write' | curl --data-binary @- --header 'Content-Type: application/x-tar' --dump-header - --no-buffer 'http://localhost:4243/build?rm=1&nocache=1' |
This file contains hidden or 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
package main | |
type SomeSqlRelatedStruct struct { | |
SomeValue int `magicsql:"MyDatabaseIntField"` | |
SomeValueThatComesFromSql *string `magicsql:"( | |
SELECT 'some magic subselect' | |
FROM someothertable | |
WHERE MainId = MyDatabaseIntField | |
)"` | |
} |
This file contains hidden or 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
#!/usr/bin/perl | |
# Author: Todd Larason <[email protected]> | |
# $XFree86: xc/programs/xterm/vttests/256colors2.pl,v 1.1 1999/07/11 08:49:54 dawes Exp $ | |
# use the resources for colors 0-15 - usually more-or-less a | |
# reproduction of the standard ANSI colors, but possibly more | |
# pleasing shades | |
# colors 16-231 are a 6x6x6 color cube | |
for ($red = 0; $red < 6; $red++) { |
This file contains hidden or 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
package netlink | |
// #include <net/if.h> | |
import "C" | |
import ( | |
"syscall" | |
"unsafe" | |
) |