Skip to content

Instantly share code, notes, and snippets.

@BSFishy
BSFishy / osd-update.js
Created June 5, 2023 17:51
Updates a package (defaults to OUI) in all of OSD
#!/usr/bin/env node
const fs = require('fs');
const path = require('path');
function updateVersion(input, pkg, version) {
var regex = new RegExp(`^([ \t]+"${pkg.replace('/', '\\/')}"): "([^"]*)"(,?)`, "gm");
function replacer(match, group1, group2, group3) {
return `${group1}: "${version}"${group3}`;
@BSFishy
BSFishy / logoFinder.ts
Created April 4, 2023 19:06
Find usages of logos in OpenSearch
import { Octokit } from 'octokit'
const LOGOS = [
'logoAppSearch',
'logoBeats',
'logoBusinessAnalytics',
'logoCloud',
'logoCloudEnterprise',
'logoCode',
'logoElastic',
@BSFishy
BSFishy / home.adoc
Last active July 9, 2019 14:15
AsciiDoc testing document

Document Test

Table of Contents

Content entered directly below the header but before the first section heading is called the preamble.

First level heading

@BSFishy
BSFishy / build.sh
Created April 20, 2018 00:41
My build script for Dart natives
#!/usr/bin/env bash
set -e
cd $(dirname $0)
SCRIPT_DIR=$(pwd)
DART_BIN=$(which dart)
DART_SDK_DIR=$(dirname ${DART_BIN})/..
PLATFORM="$(uname -s)"
@BSFishy
BSFishy / main.py
Created November 24, 2014 00:01
Number Game
#!/usr/bin/python3
import random
try:
import tkinter as Tkin
except:
import Tkinter as Tkin
class numgame: