Skip to content

Instantly share code, notes, and snippets.

View stormisOld's full-sized avatar

storman stormisOld

View GitHub Profile
#!/bin/bash
# Made by st0rmis
# Get the last tag, increment major, minor or patch version and push it
declare -a valid_versions=('major' 'minor' 'patch')
CURTAG=`git fetch --tags && git tag -l --sort=-creatordate | head -1`
CURTAG="${CURTAG/v/}"
IFS='.' read -a vers <<< "$CURTAG"
#!/bin/bash
# Made by st0rmis
if [ -n "$1" ]; then
echo "$(date -j -f "%Y-%m-%d" "$1" +"%s")"
else
read -p "Please enter a date in YYYY-MM-DD format: " DATE1
echo "The UNIX time for $DATE1 is $(date -j -f "%Y-%m-%d" "$DATE1" +"%s")"
fi
@stormisOld
stormisOld / Jenkinsfile
Created September 4, 2019 11:48
Jenkinsfile for php static analysis using docker
#!/usr/bin/env groovy
properties([
pipelineTriggers([
triggers: [
[
$class: 'com.cloudbees.jenkins.plugins.BitBucketTrigger',
]
]
]),
@stormisOld
stormisOld / docker-compose.yml
Created September 9, 2019 12:29
plex, radarr, sonarr, jackett, transmission
version: "3"
services:
plex:
container_name: plex
image: plexinc/pms-docker:latest
restart: unless-stopped
network_mode: host
environment:
- PLEX_UID=1000
- PLEX_GID=1000