Skip to content

Instantly share code, notes, and snippets.

View xaviablaza's full-sized avatar

Xavi Ablaza xaviablaza

View GitHub Profile
@xaviablaza
xaviablaza / keck-nvidia-docker.sh
Last active October 13, 2018 21:12
Installing nvidia-docker on Chapman Keck Center machines
#!/bin/sh
wget https://developer.nvidia.com/compute/cuda/10.0/Prod/local_installers/cuda_10.0.130_410.48_linux
sudo sh ./cuda_10.0.130_410.48_linux
rm ./cuda_10.0.130_410.48_linux
distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.repo | sudo tee /etc/yum.repos.d/nvidia-docker.repo
sudo yum -y install nvidia-docker2
sudo pkill -SIGHUP dockerd
---
kind: Deployment
apiVersion: extensions/v1beta1
metadata:
name: cu-recweek-2018
labels:
app: recweek-2018
chapter: cu
spec:
replicas: 1
---
kind: Deployment
apiVersion: extensions/v1beta1
metadata:
name: admu-recweek-2018
labels:
app: recweek-2018
chapter: admu
spec:
replicas: 1
@xaviablaza
xaviablaza / core-checker.sh
Last active June 21, 2018 01:45
Checks the status of stellar-core
#!/bin/bash
# sudo apt install jq
# $1 should be core ip
# $2 should be core port
CORE_STATE=$(curl -s "$1/info" | jq -r '.info.state')
SYNCED_STATE="Synced!"
# if not "Synced!" send "boo"
if [ "$CORE_STATE" != "$SYNCED_STATE" ]; then
echo "boo"

Keybase proof

I hereby claim:

  • I am xaviablaza on github.
  • I am xaviablaza (https://keybase.io/xaviablaza) on keybase.
  • I have a public key ASD-4xeT311esh6rU4RUBJxgnwhERng6VQXkG0HR1XEGQQo

To claim this, I am signing this object: