Skip to content

Instantly share code, notes, and snippets.

View skerbis's full-sized avatar
👋
Huhu

Thomas Skerbis skerbis

👋
Huhu
View GitHub Profile
@hubgit
hubgit / README.md
Last active June 14, 2024 17:40
Remove metadata from a PDF file, using exiftool and qpdf. Note that embedded objects may still contain metadata.

Anonymising PDFs

PDF metadata

Metadata in PDF files can be stored in at least two places:

  • the Info Dictionary, a limited set of key/value pairs
  • XMP packets, which contain RDF statements expressed as XML

PDF files

@christhesoul
christhesoul / video-helper.php
Last active October 5, 2021 23:09
PHP Video class for displaying embedded content from YouTube, Vimeo or BlipTv.
<?php
/*
Example use:
$video = new Video('https://www.youtube.com/watch?v=xfJvrH7iQ3c', 1);
$video->render_embed();
Use responsively: http://css-tricks.com/NetMag/FluidWidthVideo/Article-FluidWidthVideo.php
*/
@jfqd
jfqd / Snom.scpt
Last active October 5, 2018 07:30
This script enables the macOS Contact-Application to dial a phone-number via a SNOM hardware phone by clicking on the phone label
-- This script enables the macOS Contact-Application to dial a phone-number
-- via a SNOM hardware phone by clicking on the phone label.
--
-- (C) 2008 David Kreitschmann, K3com Kommunikationstechnik http://www.k3com.de
-- (C) 2017 Modification for SNOM 715 by Stefan Husch, https://qutic.com
--
-- Copy this script to ~/Library/Application\ Scripts/com.apple.AddressBook
-- on your macOS 10.11+ and change the phoneURL to your needs.
--
-- A chmod 0600 ~/Library/Application\ Scripts/com.apple.AddressBook/Snom.scpt
@IngoWinter
IngoWinter / .htaccess
Created January 15, 2018 22:54
auth media für ycom
RewriteRule ^/?media/(.*)$ /index.php?ycom_file=$1 [L]
# RewriteRule ^/?media/(.*\.(pdf|doc|zip))$ /index.php?ycom_file=$1 [L]
@staabm
staabm / navigation_iterator.php
Last active July 30, 2020 14:07
redaxo navigation iterator
<?php
/**
* Klasse zum Erstellen von Navigationen, v0.1.
*
* benötigt PHP7!
*
* @package redaxo\structure
*/
@timint
timint / fontawesome4to5.js
Last active November 23, 2020 12:06
Migrate Fontawesome 4 to 5 using jQuery (For the CSS Webfont version)
/*
* Migrate Fontawesome 4 to Fontawesome 5
* @website https://www.litecart.net/
*/
(function(){
var icons = {
"fa-500px": "fab fa-500px",
"fa-address-book-o": "far fa-address-book",
"fa-address-card-o": "far fa-address-card",
@larsneo
larsneo / viewer.html
Last active July 24, 2024 03:15 — forked from jsprpalm/viewer.html
Pinch zoom implementation for PDF.js viewer
<!-- Goes into viewer.html just before ending </body> -->
<script>
let pinchZoomEnabled = false;
function enablePinchZoom(pdfViewer) {
let startX = 0, startY = 0;
let initialPinchDistance = 0;
let pinchScale = 1;
const viewer = document.getElementById("viewer");
const container = document.getElementById("viewerContainer");
const reset = () => { startX = startY = initialPinchDistance = 0; pinchScale = 1; };
@anveno
anveno / product_filter_alpinejs.html
Last active December 7, 2022 18:09
alpine JS: Filter + Fetch
<div class="uk-container">
<h1>Produkte</h1>
<div x-data="productsData()">
<div>
<div class="uk-button uk-button-secondary" @click.prevent="fetchProductsData(filterparams.cat = 1)">Kategorie 1</div>
<div class="uk-button uk-button-secondary" @click.prevent="fetchProductsData(filterparams.cat = 2)">Kategorie 2</div>
<div class="uk-button uk-button-secondary" @click.prevent="fetchProductsData(filterparams.cat = 3)">Kategorie 3</div>
<div class="uk-button uk-button-secondary" @click.prevent="fetchProductsData(filterparams.cat = 4)">Kategorie 4</div>