Skip to content

Instantly share code, notes, and snippets.

View ingydotnet's full-sized avatar

Ingy döt Net ingydotnet

View GitHub Profile
@td-shi
td-shi / POSIX_commands.md
Last active June 17, 2024 09:38
About POSIX commands list

POSIX commands

You should refer the original page. The all copyrights of these documents belong to them.

Using frequent

filter

  • grep :: search a file for a pattern
curl -i -u YOURUSER -X GET https://api.github.com/repos/ORG/REPO/hooks
curl -i -u YOURUSER -X PATCH https://api.github.com/repos/ORG/REPO/hooks/IRC_HOOK_ID -d "{ \"add_events\": [\"push\", \"pull_request\", \"issues\"] }"
@ingydotnet
ingydotnet / Feature:README-extension.md
Last active December 26, 2015 18:08
Feature request: README extensions detected from symlink

Hi guys,

I always hated that I have to add a filetype extension like .markdown or whatever. It would be nice if there was another way to detect the filetype, and just call the file README.

I just thought of a way to do this where nobody loses.

I often symlink my README.md file to a file call doc/my-project.md. And you guys render that as markdown. Great!

Since it's a symlink you can get the extension from the referent file (doc/whatever.ext) and I can call the file just README!

@ingydotnet
ingydotnet / load-yaml-dump-json.bash
Last active August 19, 2024 03:46
load-yaml-dump-json A script to test YAML load against many implementations
#!/bin/bash
# Usage:
#
# cat file.yml | load-yaml-dump-json
# ./load-yaml-dump-json # enter data and ctl-d when finished
yaml=`cat`
echo == Perl