Skip to content

Instantly share code, notes, and snippets.

View iDiver76's full-sized avatar

David Janssen iDiver76

  • Opacc Software AG
  • Rothenburg
View GitHub Profile
<html id="top" data-op-timeout="1200000" class="offcanvas-menu-open" lang="de"><head>
<title>WAS-LAB Dev - Overview</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="description" content="WAS-LAB for Modules">
<!-- Ready for Smartphones and Tablets -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, user-scalable=0">
<!-- CSS -->
<style data-tippy-stylesheet="">.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.
@iDiver76
iDiver76 / AdGuardHome-GoogleAdsWhitleist.txt
Created October 18, 2024 20:49
adguard-home-google-ads-whitelist
googleadservices.com
googlesyndication.com
googletagservices.com
doubleclick.net
googleads.g.doubleclick.net
adservices.google.com
tpc.googlesyndication.com
pagead2.googlesyndication.com
securepubads.g.doubleclick.net
ads.google.com
@iDiver76
iDiver76 / allEventListeners.js
Created October 26, 2021 11:30 — forked from thepeoplesbourgeois/allEventListeners.js
List all event listeners in a document
function allEventListeners(){
const eventNames = Object.keys(window).filter(key => /^on/.test(key))
return [...document.querySelectorAll('*'), document].flatMap((node) => eventNames
.filter(event => node[event])
.map(event => {
return {
node,
event,
listener: (typeof node[event] === 'function') ? node[event].toString() : node[event]
}
@iDiver76
iDiver76 / Leeres Kapitel erstellen
Last active July 2, 2020 14:08
WAS-LAB Snippets
<section class="section-wrapper">
<div class="section-inner">
<h2>Titel Kapitel X</h2>
<h3>Untertitel Kapitel X</h3>
<div class="description">
<p>Kurzbeschreibung des Kapitels.</p>
</div>
</div>
</section>
@iDiver76
iDiver76 / Article-Detail-Art.oc
Last active November 25, 2019 07:48
Socialmedia-Plugin ADDTHIS
1. Zusätzliche Attribute in CONFIG-TEIL
2. SocialMedia-Button-Plugin
'/*-------------------------------------------------------
' @description: Detail - Artikel
'---------------------------------------------------------*/
<!---CONFIG-START--->
OCType|Flat
ShowMessages|true
LoginLevel|0
@iDiver76
iDiver76 / SynologyDrive Filter
Last active October 31, 2019 15:26
SynologyDrive Filter (~/.SynologyDrive/SynologyDrive.app/Contents/Resources/conf/filter-v4150)
[Version]
major = 1
minor = 1
[Common]
black_char = "\\/"
black_name = "@tmp", "@eaDir", ".SynologyWorkingDirectory", "#recycle", "desktop.ini", ".ds_store", "Icon\r", "thumbs.db", "$Recycle.Bin", "@sharebin", "System Volume Information", "Program Files", "Program Files (x86)", "ProgramData", "#snapshot"
max_length = 255
max_path = 768
@iDiver76
iDiver76 / git-rename-branches
Last active October 18, 2018 07:07
Rename a local and remote branch in Git
1. Rename your local branch
git branch -m old-name new-name
2. Delete the old-name remote branch and push the new-name local branch
git push origin :old-name new-name
3. Reset the upstream branch for the new-name local branch
git push origin -u new-name