Skip to content

Instantly share code, notes, and snippets.

View ingydotnet's full-sized avatar

Ingy döt Net ingydotnet

View GitHub Profile
name: Ingy döt Net
email: ingy@ingy.net
github: https://github.com/ingydotnet
matrix: https://matrix.to/#/@ingy:yaml.io
@ingydotnet
ingydotnet / foo.pod
Last active September 9, 2022 13:28
foo.pod

GitHub

Travis

echo O HAI
#!/bin/bash
die() { echo "$*"; exit 1; }
main() {
program=$0
[[ $# -ge 2 ]] ||
die "usage: $program <watch-file> <command> [<command-args>]"
file=${1:?first arg must be file path}; shift
From: https://groups.yahoo.com/neo/groups/sml-dev/conversations/messages/4729
On Sun, May 13, 2001 at 03:39:53PM -0000, jimfl@... wrote:
| This looks very similar to the format of the Perl module
Data::Denter
| (by Brian Ingerson) for which there is already a fine parser
available
| (in perl, of course).
Thank you so much for taking the time to
#!/usr/bin/env testml v0.2.0
*in-yaml.parse.to-event == *test-event
*in-yaml.load.dump == *out-yaml
*in-yaml.load.to-json == *in-json.load-json.to-json
Fri May 27 20:28:35 UTC 2016

I suggest we call our "Getting YAML Moving Forward" project "yaml-io" or "yio" for short. I own yaml.io domain and we can use that for public facing things. I also got the https://github.com/organizations/yamlio/ org. Let's use yamlio as a staging area for the yaml org.

I think that we need to simultaneously:

  • Do stuff (create doc, tests, websites, implementations)
  • Get more and more people involved

Here is a list of first steps that we could start on to get yio moving forward:

  • Add to the test suite for 1.2, 1.3 and 2.0 tests (tag the tests appropriately)
@ingydotnet
ingydotnet / patch
Created February 12, 2016 22:10
appspec command_string
diff --git a/ext/App-Spec-p5/lib/App/Spec/Completion/Bash.pm b/ext/App-Spec-p5/lib/App/Spec/Completion/Bash.pm
index 56ca853..a1f4246 100644
--- a/ext/App-Spec-p5/lib/App/Spec/Completion/Bash.pm
+++ b/ext/App-Spec-p5/lib/App/Spec/Completion/Bash.pm
@@ -261,6 +261,7 @@ sub dynamic_completion {
my $name = $p->name;
my $def = $p->completion;
my $command = $def->{command};
+ my $command_string = $def->{command_string};
my $op = $def->{op};
@ingydotnet
ingydotnet / docker.md
Created January 13, 2016 19:55
Committing Docker containers
  • Start a fresh Ubuntu container: docker run -it ubuntu bash
  • Inside the container:
    • apt-get update
    • apt-get install figlet
    • Detach from container: <ctl-p> <ctl-q>
  • Get the container id: docker ps
  • Save the container as an image: docker commit $container_id my-image
  • Test the new image: docker run my-image figlet hello