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
| #!/bin/awk -f | |
| NR==1 { if ($0 != "P3") exit(1); if (!c) c="@"; next } | |
| /^#/ { next } | |
| w==0 { w=$1; h=$2; next } | |
| m==0 { m=$1; r=-1; g=-1; next } | |
| r==-1 { r=$1; next } | |
| g==-1 { g=$1; next } | |
| g!=-1 { | |
| printf("\x1b[38;2;%d;%d;%dm%s", r, g, $1, c); | |
| if (++i==w) { printf("\n"); i=0 } |
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
| #!/bin/bash | |
| set -euo pipefail | |
| cleanup() { | |
| test -n "$tmpf" && rm -f "$tmpf" | |
| } | |
| main() { | |
| trap cleanup EXIT | |
| tmpf="$(mktemp --suffix .png)" |
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/termbox2.h b/termbox2.h | |
| index 2d6775c..1b758ec 100644 | |
| --- a/termbox2.h | |
| +++ b/termbox2.h | |
| @@ -780,20 +780,21 @@ struct cellbuf_t { | |
| struct tb_cell *cells; | |
| }; | |
| struct cap_trie_t { | |
| char c; |
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/cmd.c b/cmd.c | |
| index 6f9f7f9..6021f1c 100644 | |
| --- a/cmd.c | |
| +++ b/cmd.c | |
| @@ -974,6 +974,33 @@ int cmd_close(cmd_context_t *ctx) { | |
| return MLE_OK; | |
| } | |
| +// Execute command by string | |
| +int cmd_cmd(cmd_context_t *ctx) { |
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
| root@packer-67d497be-b156-e8bb-9da2-7f817a1cf1f4:~# uname -p | root@packer-67d48378-fa1d-724b-b421-242ecd096f62:~# uname -p | |
| x86_64 | aarch64 | |
| root@packer-67d497be-b156-e8bb-9da2-7f817a1cf1f4:~# lscpu | root@packer-67d48378-fa1d-724b-b421-242ecd096f62:~# lscpu | |
| Architecture: x86_64 | Architecture: aarch64 | |
| CPU op-mode(s): 32-bit, 64-bit | CPU op-mode(s): 64-bit | |
| Address sizes: 46 bits physical, 48 bits virtual | | |
| Byte Order: Little Endian Byte Order: Little Endian | |
| CPU(s): 16 CPU(s): 16 | |
| On-line CPU(s) list: 0-15 On-line CPU(s) list: 0-15 | |
| Vendor ID: GenuineIntel | Vendor ID: ARM |
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
| <?php | |
| declare(strict_types=1); | |
| // Print data structures necessary for finding grapheme cluster breaks | |
| // https://unicode.org/reports/tr29/ | |
| function print_prop_table_for_url($prefix, $url, $filter, $prop_strip) { | |
| $lines = explode("\n", trim(file_get_contents($url))); | |
| $ranges = []; | |
| foreach ($lines as $line) { |
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/gmagick.c b/gmagick.c | |
| index 5102a42..f86ac2f 100644 | |
| --- a/gmagick.c | |
| +++ b/gmagick.c | |
| @@ -258,22 +258,23 @@ static void php_gmagick_init_globals(zend_gmagick_globals *gmagick_globals) | |
| // 10 is magick number, that seems to be enough. | |
| gmagick_globals->shutdown_sleep_count = 10; | |
| } | |
| /* {{{ PHP_MINIT_FUNCTION(gmagick) |
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
| #!/opt/chef-workstation/embedded/bin/ruby --disable-gems | |
| #--APP_BUNDLER_BINSTUB_FORMAT_VERSION=1-- | |
| require "rubygems" | |
| # def require(f) | |
| # puts format('in %s: require %s (%d)', Thread.current.backtrace[2], f, $:.length) | |
| # super | |
| # end | |
| # this works around OpenSSL FIPS fingerprint matching issue where |
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
| #!/opt/chef-workstation/embedded/bin/ruby --disable-gems | |
| #--APP_BUNDLER_BINSTUB_FORMAT_VERSION=1-- | |
| require "rubygems" | |
| # def require(f) | |
| # puts format('in %s: require %s (%d)', Thread.current.backtrace[2], f, $:.length) | |
| # super | |
| # end | |
| # this works around OpenSSL FIPS fingerprint matching issue where |
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/cookbooks/fb_apache/README.md b/cookbooks/fb_apache/README.md | |
| index 40d6f0c..daff042 100644 | |
| --- a/cookbooks/fb_apache/README.md | |
| +++ b/cookbooks/fb_apache/README.md | |
| @@ -11,20 +11,21 @@ Attributes | |
| * node['fb_apache']['sites'][$SITE][$CONFIG] | |
| * node['fb_apache']['sysconfig'][$KEY] | |
| * node['fb_apache']['sysconfig']['_extra_lines'] | |
| * node['fb_apache']['modules'] | |
| * node['fb_apache']['modules_directory'] |
NewerOlder