Skip to content

Instantly share code, notes, and snippets.

View perguth's full-sized avatar

Per Guth perguth

View GitHub Profile
@perguth
perguth / usr.bin.skype
Last active August 29, 2015 14:06
Skype Apparmor profile. `/etc/apparmor.d/local/usr.bin.skype`
# Original from https://wiki.archlinux.org/index.php/skype#AppArmor
# Modified to enable file picker out of the box
# License: Gnu FDL
#include
/usr/bin/skype {
#include
#include
#include
@perguth
perguth / clickEvent.js
Last active August 29, 2015 14:12
Use the touch event if possible and degrade to the click event if needed. @Usability @touch @mobile
var clickEvent = ('ontouchstart' in document.documentElement ?
'touchstart' :
'click')
$(node).on(clickEvent, function () { ; })
@perguth
perguth / m.js
Last active August 29, 2015 14:16
Merge all objects but ignore falsy values. See: https://speakerdeck.com/vjeux/react-css-in-js @react, @css
function m(...args) {
let res = {}
for (let i = 0; i < args.length; ++i)
if (args[i]) Object.assign(res, args[i])
return res
}
@perguth
perguth / saveFile.js
Created March 2, 2015 03:01
Open the download dialog for a file blob.
function saveFile(blob) {
var link = document.createElement('a')
link.href = window.URL.createObjectURL(blob)
link.download = 'File Name'
link.click()
}
var gulp = require('gulp')
var fs = require('fs')
var browserify = require('browserify')
var babelify = require('babelify')
gulp.task('default', function () {
// place code for your default task here
})
gulp.task('watch', function () {
gulp.watch(['index.js', 'js/**/*.js'], function (event) {
@perguth
perguth / proxy.pac
Created April 27, 2015 16:26
Proxy auto configuration file w/ network and domain whitelisting.
/**
References:
- *Foremost:* http://askubuntu.com/a/263596/207593
- http://www.boinklabs.com/wpad.html#20101213
- https://www.websense.com/content/support/library/web/v76/pac_file_best_practices$
*/
function FindProxyForURL (url, host) {
// >> CONFIG >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
@perguth
perguth / fixubuntu.sh
Last active August 29, 2015 14:20
A trimmed version of the fixubuntu.com script (removed the superfluous nonpersistent firewall rule). Fixes the privacy violations by Ubuntu 12.10 till 14.04.0x. See: https://www.eff.org/deeplinks/2012/10/privacy-ubuntu-1210-amazon-ads-and-data-leaks @wedv @wedv
#!/bin/bash
GS="/usr/bin/gsettings"
CCUL="com.canonical.Unity.lenses"
# Figure out the version of Ubuntu that you're running
V=$(/usr/bin/lsb_release -rs)
# The privacy problems started with v12.10, so earlier versions should do nothing
# Added check because 14.04.1 isn't a number
@perguth
perguth / 01_switchvt
Last active August 29, 2015 14:20
Fix freeze-after-suspend for a Samsung 730U. Src: http://askubuntu.com/a/387676/207593
#!/bin/sh
# Install
# =======
# sudo gedit /etc/pm/sleep.d/01_switchvt
# paste this script
# sudo chmod 755 /etc/pm/sleep.d/01_switchvt
case "$1" in
resume|thaw)

Kundenangebot Website Immobilienmakler

Welche Moeglichkeiten bestehen, die eigene Immobilien-Website zu modernisieren?

Option 1

ZB. auf das Baukastenprinzip von Immobilienscout24 zurueck greifen und selbst gestalten.

  • Vorgefertige Design-Layouts.
  • "Handy-tauglich"/responsiv.
  • Einfache Klick-Zusammenstellung in Eigenregie. Anpassung/Aenderung jederzeit moeglich.
<!DOCTYPE html>
<html>
<head>
<script>
function startTime() {
var today=new Date();
var alarm=new Date(today.getFullYear(),today.getMonth(),today.getDate(),11,00,00,0);
show(today,'current');
show(alarm,'alarm');