Skip to content

Instantly share code, notes, and snippets.

@kenny-evitt
kenny-evitt / nativescript-dev-appium installation notes.md
Created May 6, 2019 18:31
*nativescript-dev-appium* installation notes

I installed the plugin:

✔ ~/@code/partially-pos [integration-testing L|✔] 
(ins)17:22 $ npm install -D nativescript-dev-appium
npm WARN deprecated node-uuid@1.4.7: Use uuid module instead
npm WARN lifecycle The node binary used for scripts is /Users/kenny/.asdf/shims/node but npm is using /Users/kenny/.asdf/installs/nodejs/10.15.0/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.

> wd@1.11.2 install /Users/kenny/@code/partially-pos/node_modules/wd
> node scripts/build-browser-scripts
bool CallGenerateImageOfFirstPageWebMethod(int documentLocationId)
{
HttpWebRequest request =
(HttpWebRequest)WebRequest.Create(
String.Format(
"http://snyiis1/Apps/documents/{0}/generate-preview-image",
documentLocationId));
request.Method = "POST";
@kenny-evitt
kenny-evitt / crash-2018-07-21_14.57.08-client.txt
Created July 21, 2018 19:05
Minecraft MultiMC 5 crash report - Minecolonies modpack
---- Minecraft Crash Report ----
WARNING: coremods are present:
AppleCore (AppleCore-mc1.12.2-3.1.3.jar)
BCModPlugin (backpacks 1.12.2 - 3.5.2.jar)
ForgelinPlugin (Forgelin-1.7.4.jar)
OpenEyePlugin (OpenEye-1.12.2-0.8.jar)
CTMCorePlugin (CTM-MC1.12.2-0.3.1.16.jar)
NWRTweak (redstonepaste-mc1.12-1.7.5.jar)
MalisisCorePlugin (malisiscore-1.12.2-6.4.0.jar)
@kenny-evitt
kenny-evitt / dbo.DropSqlServerAssemblyAndDependents.sql
Created October 4, 2017 15:01
SQL Server T-SQL script to drop-and-create a stored procedure to drop a database CLR assembly and all of its dependents, including other assemblies
IF EXISTS ( SELECT *
FROM sys.objects
WHERE object_id = OBJECT_ID(N'dbo.DropSqlServerAssemblyAndDependents')
AND type IN ( N'P', N'PC' ) )
DROP PROCEDURE dbo.DropSqlServerAssemblyAndDependents;
GO
CREATE PROCEDURE dbo.DropSqlServerAssemblyAndDependents
@AssemblyName sysname
@kenny-evitt
kenny-evitt / cursor.sql
Created October 3, 2017 14:14
T-SQL cursor template
DECLARE @columnValue int;
DECLARE cursor_ CURSOR LOCAL
FORWARD_ONLY
FAST_FORWARD
READ_ONLY
FOR
SELECT Column
FROM dbo.Table;
#!/usr/bin/env bash
@kenny-evitt
kenny-evitt / .NET SQL reader example.cs
Last active February 3, 2017 16:30
C# example of reading a (single) result-set of data returned by executing a (T-)SQL command
public AccessTokenInfo GetWebApiAccessToken(string webApiUserName)
{
object tokenObject = null;
object expirationObject = null;
string tokenString;
DateTime? expirationDateTime;
using (SqlConnection dbConnection = new SqlConnection(_connectionString))
using (SqlCommand dbCommand = new SqlCommand("dynamics.GetWebApiAccessToken"))
@kenny-evitt
kenny-evitt / Stop Microsoft Outlook 2010 Reminders window from being 'always on top'.linq
Last active January 27, 2017 16:05
Stop Microsoft Outlook 2010 Reminders window from being 'always on top'
<Query Kind="Statements">
<Namespace>Microsoft.Win32</Namespace>
</Query>
using (RegistryKey key = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Office\14.0\Outlook\Options\Reminders", true))
{
if (key != null)
if (key.GetValue("WindowPos") != null)
key.DeleteValue("WindowPos");
}
@kenny-evitt
kenny-evitt / Print current time in ISO 8601 format with timezone.linq
Last active December 16, 2016 00:25
Output current time in ISO 8601 format with timezone
DateTime.Now.ToString("yyyy-MM-dd HH:mm zzz")