Skip to content

Instantly share code, notes, and snippets.

View eyecatchup's full-sized avatar

Stephan Schmitz eyecatchup

View GitHub Profile
@eyecatchup
eyecatchup / gist:ba92d97c9b81f3b9fb95
Created February 7, 2016 06:17 — forked from hannu/gist:4604611
Filter your own commit messages from git log and group by day. (Modified from http://stackoverflow.com/questions/2976665/git-changelog-day-by-day)
#!/bin/bash
AUTHOR=$(git config user.name)
DATE=$(date +%F)
git log --no-merges --format="%cd" --date=short --no-merges --author="$AUTHOR" --all | sort -u -r | while read DATE ; do
if [ $NEXT != "" ]
then
echo
echo [$NEXT]
fi
GIT_PAGER=cat git log --no-merges --format=" %s" --since=$DATE --until=$NEXT --author="$AUTHOR" --all
@eyecatchup
eyecatchup / gist:f30661eda33976b6602d
Created February 6, 2016 15:37 — forked from prime31/gist:5675017
Simple PHP script showing how to send an Android push notification. Be sure to replace the API_ACCESS_KEY with a proper one from the Google API's Console page. To use the script, just call scriptName.php?id=THE_DEVICE_REGISTRATION_ID
<?php
// API access key from Google API's Console
define( 'API_ACCESS_KEY', 'YOUR-API-ACCESS-KEY-GOES-HERE' );
$registrationIds = array( $_GET['id'] );
// prep the bundle
$msg = array
@eyecatchup
eyecatchup / simple_xml_iterator.php
Created February 6, 2016 15:25 — forked from ArnaudLigny/simple_xml_iterator.php
PHP SPL SimpleXMLIterator examples
<?php
try {
$sxe = simplexml_load_string($xmlstring, 'SimpleXMLIterator');
for ($sxe->rewind(); $sxe->valid(); $sxe->next()) {
if ($sxe->hasChildren()) {
foreach ($sxe->getChildren() as $element=>$value) {
echo $value->species . '<br />';
}
}
}
@eyecatchup
eyecatchup / git-commit-log-stats.md
Last active April 11, 2025 08:16
Some commands to get git commit log statistics for a repository on the command line.

git commit stats

Commands to get commit statistics for a Git repository from the command line -
using git log, git shortlog and friends.




@eyecatchup
eyecatchup / typo3-vagrant-puppet.md
Last active January 31, 2016 00:02
A collection of open source TYPO3 Vagrant boxes (mostly /w Puppet).

TYPO3 Vagrant Boxes

A collection of open source TYPO3 Vagrant boxes (mostly /w Puppet).

@eyecatchup
eyecatchup / cygwin-gitbash-composer.md
Last active April 16, 2017 13:07
"Fix" `composer: unknown command` for Cygwin / Gitbash.

Cygwin/Gitbash + composer = unknown command

If you're working on a Windows machine and have the composer.bat in your $PATH (or %PATH%), Cygwin's Mintty terminal as well as the Gitbash will still complain about composer not being a known command.


If you try to use composer from a Mintty/Gitbash terminal, you'll get something like:

c:\chef\serversetup>vagrant up
DEPRECATION: The 'recipe_url' setting for the Chef Solo
provisioner is deprecated. This value will be removed in
Chef 12. It is recommended you use the Chef Apply provisioner
instead. The 'recipe_url' setting will be removed in the next
version of Vagrant.
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'ubuntu/trusty64'...
==> default: Matching MAC address for NAT networking...
==> default: Destroying VM and associated drives...
<style type="text/css">
.tri-down {
/* Styling block element, not required */
position: relative;
margin-bottom: 2em;
padding: 1em;
border-bottom: 1px solid #999;
background: #f3f3f3;
}
@eyecatchup
eyecatchup / IE10-css.html
Created January 13, 2016 09:14
Simple "hack" to be able to write CSS specifically for IE10.
<!doctype html>
<!--[if (lte IE 8) ]><html lang="de-DE" class="no-js lte-ie8"><![endif]-->
<!--[if (gt IE 8)|!(IE)]><!--><html class="no-js" lang="de"><!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>CSS for IE 10</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
Verifying that +eyecatchup is my blockchain ID. https://onename.com/eyecatchup