Skip to content

Instantly share code, notes, and snippets.

View dabukalam's full-sized avatar

Danny Abukalam dabukalam

View GitHub Profile

Keybase proof

I hereby claim:

  • I am dabukalam on github.
  • I am dabukalam (https://keybase.io/dabukalam) on keybase.
  • I have a public key whose fingerprint is 0FD2 BEE7 8FC0 66C2 EB04 9C6C F54D D196 2651 DB1A

To claim this, I am signing this object:

#!/bin/bash
NODES=(redfox silverfox swiftfox kitfox)
(
for ((i=0;i<100;i++)); do
echo resource-definition create tr$i
echo volume-definition create tr$i 50G
#linstor resource create --async --auto-place 2 --storage-pool ssdthin tr$i
# autoplace does not distribute the resources on a thin pool.
i1=$((i % ${#NODES[*]}))
i2=$(((i+1) % ${#NODES[*]}))
@dabukalam
dabukalam / scalewaykernelscript
Created August 26, 2018 22:50
Scaleway custom kernel module script
#!/bin/bash
# Determine versions
arch="$(uname -m)"
release="$(uname -r)"
upstream="${release%%-*}"
local="${release#*-}"
# Get kernel sources
mkdir -p /usr/src
wget -O "/usr/src/linux-${upstream}.tar.xz" "https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-${upstream}.tar.xz"