Skip to content

Instantly share code, notes, and snippets.

@Mishco
Mishco / content.md
Last active April 25, 2024 14:29
Setup HashiCorp Vault on docker

Setup HashiCorp Vault on docker

Vault secures, stores, and tightly controls access to tokens, passwords, certificates, API keys, and other secrets in modern computing. Vault is primarily used in production environments to manage secrets. Vault is a complex system that has many different pieces. There is a clear separation of components that are inside or outside of the security barrier. Only the storage backend and the HTTP API are outside, all other components are inside the barrier.

Vault_architecture

Figure 1: Architecture of Vault and Spring App (Click to enlarge)

The storage backend is untrusted and is used to durably store encrypted data. When the Vault server is started, it must be provided with a storage backend so that data is available across restarts. The HTTP API similarly must be started by the Vault server on start so that clients can interact with it.

layout title description tags
default
SQL Style Guide
A guide to writing clean, clear, and consistent SQL.
data
process

Purpose

@aslakhellesoy
aslakhellesoy / del.txt
Created December 27, 2013 21:27
Delete redis keys by wildcard
eval "return redis.call('del', unpack(redis.call('keys', 'foo.*')))" 0
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active April 25, 2024 14:27
Complete Recent Discord Quest

Complete Recent Discord Quest

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
  2. Join a vc
  3. Stream any window (can be notepad or something)
  4. Press Ctrl+Shift+I to open DevTools
  5. Go to the Console tab
  6. Paste the following code and hit enter:
let wpRequire;
@hshrews
hshrews / srt_to_txt.py
Last active April 25, 2024 14:25
Python script to convert .srt file to .txt file containing just the text as a data blob.
"""
About:
Looks in the given directory for any .srt (transcript) files to convert to a simple,
single line of text with timestamps and numbered lines removed.
Command line execution:
python srt_to_txt.py <source_directory> <file_encoding>
@:param <source_directory> is the location of the .srt file(s)
@:param <file_encoding> defaults to 'utf-8'
@pscordeiro
pscordeiro / addSibs.js
Created April 24, 2024 23:44 — forked from IgorHalfeld/addSibs.js
add sibelius to any website
function addSibs () {
const div = document.createElement('div')
const img = document.createElement('img')
div.style.position = 'fixed'
div.style.zIndex = '99999999'
div.style.right = '100px'
div.style.bottom = '0px'
div.appendChild(img)
@IgorHalfeld
IgorHalfeld / addSibs.js
Last active April 25, 2024 14:24
add sibelius to any website
function addSibs () {
const div = document.createElement('div')
const img = document.createElement('img')
div.style.position = 'fixed'
div.style.zIndex = '99999999'
div.style.right = '100px'
div.style.bottom = '0px'
div.appendChild(img)
@palkan
palkan / Gemfile
Last active April 25, 2024 14:23
RSpec profiling with RubyProf and StackProf
gem 'stackprof', require: false
gem 'ruby-prof', require: false
@rollyar
rollyar / unistall_firebird.sh
Last active April 25, 2024 14:19
Uninstall Firebird from Mac
#!/bin/sh
echo "Clean Services"
echo "Clean User"
dscl localhost -delete /Local/Default/Users/firebird
echo "Clean Group"
dscl localhost -delete /Local/Default/Groups/firebird
if [ -f "/Library/StartupItems/Firebird" ]; then
echo "Remove SuperServer StartupItem"
rm -fr /Library/StartupItems/Firebird
fi