Skip to content

Instantly share code, notes, and snippets.

@andyone
andyone / mkcryptpasswd-problems.recipe
Created October 31, 2023 11:47
mkcryptpasswd recipe with problems
# Bibop recipe for MkCryptPasswd
# See more: https://kaos.sh/bibop
pkg mkcryptpasswd
fast-finish yes
var password MyPassword1234
var salt SALT1234
var salt_length 9
@andyone
andyone / docker-dev-env.sh
Last active October 11, 2022 10:31
Script for installing docker and tools
#!/bin/bash
################################################################################
DIVE_VER="0.10.0"
GRYPE_VER="0.50.2"
HADOLINT_VER="2.10.0"
TRIVY_VER="0.32.1"
################################################################################
sudo sed -i -e 's,^#\(baseurl\),\1,g' \
-e 's,mirror\(\.centos\.org\),vault\1,g' \
-e 's,^\(mirrorlist\),#\1,g' /etc/yum.repos.d/CentOS-Base.repo
@andyone
andyone / trianglify.html
Created July 19, 2020 00:08
Trianglify Generator
<!DOCTYPE html>
<html>
<head>
<title>Trianglify Generator</title>
</head>
<script src='https://unpkg.com/trianglify@^4/dist/trianglify.bundle.js'></script>
<script>
var pattern = null;
// https://coolors.co/palettes/trending
@andyone
andyone / tests.md
Created June 6, 2020 13:15
Icecast metadata update tests

/metadata?mount=/stream&mode=updinfo&song=Jonas+Langer+-+Sometimes+I+Think+of+You

<title>Jonas Langer - Sometimes I Think of You</title>
<yp_currently_playing>Jonas Langer - Sometimes I Think of You</yp_currently_playing>

/metadata?mount=/stream&mode=updinfo&title=Jonas+Langer+-+Sometimes+I+Think+of+You

import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.plugin.devstatus.api.DevStatusSummaryService
def devStatusSummaryService = ComponentAccessor.getOSGiComponentInstanceOfType(DevStatusSummaryService.class)
def currentUser = ComponentAccessor.jiraAuthenticationContext.getUser()
def prData = devStatusSummaryService.getDetailData(issue.id, "stash", "pullrequest", currentUser).get()
if (prData == null) {
return 0
}
! Configuration File for keepalived
vrrp_instance VI_1 {
state MASTER
interface eth0
virtual_router_id 51
priority 150
advert_int 1
authentication {
auth_type PASS
@andyone
andyone / transcoder.sh
Last active March 30, 2020 16:17
Icecast FFmpeg Transcoder
#!/bin/env bash
################################################################################
SOURCE_HOST="127.0.0.1:8000"
################################################################################
main() {
if [[ $# -lt 2 ]] ; then
@andyone
andyone / margo.go
Created November 5, 2018 12:22
MARGO
package margo
import (
"margo.sh/golang"
"margo.sh/mg"
"time"
)
// Margo is the entry-point to margo
func Margo(m mg.Args) {
@andyone
andyone / pg.sh
Created September 29, 2018 23:29
#!/bin/bash
main() {
if [[ "$1" == "6" ]] ; then
check6
else
check7
fi
}