Skip to content

Instantly share code, notes, and snippets.

@treydock
treydock / job_submit.lua
Created February 1, 2016 17:13
SLURM Lua job submit plugin - 15.08
--[[
SLURM job submit filter for QOS
Some code and ideas pulled from https://github.com/edf-hpc/slurm-llnl-misc-plugins/blob/master/job_submit/job_submit.lua
--]]
--########################################################################--
--
@vasanthk
vasanthk / System Design.md
Last active October 28, 2025 05:19
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@bdenning
bdenning / Dockerfile
Last active May 26, 2021 13:17
Dockerfile for creating Splunk container
FROM docker.io/centos:latest
MAINTAINER Bowen Denning <[email protected]>
ENV PATH=$PATH:/opt/splunk/bin
RUN yum update -y
## Download and install Splunk
RUN curl https://download.splunk.com/products/splunk/releases/6.4.1/linux/splunk-6.4.1-debde650d26e-linux-2.6-x86_64.rpm -O && \
yum install -y splunk*.rpm && \
@leonardofed
leonardofed / README.md
Last active October 23, 2025 11:18
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


@miglen
miglen / 2016-devops-conf-playlist.md
Last active June 23, 2018 10:08
2016 DevOps Conferences - Video playlists
@muresan
muresan / Vagrantfile
Created November 23, 2016 16:37
Simple "run a CentOS 7 box for Splunk" Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
#TODO
Vagrant.configure(2) do |config|
hosts = {
'splunk01' => { 'ip' => '192.168.124.201', 'cpus' => 1, 'memory' => 2048, 'autostart' => true },
# 'splunk02' => { 'ip' => '192.168.124.202', 'cpus' => 1, 'memory' => 2048, 'autostart' => true },
}
@chrhuber
chrhuber / nullQueue Example
Last active April 16, 2017 20:38
Splunk Summary Indexing Licence Usage
[debug_log_transform]
REGEX=DEBUG\s[
DEST_KEY = queue
FORMAT = nullQueue
Link https://answers.splunk.com/answers/11617/route-unwanted-logs-to-a-null-queue.html
@mnarayan
mnarayan / backup_sherlock.md
Last active December 19, 2023 03:12
MATLAB on sherlock

How to backup data from sherlock to google drive

  1. Download and install rclone to your $HOME/bin directory. Setup up rclone to connect to your google drive. Suppose you call your remote google drive drive.

  2. Create a bash script called backup_gdrive.sh with the following information

#!/bin/sh

STUDY_DIR=STUDY
LOCAL_DIR=${SCRATCH}/${STUDY_DIR}
@truatpasteurdotfr
truatpasteurdotfr / gist:c160ffaa4b46a47ad196220194e715f0
Created February 17, 2017 13:32
vagrant-virtualbox-singularity-osx.txt
# install vagrant
macmini:vagrant tru$ VERS=1.9.1
macmini:vagrant tru$ curl https://releases.hashicorp.com/vagrant/${VERS}/vagrant_${VERS}.dmg > vagrant_${VERS}.dmg
macmini:vagrant tru$ curl https://releases.hashicorp.com/vagrant/${VERS}/vagrant_${VERS}_SHA256SUMS > vagrant_${VERS}_SHA256SUMS
macmini:vagrant tru$ grep vagrant_${VERS}.dmg vagrant_${VERS}_SHA256SUMS | shasum -a 256 -c && \
macmini:vagrant tru$ hdiutil mount vagrant_${VERS}.dmg && \
macmini:vagrant tru$ sudo installer -pkg /Volumes/Vagrant/Vagrant.pkg -target /
macmini:vagrant tru$ hdiutil unmount /Volumes/Vagrant
# installing VirtualBox
macmini:vagrant tru$ VERSVB=5.1.14
@cmavr8
cmavr8 / secure-ssh.yml
Last active January 4, 2024 19:52
Secure SSH configuration ansible playbook. Last updated years ago, NOT recommended for use. There are better ways to do this today.
---
# SSH server settings, in line with https://stribika.github.io/2015/01/04/secure-secure-shell.html
# Before using, change myhosts to your hosts' nickname and myuser to your username (two instances! make sure you replace both or you'll be locked out of ssh!)
- hosts: myhosts
become: true
remote_user: myuser
tasks:
# Key exchange, ciphers and MACs
- lineinfile: dest=/etc/ssh/sshd_config regexp='^KexAlgorithms' line='KexAlgorithms [email protected],diffie-hellman-group-exchange-sha256'