When building an Elixir application docker image on an arm64 platform, the process crashes with a variety of errors:
- Segmentation fault
- Error code 139
- Error code 143
- Memory request of some enormous size
When building an Elixir application docker image on an arm64 platform, the process crashes with a variety of errors:
| # Bash best practices and style-guide | |
| Just simple methods to keep the code clean. | |
| Inspired by [progrium/bashstyle](https://github.com/progrium/bashstyle) and [Kfir Lavi post](http://www.kfirlavi.com/blog/2012/11/14/defensive-bash-programming/). | |
| ## Quick big rules | |
| * All code goes in a function | |
| * Always double quote variables |
| <?php | |
| $ch = curl_init('https://www.howsmyssl.com/a/check'); | |
| curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | |
| $data = curl_exec($ch); | |
| curl_close($ch); | |
| $json = json_decode($data); | |
| echo "<pre>TLS version: " . $json->tls_version . "</pre>\n"; |
| #include <math.h> | |
| #include <algorithm> | |
| #include <string> | |
| #include <immintrin.h> | |
| using namespace std;typedef float R; | |
| #define _W 79 | |
| #define _H 39 | |
| #define EP 0.01f | |
| #define OP operator | |
| #define C const |
| #!/bin/sh | |
| if git rev-parse --verify HEAD >/dev/null 2>&1 | |
| then | |
| against=HEAD | |
| else | |
| # Initial commit: diff against an empty tree object | |
| against=4b825dc642cb6eb9a060e54bf8d69288fbee4904 | |
| fi |
| --- | |
| - | |
| hosts: remote_host | |
| gather_facts: no | |
| name: "Testing synchronize" | |
| vars: | |
| start_time: "{{ lookup('pipe','date') }}" | |
| test_files: | |
| - test1 | |
| - test2 |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| %%% xmltest.erl | |
| %%% | |
| %%% @author Hank Wang <drapho@gmail.com> | |
| %%% | |
| %%% @doc simple sample to parse XML by xmerl | |
| %%% | |
| -module(xmltest). | |
| -include_lib("xmerl/include/xmerl.hrl"). |