Example: ./whatsnew-gist '2 hours ago' < gist-urls.txt
Use with moderation: Rate limits for unauthenticated IP addresses are very low (60 requests per hour as of 2016-06-20).
| #! /bin/sh | |
| # List all courses available for the specified semester. | |
| # | |
| # The courses to consider are given trought the standard input (one code by | |
| # line). | |
| # | |
| # Takes one argument: the semester code, that is the year, followed by 1, 2 or | |
| # 3. For example, `20153` corresponds to the semester of fall 2015. | |
| # | |
| # Copyright (c) 2016, jcbrinfo <[email protected]>. |
| Initialize memory with "\0\0zero\0one\0two\0three\0" | |
| (space for a counter; read index; array of strings) | |
| 0x char | |
| 65 == 'e' | |
| 68 == 'h' | |
| 6E == 'n' | |
| 6F == 'o' | |
| 72 == 'r' | |
| 74 == 't' | |
| 77 == 'w' |
| /* For use in Stylish. */ | |
| @namespace url(http://www.w3.org/1999/xhtml); | |
| @-moz-document domain("github.com") { | |
| body, .markdown-body { | |
| font-family: "Noto Sans", sans-serif; | |
| } | |
| } |
This procedure explain how to migrate the content of one internal drive to another (example: upgrading your hard disk for a SSD), without requiring more than one SATA port (so the procedure works on laptops).
Note: This procedure works well if using a MBR. On the other hand, GPTs are more complex so we can not just copy them as-is: we have to recreate the headers. This implies that with GPTs, some systems may become unbootable (until some setting are changed manually) because IDs have changed.
WARNING: Some steps might assume 512 octets sectors.
Before
[/]: / "Your comment here"
After
It exploit the “reference-style” link syntax (and workarounds various bugs) to make the egine fully ignore the comment line.
| #! /bin/bash | |
| # A thin wrapper over the Nit’s `./tests.sh` script that displays the changes | |
| # since the last run. | |
| # | |
| # Also, recompiles (except when `--no-make` is specified) the invoked engine | |
| # before running the tests. | |
| # | |
| # Synopsis | |
| # -------- |
| #! /bin/sh | |
| # dirname <path> | |
| # | |
| # Strip the last path component. | |
| # | |
| # Apply the same transformation than `dirname(1)`, but end the resulting path | |
| # with `/`, so it can be safely used inside a `"$(…)"` | |
| # | |
| # Edge cases |