Skip to content

Instantly share code, notes, and snippets.

View dennis-f's full-sized avatar

Dennis Frede dennis-f

  • webXells GmbH
  • Potsdam, Germany
View GitHub Profile
@dennis-f
dennis-f / inwx-dyndns.sh
Created November 23, 2024 13:12
This script updates the DNS record for a specified domain using INWX's DynDNS service. It checks the current public IP address and updates the DNS record if the IP has changed. The script uses environment variables for sensitive information and logs all actions.
#!/bin/bash
# Configuration variables
DOMAIN="${INWX_DOMAIN}"
SUBDOMAIN="home"
INWX_USER="${INWX_USERNAME}"
INWX_PASS="${INWX_PASSWORD}"
LOG_FILE="/home/pi/inwx-dyndns_update.log"
# Get current public IP address
@dennis-f
dennis-f / CMD (Administrator)
Created August 12, 2023 09:02
TRIM ausschalten um zu verhindern, dass Daten überschrieben werden.
fsutil behavior query disabledeletenotify
<script>
export let fill = 'none'
export let d = ''
export let stroke = '#4A5568';
export let width = '24';
export let height = '24';
</script>
<svg class="icon" {width} {height} viewBox="0 0 {width} {height}" {fill} xmlns="http://www.w3.org/2000/svg">
<path {d} {stroke} stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
@dennis-f
dennis-f / conemu.xml
Created May 15, 2018 08:24
ConEmu Settings
<?xml version="1.0" encoding="utf-8"?>
<key name="Software">
<key name="ConEmu">
<key name=".Vanilla" modified="2018-05-15 10:23:06" build="180206">
<value name="StartType" type="hex" data="02"/>
<value name="CmdLine" type="string" data=""/>
<value name="StartTasksFile" type="string" data=""/>
<value name="StartTasksName" type="string" data="{cmd::Cmder}"/>
<value name="StartFarFolders" type="hex" data="00"/>
<value name="StartFarEditors" type="hex" data="00"/>
<?xml version="1.0" encoding="utf-8"?>
<key name="Software">
<key name="ConEmu">
<key name=".Vanilla" modified="2018-05-08 13:35:44" build="180206">
<value name="StartType" type="hex" data="02"/>
<value name="CmdLine" type="string" data=""/>
<value name="StartTasksFile" type="string" data=""/>
<value name="StartTasksName" type="string" data="{cmd::Cmder}"/>
<value name="StartFarFolders" type="hex" data="00"/>
<value name="StartFarEditors" type="hex" data="00"/>
@dennis-f
dennis-f / MODx Revolution Export
Created February 27, 2018 10:23
Tiny script to export most elements (chunks/snippets, tvs, templates etc.) from modx without overwriting any content
#!/bin/bash
# db config
DB_NAME='dbname'
DB_USER='root'
DB_PASS='root'
DB_HOST='localhost'
DB_TABLES='modx_categories modx_categories_closure modx_site_htmlsnippets modx_site_plugins modx_site_snippets modx_site_templates modx_site_tmplvars modx_site_tmplvar_access modx_site_tmplvar_templates'
# date format - used in back-up archive filename
@dennis-f
dennis-f / modx-snippets.php
Created November 12, 2015 10:35 — forked from christianhanvey/modx-snippets.php
Useful snippets for MODX Revo
Snippet: [[SnippetName]]
Chunk: [[$ChunkName]]
System Setting: [[++SettingName]]
TV: [[*fieldName/TvName]]
Link tag: [[~PageId? &paramName=`value`]]
Placeholder: [[+PlaceholderName]]
<?php