Skip to content

Instantly share code, notes, and snippets.

View nickw108's full-sized avatar

Nick Weisser nickw108

View GitHub Profile
Verifying my Blockstack ID is secured with the address 1H1oJ1V1FTqm5a7ePDCsLczMK1uG6PqeJc https://explorer.blockstack.org/address/1H1oJ1V1FTqm5a7ePDCsLczMK1uG6PqeJc
Verifying that +openstream is my blockchain ID. https://onename.com/openstream
@nickw108
nickw108 / xing-events.html
Created October 24, 2015 14:40
XING Events Widget
<!-- Start of XING Events Widget Code -->
<style type="text/css">
#xew {
border-color: #E4E4E4 #8B9BA1 #8B9BA1 #E4E4E4;
border-style: solid;
border-width: 1px;
background: url("https://www.xing.com/img/widgets/gradient_event.png") repeat-x;
font-family: Arial, Helvetica, sans-serif;
font-size: 13px;
margin: 0;
<?php
$website = 'domain.com';
$path = '/path/to/htdocs';
$email = '[email protected]';
$git_status = shell_exec('git --git-dir=' . $path . '/.git --work-tree=' . $path . ' status');
$git_log = file_exists($path . '/.git-monitoring.log') ? file_get_contents($path . '/.git-monitoring.log') : '';
if (!preg_match('/working directory clean/ism', $git_status) && $git_log != $git_status) {
file_put_contents($path . '/.git-monitoring.log', $git_status);
@nickw108
nickw108 / buttons.html
Created June 2, 2013 13:15
Prototype nightmare
<?php
/**
* Openstream
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE_AFL.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
@nickw108
nickw108 / Magento 1.4+ .gitignore (core included)
Last active March 6, 2017 10:40
This version does NOT ignore Magento core files
/app/etc/local.xml
/downloader/pearlib/cache/
/media/
/shell/log.php
/var/
@nickw108
nickw108 / Magento 1.4+ .gitignore (core excluded)
Created November 11, 2010 13:06 — forked from nesh/gist:364586
This version also ignores all Magento core files
# put it into magento install dir
app/code/core/
app/code/community/Phoenix/Moneybookers
app/design/adminhtml/default/default/
app/design/frontend/base/default/
app/design/frontend/default/default/
app/design/frontend/default/blank/
app/design/frontend/default/iphone/
@nickw108
nickw108 / x
Created March 3, 2009 21:46
search google.ch
// This command is useful if you're e.g. located in Germany, but want to search
// Google Switzerland. I'm often in this situation, because I live very close to
// the Swiss border and work in both countries
CmdUtils.makeSearchCommand({
name: "google-ch",
synonyms: ["gch"],
url: "http://www.google.ch/search?hl=de&meta=cr%3DcountryCH&q={QUERY}",
icon: "http://www.google.ch/favicon.ico",
description: "Searches www.google.ch even if you're located elsewhere"