Skip to content

Instantly share code, notes, and snippets.

View mhauri's full-sized avatar

Marcel Hauri mhauri

View GitHub Profile
@mhauri
mhauri / mageload.sh
Last active August 29, 2015 14:01
CLI Magento downloader
#!/bin/bash
VERSION='1.0'
BASE_URL='http://www.magentocommerce.com/downloads/assets'
FILE="magento-$1.tar.gz"
DIRECTORY='magento'
if [[ -z "$1" ]]; then
echo "Please set a Magento CE version by using: mageload.sh 1.X.X.X"
@mhauri
mhauri / commitstrip.php
Created August 25, 2015 13:27
Send latest CommitStrip Comic to a HipChat Room
<?php
$storageFile = __DIR__ . '/commitstrip.lock';
$url = "http://www.commitstrip.com/en/feed/";
$content = file_get_contents($url);
$xml = new SimpleXmlElement($content);
$item = $xml->channel->item[0];
$title = (string)$item->title;
$link = (string)$item->link;
$date = (string)$item->pubDate;
@mhauri
mhauri / composer.json
Created September 16, 2015 14:03
Magento Demo composer.json
{
"minimum-stability":"dev",
"repositories": [
{
"type": "vcs",
"url": "ssh://git@stash.staempfli.com:7999/stmagento/demotheme.git"
},
{
"type": "package",
"package": {
@mhauri
mhauri / m83_ardREST.pde
Created January 23, 2012 20:55
ardREST
/*
A REST-style interface for the Arduino Ethernet Board.
Based on RESTduino: https://github.com/jjg/RESTduino
Adapted for the Arduino Ethernet Board
by Marcel Hauri | http://m83.ch | twitter.com/mhauri
*/
#include <SPI.h>
@mhauri
mhauri / ardREST.pde
Created January 30, 2012 08:18
A REST-like API interface for the Arduino Ethernet board - https://github.com/m83/ardREST
/*
ardREST
A REST API for the Arduino Ethernet board
inspired by RESTduino
Created by:
01/24/2012 by Marcel Hauri, http://m83.ch
Original idea by: Jason J. Gullickson's RESTduino
@mhauri
mhauri / ntp_rtc_pomodoro.pde
Created May 18, 2012 20:46
NTP synced RealTime Pomodoro Clock
/*
ntp_rtc_pomodoro
Needed Hardware
An Arduino or compatible board like:
http://arduino.cc/en/Main/ArduinoBoardEthernet
8 Digit Segment-Display with MAX7219
http://www.play-zone.ch/de/8-zeichen-segment-display-mit-max7219.html

Keybase proof

I hereby claim:

  • I am mhauri on github.
  • I am mhauri (https://keybase.io/mhauri) on keybase.
  • I have a public key whose fingerprint is A18F 1493 F837 15FF 8CBD BC8F 1D9B 6CEE 8F13 A5A9

To claim this, I am signing this object:

@mhauri
mhauri / ws.sh
Created October 28, 2016 09:34
Create and manage a case-sensitive disk-image on OSX.
#!/bin/bash
# where to store the sparse-image
WORKSPACE=~/Documents/workspace.dmg.sparseimage
create() {
hdiutil create -type SPARSE -fs 'Case-sensitive Journaled HFS+' -size 60g -volname workspace ${WORKSPACE}
}
detach() {
@mhauri
mhauri / rtc_8segment.ino
Created May 17, 2012 17:10
Arduino Real Time clock with 8 Digit Segment-Display
/*
rtc_8segement
Real Time Clock with 8 Digit Segment-Display
Needed Hardware
An Arduino or compatible board like:
http://www.play-zone.ch/de/elektronik-kit-zubehoer/avr-arduino-freeduino/boards-kompatibel/freaduino-v1-2-mit-atmega328-100-arduino-kompatibel.html
@mhauri
mhauri / AdminLoginCest.xml
Created November 18, 2017 13:23
MFTM - AdminLoginCest.xml
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/testSchema.xsd">