Skip to content

Instantly share code, notes, and snippets.

Jeremy Smitherman jeremysmitherman

Block or report user

Report or block jeremysmitherman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:19f357dd888a10e74f7578776147df68
-- User editable configs
local object_batch = 500 --How many objects to iterate before yielding
-- Load JSON lib
fs = require('lfs')
package.path = fs.currentdir() .. "Scripts\\?.lua;" .. package.path
socket = require("socket")
local jsonlib = fs.writedir() .. "Scripts\\json.lua"
json = loadfile(jsonlib)()
View gist:0f87c7bcb51ab843f8952087e5048a3b
WARN: Property 'days' does not exist on type 'MX.Messages.Instances.FilterRequest'
ERROR: Service: System.Func`1[System.String], URL: http://mx-api.daxko.com/api/v5/devices/cd1d183e85595b7d0afca87bf453ea7fe6900f56cfbd655bd6e50f76d87a65cb/channels, Body: "", Client: 8002, Cache: , Error: (SerializationException) Could not deserialize 'application/json' request using MX.Messages.Devices.AddChannelRequestV3'
Error: System.Threading.Tasks.TaskCanceledException: A task was canceled.
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.FrameRequestStream.Read(Byte[] buffer, Int32 offset, Int32 count)
at System.IO.StreamReader.ReadBuffer()
at System.IO.StreamReader.ReadToEnd()
at ServiceStack.Text.JsonSerializer.DeserializeFromStream(Type type, Stream stream)
at ServiceStack.Host.Handlers.ServiceStackHandlerBase.Create
View gist:966d7454878e57b2efefe92a48814d17
package com.hoggit.missionhub.mission.data
import java.io.File
import java.util.UUID
import com.hoggit.mizery.core.mission.json._
import com.typesafe.scalalogging.StrictLogging
import scala.collection.mutable.ListBuffer
View gist:06632ceaa300bafa20fb3882b916ba79
C:\Users\jsmitherman>chef-client
c:/opscode/chef/embedded/lib/ruby/gems/2.0.0/gems/wmi-lite-1.0.0/lib/wmi-lite/wmi.rb:69:in `rescue in start_query': An e
rror occurred when querying namespace 'root/cimv2' with query 'select * from Win32_OperatingSystem'. (WmiLite::WmiExcept
ion)
(in OLE method `count': )
OLE error code:80041003 in SWbemObjectSet
Access denied
HRESULT error code:0x80020009
Exception occurred.
from c:/opscode/chef/embedded/lib/ruby/gems/2.0.0/gems/wmi-lite-1.0.0/lib/wmi-lite/wmi.rb:65:in `start_query'
View gist:ea7575f2af00220676798e16bfc02fa2
==================='
{'main': {'assists': 11.0,
'deaths': 4.620689655172414,
'gold_earned': 11485.275862068966,
'gold_rate': 327.41094098231275,
'kda': 0.8134328358208955,
'kills': 3.7586206896551726,
'kpda': 3.1940298507462686,
'losses': 0.41379310344827586,
'total_game_cs': 42.37931034482759,
View gist:fc191e47c1f1d6e3851d
{
"sort":[
{
"_score":{
"order":"desc"
}
},
{
"rating":{
"order":"desc"
You can’t perform that action at this time.