This file contains hidden or 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
import org.apache.commons.lang3.RandomStringUtils; | |
import java.util.Calendar; | |
import java.util.Date; | |
import java.util.Random; | |
public final class Randomness { | |
private static final Random random = new Random(System.currentTimeMillis()); |
This file contains hidden or 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
# Ignore docs files | |
_gh_pages | |
_site | |
.ruby-version | |
# Numerous always-ignore extensions | |
*.diff | |
*.err | |
*.orig | |
*.log |
This file contains hidden or 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
#!/bin/bash | |
while true; do | |
read -p "Do you wish to continue (yes or no)? " yn | |
case $yn in | |
[Yy]* ) break;; | |
[Nn]* ) exit;; | |
* ) echo "Please answer yes or no.";; | |
esac | |
done |
Create symlink to where VMware Fusion stores VM images, use this symbolic path instead default spacey path. On my OSX dev machine that folder is $HOME/Virtual\ Machines.localized
.
# symlink path $HOME/vms
ln -s Virtual\ Machines.localized vms
This file contains hidden or 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
#!/bin/bash | |
writeYo() { | |
X_00=`stat -tc %s .` | |
dd if=/dev/zero of=/tmp/diskyo-${X_00} bs=${X_00} count=100k conv=fdatasync,notrunc status=progress | |
X_02=$(( 2*$X_00 )) | |
dd if=/dev/zero of=/tmp/diskyo-${X_02} bs=${X_02} count=100k conv=fdatasync,notrunc status=progress | |
X_04=$(( 4*$X_00 )) | |
dd if=/dev/zero of=/tmp/diskyo-${X_04} bs=${X_04} count=100k conv=fdatasync,notrunc status=progress | |
X_06=$(( 6*$X_00 )) | |
dd if=/dev/zero of=/tmp/diskyo-${X_06} bs=${X_06} count=100k conv=fdatasync,notrunc status=progress |
This file contains hidden or 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
#!/bin/bash | |
# -------------------------------------------------------------------- | |
# [init] Create run dir, env file if they don't exist, then source env | |
# -------------------------------------------------------------------- | |
init() { | |
MINIO_CONTAINER_NAME=$1 | |
MINIO_RUN_DIR=/data1/run/${MINIO_CONTAINER_NAME} | |
MINIO_DATA=${MINIO_RUN_DIR}/data | |
MINIO_CERTS=${MINIO_RUN_DIR}/certs | |
# create run dir for container instance |
An experiment running multiple Rootless containers in podman.
- Option 1: Port-forwarding
- Option 2: Podman Pods
Source Code
This file contains hidden or 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
# ----------------------------------------------------------------------------- | |
# corbs-bashrc:v1 | |
# ----------------------------------------------------------------------------- | |
# Source global definitions | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc | |
fi | |
# User specific environment |
OlderNewer