Skip to content

Instantly share code, notes, and snippets.

View hanneshal's full-sized avatar

Johannes Nickel hanneshal

View GitHub Profile
@hanneshal
hanneshal / gist:581000740f7ec46aa31e47dad421c30d
Created June 26, 2017 15:53
select all media files in Whatsapp WebApp if media tab is open and all needed files are shown in preview
var els = document.getElementsByClassName('media-canvas');
Array.prototype.forEach.call(els, function(el) {
console.log(el);
el.click();
});
@hanneshal
hanneshal / Test
Created March 11, 2015 09:18
TestFilter
# --
# Kernel/Output/HTML/OutputFilterTest.pm
# --
package Kernel::Output::HTML::OutputFilterTest;
use strict;
use warnings;
use File::Basename;
@hanneshal
hanneshal / Config
Created March 11, 2015 09:18
Config
<?xml version="1.0" encoding="utf-8" ?>
<otrs_config version="1.0" init="Framework">
<ConfigItem Name="Frontend::Output::FilterElementPost###OutputFilterTest" Required="0" Valid="1">
<Description Translatable="1">This configuration registers an OutputFilter module that.</Description>
<Group>Framework</Group>
<SubGroup>Core::Web</SubGroup>
<Setting>
<Hash>
<Item Key="Module">Kernel::Output::HTML::OutputFilterTest</Item>
<Item Key="Templates">
@hanneshal
hanneshal / gist:9047565
Created February 17, 2014 09:35
Issue#196
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>User Manager</title>
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.1.0/css/bootstrap.min.css">
<script type="text/javascript" src="jspdf.js"></script>
<script type="text/javascript" src="jquery-2.1.0.min.js"></script>
<script type="text/javascript" src="./libs/FileSaver.js/FileSaver.js"></script>
<script type="text/javascript" src="./libs/Blob.js/Blob.js"></script>
@hanneshal
hanneshal / gist:8408662
Created January 13, 2014 21:37
Mac App Icon Sizes
mkdir AppName.iconset
sips -z 16 16 Logo_Big.png --out AppName.iconset/icon_16x16.png
sips -z 32 32 Logo_Big.png --out AppName.iconset/icon_16x16@2x.png
sips -z 32 32 Logo_Big.png --out AppName.iconset/icon_32x32.png
sips -z 64 64 Logo_Big.png --out AppName.iconset/icon_32x32@2x.png
sips -z 128 128 Logo_Big.png --out AppName.iconset/icon_128x128.png
sips -z 256 256 Logo_Big.png --out AppName.iconset/icon_128x128@2x.png
sips -z 256 256 Logo_Big.png --out AppName.iconset/icon_256x256.png
sips -z 512 512 Logo_Big.png --out AppName.iconset/icon_256x256@2x.png
sips -z 512 512 Logo_Big.png --out AppName.iconset/icon_512x512.png
@hanneshal
hanneshal / templates.coffee
Created April 29, 2012 20:28 — forked from davidgtonge/templates.coffee
Simple CoffeeScript Templating
# Simple Coffeescript Templating
# Global Object to hold the templates
window.simpleCoffeeTemplates =
# An example template
example: (a) ->
"""
<div>
<h1 class='header'>#{a.header}</h1>