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
#!/bin/bash | |
for i in {1..52}; | |
do echo "[dev$i]" >> test | |
for j in {1..232}; | |
do random=$(tr -dc A-Za-z0-9 </dev/urandom | head -c 13 ; echo ''); echo "$random-$j ansible_host=127.0.0.1" >> test; | |
done | |
done |
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
#!/bin/bash | |
dispatcherProcesses=$( ps aux | grep run_dispatcher | awk '{ print $2 }' ) | |
for p in "${dispatcherProcesses[@]}"; do | |
strace -Tf -e verbose=all -v -p "$p" -s 4096 -o <OUTPUT_FILENAME> & | |
done |
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/bin/env python3 | |
import fetcher | |
import time | |
from multiprocessing import Pool | |
# Parallel processing (process-based) | |
workers = Pool() | |
# Test length of time |
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
#!/bin/bash | |
# Install Docker Community Edition on Ubuntu | |
# Author: falcon78921 | |
# Run dpkg --list (check to see if Docker is installed) | |
# Save output as an array | |
dockerPackages=( $(sudo dpkg --list | grep "docker" | awk '{print $2}' | sed -e ':a' -e 'N' -e '$!ba' -e 's/\n/ /g') ) |
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
#!/bin/bash | |
# Ceph Cluster Maintenance | |
# Author: James McClune <[email protected]> | |
# Run this on Ceph monitor node (doesn't matter which one) | |
maintenanceConfig=$1 | |
if [ $maintenanceConfig = "start" ]; then |
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
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: MyKubernetes | |
spec: | |
containers: | |
- name: nginx | |
image: nginx | |
ports: | |
- containerPort: 80 |
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
#!/bin/bash | |
# Benchmarking Ceph | |
# falcon78921 | |
# RBD Variables | |
rbdPool=$1 | |
rbdWriteInterval=$2 | |
rbdReadInterval=$3 |
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
#!/bin/bash | |
# topN - A Simple topN Program in Bash | |
# falcon78921 | |
# First, let's generate a somewhat large file that has random numbers on every line | |
# In order to really benchmark, the user can increase the for loop in order to generate more numbers. | |
# Right now, the for loop will run 50,000 times, which will generate 50,000 random numbers. | |
for i in {1..50000}; do od -vAn -N4 -tu4 < /dev/urandom; done > random.txt |
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
'Program Name: Time | |
'Programmer: falcon78921 | |
'Date: 3/14/12 | |
'Program Purpose: To calculate the total amount of hours and minutes, seconds, days, and years based on inputted minute amounts by user. | |
Public Class frmMain | |
Private Sub frmMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load | |
'Variable and Constant Declaration |