Skip to content

Instantly share code, notes, and snippets.

View LincolnBryant's full-sized avatar
💭
Input translation, output rotation

Lincoln Bryant LincolnBryant

💭
Input translation, output rotation
View GitHub Profile

Logging in to the Analysis Facility

First you will need to sign up on the Analysis Facility website: https://af.uchicago.edu

Please use your institutional or CERN identity when signing up, as this will make the approval process smoother.

Once you have created your account and been approved, you will need to upload an SSH Public Key.

If you are not sure if you have generated an SSH Public Key before, try the

Portal is running under a uwsgi process behind nginx.

For the python3 transition:

Stop uwsgi, stop nginx

systemctl stop nginx
systemctl stop uwsgi
@LincolnBryant
LincolnBryant / erlang-interface-lua.md
Last active November 10, 2020 02:04
Creating Erlang interface functions for Lua via Luerl

Creating Erlang interface functions for Lua

It is possible to create Erlang interface functions to expose an API for your application to Lua.

In this example we will create an Erlang function to calculate the factorial of a number, and then call it from our Lua code.

Using rebar3 we will first create a new application

Logged into 192.41.233.196 / sc-stor-dmd01

Installed strace sudo yum install strace -y

Logged into 192.41.233.197 / sc-stor-nvm01

Starting dd of 2G file

# dd if=/dev/urandom of=foo bs=8M count=256 conv=sync

Docker, Kubernetes, etc

yum update -y

reboot

yum install docker -y
systemctl start docker
racadm>>racadm remoteimage -c -l 10.10.2.242:/export/slate3.img 

racadm remoteimage -c -l 10.10.2.242:/export/slate3.img  
Remote Image is now Configured

racadm>>racadm serveraction powercycle 

racadm serveraction powercycle  
Server power operation initiated successfully
```
racadm>>racadm remoteimage -c -l 10.10.2.242:/export/slate3.img
racadm remoteimage -c -l 10.10.2.242:/export/slate3.img
Remote Image is now Configured
racadm>>racadm serveraction powercycle
racadm serveraction powercycle
Server power operation initiated successfully
def retire(self, n):
"""
trigger retirement of this many idle pilots. just remove them from the local queue
"""
apiVersion: apps/v1
kind: Deployment
metadata:
name: globus-connect
spec:
selector:
matchLabels:
run: globus-connect
replicas: 1
template:
coreos-23 ~ # kubeadm init --pod-network-cidr=192.168.0.0/16 --feature-gates CoreDNS=true
[init] Using Kubernetes version: v1.10.4
[init] Using Authorization modes: [Node RBAC]
[preflight] Running pre-flight checks.
[WARNING SystemVerification]: docker version is greater than the most recently validated version. Docker version: 17.12.1-ce. Max validated version: 17.03
[WARNING Hostname]: hostname "coreos-23.grid.uchicago.edu" could not be reached
[WARNING Hostname]: hostname "coreos-23.grid.uchicago.edu" lookup coreos-23.grid.uchicago.edu on 128.135.247.50:53: no such host
[preflight] Starting the kubelet service
[certificates] Generated ca certificate and key.
[certificates] Generated apiserver certificate and key.