Skip to content

Instantly share code, notes, and snippets.

View rolling-space's full-sized avatar

Petros rolling-space

View GitHub Profile
@Lissy93
Lissy93 / Example 1 - Getting Started - conf.yml
Last active October 1, 2025 16:36
Example Config Files for Dashy
---
# Page meta info, like heading, footer text and nav links
pageInfo:
title: Dashy
description: Welcome to your new dashboard!
navLinks:
- title: GitHub
path: https://github.com/Lissy93/dashy
- title: Documentation
path: https://dashy.to/docs
@Oratorian
Oratorian / create-cloud-template.sh
Last active January 4, 2023 21:07 — forked from chriswayg/create-cloud-template.sh
This script will download a cloud image of many Linux distros and create a Proxmox 6 KVM template from it.
#!/bin/bash
set -o errexit
clear
printf "\n*** This script will download a cloud image and create a Proxmox VM template from it. ***\n\n"
### HOW TO USE
### Pre-req:
### - run on a Proxmox 6 server
### - a dhcp server should be active on vmbr1
@ilude
ilude / !proxmox_k3s_cluster.sh
Last active August 21, 2024 11:03
Proxmox k3s cluster creation scripts
#!/bin/bash
# curl -s https://gist.githubusercontent.com/ilude/457f2ef2e59d2bff8bb88b976464bb91/raw/cluster_create_setup.sh?$(date +%s) > ~/bin/setup_cluster.sh; chmod +x ~/bin/setup_cluster.sh; setup_cluster.sh
echo "begin cluster_create_setup.sh"
export CREATE_TEMPLATE=1 #false
while test $# -gt 0; do
case "$1" in
--template)
export CREATE_TEMPLATE=0 #true
<match pattern>
@type key_value_parser
key log
remove_key true
remove_prefix /^[^ ]+\s[^ ]+/
use_regex true
filtered_keys key,gkey
</match>
# Input Data
@peterrus
peterrus / docker-compose.yml
Last active December 6, 2024 23:26 — forked from smashnet/docker-compose.yml
Docker-Compose: Mastodon v3.1.3 with Traefik v2
version: "3.5"
# Setup:
# Create .env file containing (without the #'s)
# TRAEFIK_DASHBOARD_DOMAIN=dashboard.domain.com
# TRAEFIK_DASHBOARD_ADMIN_PASSWORD=generate_this_with_htpasswd
# POSTGRES_PASSWORD=s3cr3tstr1ng
# DOMAIN=wow.domain.com
# LETS_ENCRYPT_EMAIL=admin@admin.tld
@mikebridge
mikebridge / deploy-operations.yml
Created March 15, 2019 19:10
Example Kubernetes config to deploy TeamCity server + three agents with mssql on azure
# Kubernetes deployment for teamcity server with three agents, each with mssql/development on azure.
# This assumes a two-node cluster
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: teamcity-server-premium-logs-disk
spec:
accessModes:
# https://docs.microsoft.com/en-us/azure/aks/azure-disks-dynamic-pv
#creates the Traefik container, make sure this is in a folder named Traefik. Also be sure to add the toml file in the same directory.
version: '3'
services:
reverse-proxy:
image: traefik # The official Traefik docker image
#build: ./traefik-library-image/alpine # This is for some lets encrypt dns cert shenanigans, you can probably just pull the image.
command:
- "--debug" # I dont think i need that, might want to remove it
ports:
@ebal
ebal / cloud-init.sh
Created November 18, 2018 10:10
Cloud-init example using a Generic Cloud CentOS-7 on a libvirtd qmu/kvm lab
#!/bin/sh
if [ "$EUID" -ne 0 ]; then
echo -e "\nPlease run as root\neg. sudo $0 \n"
exit
fi
GITHUB_USERNAME="ebal"
cd `mktemp -d`
@satendra02
satendra02 / app.DockerFile
Last active November 19, 2024 17:28
docker+rails+puma+nginx+postgres (Production ready)
FROM ruby:2.3.1
# Install dependencies
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs
# Set an environment variable where the Rails app is installed to inside of Docker image:
ENV RAILS_ROOT /var/www/app_name
RUN mkdir -p $RAILS_ROOT
# Set working directory, where the commands will be ran:
@sebble
sebble / stars.sh
Last active August 25, 2025 09:04
List all starred repositories of a GitHub user.
#!/bin/bash
USER=${1:-sebble}
STARS=$(curl -sI https://api.github.com/users/$USER/starred?per_page=1|egrep '^Link'|egrep -o 'page=[0-9]+'|tail -1|cut -c6-)
PAGES=$((658/100+1))
echo You have $STARS starred repositories.
echo