I hereby claim:
- I am geoffreysmith on github.
- I am geoffreysmith (https://keybase.io/geoffreysmith) on keybase.
- I have a public key ASAKvkR2zuEameS6SOIOpXPeX1bO1FFtllg1enueGjr0xwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Function Keyboard-Saver { | |
$wshell = New-Object -ComObject wscript.shell; | |
While ($True) { | |
$wshell.SendKeys("{F15}") | |
Start-Sleep 240 | |
} | |
} |
# alpine 3.11 | |
FROM node:12-alpine as base | |
# set working directory | |
WORKDIR /app | |
ENV CHROME_BIN /usr/bin/chromium-browser | |
# Please stop doing things like making us copy things out of separate folders while | |
# also including a private nuget feed. I'm sure there's a good reason for it, but it is |
var _ = require('lodash'); | |
var snippets = require('apostrophe-snippets'); | |
module.exports = mainnav; | |
function mainnav(options, callback) { | |
return new mainnav.Mainnav(options, callback); | |
} | |
mainnav.Mainnav = function (options, callback) { | |
var self = this; | |
var apos = options.apos; | |
var app = options.app; |
var superGet = self.get; | |
self.get = function (req, userCriteria, optionsArg, callback) { | |
var options = {}; | |
var filterCriteria = {}; | |
// "Why copy the object like this?" If we don't, we're modifying the | |
// object that was passed to us, which could lead to side effects | |
_.merge(options, optionsArg || {}); | |
_.merge(filterCriteria, userCriteria || {}); | |
// need a sort helper key on these fields to normalize the first and last names | |
// and handle upper/lower case letters. Adding this helper key normalizes the data. |
# Basic setup | |
Update-ExecutionPolicy Unrestricted | |
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions | |
Enable-RemoteDesktop | |
Disable-InternetExplorerESC | |
Disable-UAC | |
Set-TaskbarSmall | |
if (Test-PendingReboot) { Invoke-Reboot } |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.require_version ">= 1.6.3" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.define "boot2docker" | |
config.vm.box = "yungsang/boot2docker" | |
config.vm.synced_folder ".", "/vagrant" |
public class MediaRequestOverride : MediaProvider | |
{ | |
public override Media GetMedia(MediaUri mediaUri) | |
{ | |
var mediaData = GetMediaData(mediaUri); | |
var media = GetMedia(mediaData); | |
return GetMediaFace(media); | |
} |
protected void Application_Error(object sender, EventArgs e) | |
{ | |
var exception = Server.GetLastError(); | |
Server.ClearError(); | |
var routeData = new RouteData(); | |
routeData.Values.Add("controller", "Error"); | |
routeData.Values.Add("action", "Index"); | |
Sitecore.Diagnostics.Log.Error("Application_Error invoked", exception, this); |
public class StubItem : Item | |
{ | |
public StubItem([NotNull] ID itemID, [NotNull] ItemData data, [NotNull] Database database) | |
: base(itemID, data, database) | |
{ | |
} | |
private Language originalLanguage; | |
public Language OriginalLanguage |