Skip to content

Instantly share code, notes, and snippets.

View larstobi's full-sized avatar

Lars Tobias Skjong-Børsting larstobi

  • Skylars AS
  • Oslo, Norway
View GitHub Profile
- task: Bash@3
displayName: 'Check if Package Exists'
inputs:
targetType: 'inline'
script: |
set -e
# Configure default organization and project
az devops configure --defaults organization=$(System.TeamFoundationCollectionUri) project=$(System.TeamProject)
# azure-pipelines.yml
variables:
currentSemver: '1.2.3' # Replace with your current semver
ACR_NAME: 'myregistry' # Replace with your ACR name
REPO_NAME: 'myrepository' # Replace with your repository name
steps:
- task: AzureCLI@2
inputs:
azureSubscription: 'MyAzureSubscription' # Replace with your Azure subscription
#!/bin/bash
declare -A args
while IFS= read -r line; do
# Remove comments
line="${line%%#*}"
# Trim whitespace
line="$(echo -e "${line}" | sed -e 's/^[[:space:]]*//')"
trigger: none
schedules:
- cron: '0 0 * * *' # Runs daily at midnight UTC
displayName: Daily Docker Pull
branches:
include:
- main
always: true
@larstobi
larstobi / starship.toml
Created October 17, 2024 10:37
Starship config
[time]
disabled = false
time_format = "%T"
format = "[ $time ]($style)"
utc_time_offset = "local"
time_range = "-"
style = "white"
[terraform]
symbol = "tf:"
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
zap_scan:
runs-on: ubuntu-latest
name: Scan the webapplication
FROM jasonrivers/nagios:latest
ENV NRDP_REPO=https://github.com/NagiosEnterprises/nrdp
ENV NRDP_VERSION=2.0.3
# install nrdp plugin for passive checks & external commands
RUN cd /tmp/ && \
wget ${NRDP_REPO}/archive/${NRDP_VERSION}.tar.gz && \
tar xvf ${NRDP_VERSION}.tar.gz && \
cd nrdp-${NRDP_VERSION} && \
autoreconf-2.69: Entering directory `.'
autoreconf-2.69: configure.ac: not using Gettext
autoreconf-2.69: running: aclocal --force -I config
autoreconf-2.69: configure.ac: tracing
autoreconf-2.69: configure.ac: AM_GNU_GETTEXT is used, but not AM_GNU_GETTEXT_VERSION
autoreconf-2.69: running: libtoolize --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'config'.
libtoolize: copying file 'config/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'config'.
libtoolize: copying file 'config/libtool.m4'
# Tutorial - IPv6 through CenturyLink via 6rd on UniFi Security Gateway
# Hello, everyone! I was able to get my UniFi Security Gateway 3P to work with IPv6 on CenturyLink gigabit fiber by using 6rd, after a lot of
# research and pulling my hair out in frustration. To save others in my situation from the same, I created a config.gateway.json file for you
# to use, as well as a tutorial for modifying the json file to suit your environment.
# Keep in mind that this assumes that:
# Your WAN interface is pppoe2
# Your LAN interface is eth1
# Your tunnel name is tun0
# (If the interface names change, you'll have to modify the JSON file itself accordingly.)
# First step is to go here: http://silmor.de/ipaddrcalc.html#ip46
@larstobi
larstobi / ipv6-6rd-enable.sh
Last active July 31, 2022 02:32
IPv6 Rapid Deployment for Altibox
#!/bin/vbash
# https://sosdg.org/edgerouter/6rd
# https://community.ubnt.com/t5/EdgeMAX/Edgerouter-Lite-on-Centurylink-1-Gbit-fiber/td-p/1124318/page/2
export SBIN="/opt/vyatta/sbin/my_"
export DESCRIPTION="Altibox IPv6 6rd tunnel"
export WAN_DEV="eth2"
export LAN_DEV="eth1"
export TUN_DEV="tun0"