- AIX uses RPM and
yum
. - default shell is
ksh
. - Before you start, run
df -m
to make sure you have enough disk space to do development. Ask for someone who knows IBM's cloud UI to fix it, lest you be forced to wrangle with AIX's volume manager. vim
,git
andgolang
available via yum.- Dev Toolbox: https://www.ibm.com/support/pages/node/883796. Installing this might help a few things. There's a
yum.sh
script at the top of the page. - Once you install the Dev Toolbox, yum will have an
AIX_toolbox
repo that contains standard GNU coreutils. The ones you get are not standard. For example,ls --color=auto
doesn't work out of the box. - Run
yum install coreutils
once you have theAIX_toolbox
repo. Addexport PATH=/usr/linux/bin:opt/freeware/bin:$PATH
to your.bashrc
to get standard gnu coreutils.
This file contains 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
package main | |
/* | |
#include <stdlib.h> | |
#include <sys/sysctl.h> | |
#include <sys/mount.h> | |
#include <mach/mach_init.h> | |
#include <mach/mach_host.h> | |
#include <mach/host_info.h> | |
#include <libproc.h> |
This file contains 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
#!/usr/local/bin/python3 | |
import json | |
def fetch_nodes(stats_file: str): | |
""" | |
return node data from _node/stats | |
""" | |
raw_fd = open(stats_file) |
This file contains 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
[package] | |
name = "test-ffi" | |
version = "0.1.0" | |
edition = "2018" | |
[lib] | |
crate-type = ["cdylib"] # Creates dynamic lib | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html |
I hereby claim:
- I am fearful-symmetry on github.
- I am fearful_symmetry (https://keybase.io/fearful_symmetry) on keybase.
- I have a public key ASDpUHyAPVF3IW11CHNj10CENe9ZRQDtsMvPHGEmMHmz9go
To claim this, I am signing this object: