Skip to content

Instantly share code, notes, and snippets.

View perguth's full-sized avatar
🎈

Per Guth perguth

🎈
View GitHub Profile
@perguth
perguth / Contract terms for OSS contributions
Last active August 29, 2015 14:22
Contract terms for OSS contributions from http://spiceprogram.org/contracts/ @legal
Where the Parties have agreed that open source components can be used in the project, all fixes and functional enhancements to any such open source components created as part of the project work can be published by Futurice and its the developers under the respective open source component’s license. In addition to code, the work to be published may include documentation, tests, graphics or other deliverables required to make an acceptable open source contribution. When publishing material Futurice and its developers will ensure that no functionality or information that is considered customer’s trade secret will be published.
By publishing the fixes and enhancements Futurice will ensure that these changes may become a part of any future releases of the component. This will make upgrades easier and reduce the cost of maintaining the solution. The effort required to publish the change is considered normal project work and prioritized like any other tasks in the project.
@perguth
perguth / korora_setup_node.sh
Last active February 9, 2016 10:03
Korora compatible NodeJS setup script.@linux @node @setup
#!/bin/bash
# Discussion, issues and change requests at:
# https://github.com/nodesource/distributions
#
# Script to install NodeSource repo onto a Enterprise Linux or
# Fedora Core based system.
#
# Run as root or insert `sudo` before `bash`:
#
@perguth
perguth / gulpfile.js
Last active August 29, 2015 14:22
Simple `Gulp` chain that transforms `ES6` to `ES5` using `Browserify` and `Babelify`.@bootstrap @toolchain @env ```sh npm install --verbose --save-dev gulp gulp-util gulp-babel gulp-mocha gulp-concat ```
var gulp = require('gulp')
var log = require('gulp-util').log
var lib = require('./gulpfile.lib.js')
var src = 'index.js'
var tst = 'test.js'
var buildID = 1
var newBuildLog = function () {
log("Build # " + lib.couldBeGutilLog (buildID++, 1)
<!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');

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.
@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)
@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 / 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 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
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 / 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()
}