Skip to content

Instantly share code, notes, and snippets.

View hatton's full-sized avatar

John Hatton hatton

  • SIL International
View GitHub Profile
@hatton
hatton / gather.autoreporter.emails.js
Last active December 22, 2022 14:04
Bloom YouTrack Help Desk Scripts as of Dec 2022
/*jshint esversion: 6 */
var entities = require('@jetbrains/youtrack-scripting-api/entities');
var gatherReporter = require('./gather.reporter.info.from.description');
// when issues come in via api, the reporter is set to "auto report creator".
// The email listed in the description and is a little obfuscated, because when we were on the free plan,
// we could not control the visibility of fields. This grabs the email from the desription, de-obfuscates it,
// and puts it, along with the user's name, in the appropriate fields
exports.rule = entities.Issue.action({
title: 'Gather.autoreporter.emails',
@hatton
hatton / about.md
Last active August 13, 2022 16:24
My Zulip CSS, inspired by Flowdock

With this css image

Without it, but with built-in Dark theme image

Key things:

  • Red indicators that someone is trying to reach me via private message
  • Drop avatars, I need avatars or names for our team, not both.
@hatton
hatton / Squirrel Setup Log 2
Created November 24, 2016 15:03
Failed to install package to app dir 2
2016-11-20 15:17:21> Program: Starting Squirrel Updater: --install . --rerunningWithoutUAC
2016-11-20 15:17:21> Program: Starting install, writing to C:\Users\stcomputindo\AppData\Local\SquirrelTemp
2016-11-20 15:17:21> Program: About to install to: C:\Users\stcomputindo\AppData\Local\BloomREACH
2016-11-20 15:17:21> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\stcomputindo\AppData\Local\BloomREACH\packages\RELEASES'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at Squirrel.Utility.LoadLocalReleases(String
@hatton
hatton / Squirrel Setup log
Created November 24, 2016 15:01
Failed to install package to app dir 1
2016-11-20 14:47:58> Program: Starting Squirrel Updater: --install .
2016-11-20 14:47:58> Program: Starting install, writing to C:\Users\stcomputindo\AppData\Local\SquirrelTemp
2016-11-20 14:47:58> Program: About to install to: C:\Users\stcomputindo\AppData\Local\BloomREACH
2016-11-20 14:47:58> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\stcomputindo\AppData\Local\BloomREACH\packages\RELEASES'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at Squirrel.Utility.LoadLocalReleases(String localReleaseFile)
@hatton
hatton / typescriptModuleErrorCheatsheet.md
Last active June 28, 2016 21:35
Typescript Module Error CheatSheet

Relevant documentation: https://www.typescriptlang.org/docs/handbook/module-resolution.html

This was last updated based on Typescript version 1.7.5. While converting a largish project from typescript + es3 javascript to a pure babel/webpack-driven es6 project, we got some errors that were quite unclear:

#TS2036: "Cannot Find Module"

Alas this can mean several things:

##The path is wrong

@hatton
hatton / gist:5a60d1cc857a804485ef
Created April 24, 2015 19:41
Squirrel Log With Blocked File
Program: Starting Squirrel Updater: --install .
Program: Starting install, writing to C:\Users\Stacey\AppData\Local\SquirrelTemp
CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\Stacey\AppData\Local\BloomSHRP\packages\RELEASES'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at Squirrel.Utility.LoadLocalReleases(String localReleaseFile)
at Squirrel.UpdateManager.CheckForUpdateImpl.<CheckForUpdate>d__28.MoveNext()
CheckForUpdateImpl: Reading RELEASES file from C:\Users\Stacey\AppData\Local\SquirrelTemp
CheckF
@hatton
hatton / designer.html
Created November 30, 2014 20:55
designer
<link rel="import" href="../polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@hatton
hatton / gist:7359073
Created November 7, 2013 18:02
A grid of multi-language fields in a Bloom
include bloom-with-jade-mixins.jade
h4 Review Chart:
+shellGrid(4,4)(class=’reviewChart’)
@hatton
hatton / TeamCityNetSparkle.md
Last active December 15, 2015 00:38
Instructions for wiring up .net app, NetSparkle, MSBuild script, and TeamCity for auto-update notification bliss.

Here are instructions for wiring up .net app, MSBuild script, and TeamCity so that users will be notified when a new version is available. Not only that, but they can read the upcoming release notes before deciding to allow the update.

#Code

  1. Get my NetSparkle Fork, build it, put the dll in your lib, add it to your installer.

  2. Use the instructions in the ReadMe to wire it up to you application. Minimally, this means

_sparkleApplicationUpdater =
    new Sparkle(@"http://build.palaso.org/guestAuth/repository/download/YourTeamCityConfigurationID/.lastSuccessful/appcast.xml",
 Resources.Bloom);