Skip to content

Instantly share code, notes, and snippets.

View JamesSkemp's full-sized avatar

James Skemp JamesSkemp

View GitHub Profile
<?xml version="1.0"?>
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:role="http://www.sitecore.net/xmlconfig/role/" xmlns:search="http://www.sitecore.net/xmlconfig/search/">
<sitecore search:require="solr">
<contentSearch>
<configuration type="Sitecore.ContentSearch.ContentSearchConfiguration, Sitecore.ContentSearch">
<indexes hint="list:AddIndex">
<index id="sitecore_master_index" type="Sitecore.ContentSearch.SolrProvider.SolrSearchIndex, Sitecore.ContentSearch.SolrProvider">
<param desc="core" patch:instead="param[@desc='core']">instance1_$(id)</param>
</index>
<index id="sitecore_core_index" type="Sitecore.ContentSearch.SolrProvider.SolrSearchIndex, Sitecore.ContentSearch.SolrProvider">
@JamesSkemp
JamesSkemp / information.md
Last active March 14, 2023 18:16
US Zip Code Geolocations from 2021 Gazetteer
@JamesSkemp
JamesSkemp / Visual Studio solution file headers
Last active February 11, 2023 21:42
Visual Studio solution file headers - 2010, 2012, 2013, 2015
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
@JamesSkemp
JamesSkemp / OrthographicCameraController.java
Last active November 1, 2022 17:32
An orthographic camera controller that handles inputs and gestures, for libGDX.
package com.jamesrskemp.libgdx.utils;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input;
import com.badlogic.gdx.InputProcessor;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.input.GestureDetector;
import com.badlogic.gdx.math.Vector2;
/**
@JamesSkemp
JamesSkemp / hb_all_books_dl.js
Last active October 11, 2022 23:46 — forked from zuazo/hb_all_books_dl.js
Humble bundle book bundles - download all books at once
/*
Forked from https://gist.github.com/zuazo/a91ecbb97b90ef3ef9ce8caf361199a2
Which was forked from https://gist.github.com/p0kR/95e05e689be4e59b1b8fb6e383b9e25a
After purchasing a humble book bundle, go to your download page for that bundle.
Open a console window on the page and paste in the below JavaScript.
JamesSkemp fork changes:
- Fix ZIP file downloads.
- Add Chrome URLs to setting pages.
@JamesSkemp
JamesSkemp / 00 Helpful Git Commands.md
Last active April 29, 2022 17:32
Helpful Git commands

This content has been moved to https://git.jamesrskemp.com/.

Helpful Git Commands

The following is a dump of Git commands for use on your shell of choice.

@JamesSkemp
JamesSkemp / Humble Bundle individual page titles.md
Last active August 18, 2021 22:41
Humble Bundle individual page titles

Run in browser console, while viewing an individual bundles page post-purchase.

let items = [];
let titles = $('.gameinfo .title');
for (let i = 0; i < titles.length; i++) {
	items.push(titles[i].innerText);
}
console.log(items);
@JamesSkemp
JamesSkemp / Mac OS dev setup.md
Last active August 15, 2021 21:00
Steps working with Mac OS for development
  1. Install Visual Studio Code.
  2. Install iTerm2.
    • Activate gitfast plugin.
      • vi ~/.zshrc and add gitfast on plugins line.
  3. Setup SSH key for git.
    • ssh-keygen -t rsa
    • pbcopy < ~/.ssh/id_rsa.pub
  4. Turn on hidden files in Finder
    • defaults write com.apple.finder AppleShowAllFiles YES
    • Hold the 'Option/alt' key, then right click on the Finder icon in the dock and click Relaunch.
@JamesSkemp
JamesSkemp / RP2SambaSeagate.md
Last active January 18, 2021 19:06
Raspberry Pi 2 Samba server w/ a Seagate Backup Plus Slim 1TB

Setting up a Raspberry Pi 2 Samba server (in early January 2016)

The following is how I configured a Raspberry Pi 2 as a samba server, using a Seagate Backup Plus Slim, 1TB, drive.

For ease I purchased the CanaKit Raspberry Pi 2 Complete Starter Kit. It runs about $70 and includes enough to get up and running with the Raspberry Pi 2, with the Pi itself, a nice case, power supply, HDMI cable, WiFi adapter, and SD card with NOOBS/Raspbian installer.

For the hard drive I opted to purchase a Seagate Backup Plus Slim 1TB Portable External Hard Drive, since I've had good enough luck with Seagate in the past, and reviews are generally favorable. This ran me $60. I confirmed that it worked fine on my Windows 10 machine, and was already formatted to NTFS.

Unfortunately, once I received the Pi and drive I found that the power supply/Pi wasn't putting off enough power to keep the drive running. After looking at the options, including tweaking the Pi to pass throu

@JamesSkemp
JamesSkemp / Sitecore-FastQueries.md
Last active January 14, 2021 14:20
Sitecore - Fast queries to find items with a particular template/sublayout.

This will find items matching a particular template.

fast://*[@@templateid='{072A5DF2-4283-4043-9A4F-7D1218F4D899}']

Without text in the item name.

fast://*[@@templateid='{0400B345-381D-4BAF-8B83-85DD52632FE5}' and @@name != '%test%']

Created after a certain date.