Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# I did this setup on nslskafka01, with the user consumer. | |
# Create a new user | |
useradd consumer | |
# Update consumer password to uuid4 | |
passwd consumer | |
# Install conda. | |
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh |
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
set expandtab | |
set number | |
set cursorline | |
set incsearch | |
set hlsearch | |
highlight RedundantSpaces ctermbg=red guibg=red | |
match RedundantSpaces /\s\+$/ | |
autocmd BufWritePre * :%s/\s\+$//e | |
set tabstop=4 softtabstop=0 expandtab shiftwidth=4 |
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
""" | |
This serves a directory of static files. | |
It also tells you what files are available for a run. | |
""" | |
from fastapi import FastAPI | |
from fastapi.staticfiles import StaticFiles | |
import os | |
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
""" | |
This builds and serves databroker-pack files | |
""" | |
import asyncio | |
import os | |
import pathlib | |
import subprocess | |
import tempfile | |
import zipfile |
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 | |
# ------------------------------------------------------------------ | |
# Simple Backup Script for MongoDB | |
# ------------------------------------------------------------------ | |
# Definitions | |
MONGO_HOST='localhost' | |
MONGO_PORT="27017" | |
DUMP_PATH='/backup/mongo_backup' | |
DAYS_OF_BACKUPS=2 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.