Skip to content

Instantly share code, notes, and snippets.

@cyd01
cyd01 / *.c
Created November 11, 2018 15:51
Ceci est un test
#include <stdio.h>
void main(int argc, char[] argv) {
printf("hello, world!\n");
}
@cyd01
cyd01 / ANSI.md
Created May 18, 2021 09:21 — forked from fnky/ANSI.md
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1b
  • Decimal: 27
@cyd01
cyd01 / run.tpl
Created March 8, 2023 13:01 — forked from ictus4u/run.tpl
`docker inspect` template to regenerate the `docker run` command that created a container
docker run \
--name {{printf "%q" .Name}} \
{{- with .HostConfig}}
{{- if .Privileged}}
--privileged \
{{- end}}
{{- if .AutoRemove}}
--rm \
{{- end}}
{{- if .Runtime}}