Skip to content

Instantly share code, notes, and snippets.

View danuw's full-sized avatar

Dan Benitah danuw

View GitHub Profile
@nickwesselman
nickwesselman / item-odata.js
Last active February 27, 2018 13:00
Headless on Sitecore 9 Examples
/* Using the Sitecore 9 Item OData service with odata.js */
var o = require('odata');
var moment = require('moment');
o().config({
endpoint: 'http://symheadless.local/sitecore/api/ssc/aggregate/content/',
appending: [
{ name: 'sc_apikey', value: 'D510CB0F-B2EF-4224-8F7A-7F04C020BDFE' }
]
@m-p-3
m-p-3 / deluge_add.sh
Last active June 4, 2019 16:19
IFTTT Maker Webhook for Deluge notifications when a new torrent is created
#!/bin/bash
IFTTT_KEY="#####"
IFTTT_TRIGGER="deluge_add"
TORRENT_ID="$1"
TORRENT_NAME="$2"
TORRENT_PATH="$3"
/usr/bin/curl -X POST -H "Content-Type: application/json" -d '{"value1":"'"${TORRENT_ID}"'","value2":"'"$TORRENT_NAME"'","value3":"'"$TORRENT_PATH"'"}' https://maker.ifttt.com/trigger/$IFTTT_TRIGGER/with/key/$IFTTT_KEY
@JamesSkemp
JamesSkemp / Convert Sitecore Web forms sublayout to Helix and MVC.md
Last active October 17, 2017 16:08
Rough notes on converting a Sitecore Web forms sublayout to MVC and Helix.

Background

We currently have a Visual Studio solution with two projects: one for our main site, using Web forms, and one for utilities, which is currently Extension methods on Item. (The latter project has been in the queue to migrate to a NuGet package on our local NuGet server.)

Running Sitecore 8.1.160519.

Initial setups

  1. Add solution folders to the existing project.
    1. Configuration
    2. Feature
    3. Foundation
@teos0009
teos0009 / ds18b20-nodemcu-v1.0-esp8266-arduino-ide.cpp
Last active November 25, 2019 19:03
DS18B20 nodeMCU v1.0 with ESP8266 arduino IDE stream data to thingspeak
//nodeMCU v1.0 (black) with Arduino IDE
//stream temperature data DS18B20 with 1wire on ESP8266 ESP12-E (nodeMCU v1.0)
//shin-ajaran.blogspot.com
//nodemcu pinout https://github.com/esp8266/Arduino/issues/584
#include <ESP8266WiFi.h>
#include <OneWire.h>
#include <DallasTemperature.h>
//Def
#define myPeriodic 15 //in sec | Thingspeak pub is 15sec