Skip to content

Instantly share code, notes, and snippets.

@yringler
yringler / scraped.json
Last active July 29, 2019 18:16
JSON created by inside scraper
This file has been truncated, but you can view the full file.
{
"Sections": {
"https://insidechassidus.org/alter-rebbe": {
"Title": "The Alter Rebbe",
"Description": "Listen to the audio classes of the history, lessons, and teachings of the Alter Rebbe, Rabbi Shneur Zalman of Liadi (The Rav). The Alter Rebbe was the student of the Maggid of Mezrich and the teacher and father of the Mitteler Rebbe. Presented by Rabbi Paltiel.\n\nThe Alter Rebbe was born on CHAI ELUL and passed away CHOF DALED TEVES.\n\nPart of the New Rebbeim Audio Series given by Rabbi Paltiel.",
"Pdf": null,
"ID": "https://insidechassidus.org/alter-rebbe",
"Sections": [],
"Lessons": [
"3351070380517391439",
@yringler
yringler / log.txt
Last active June 24, 2019 16:09
Pre/Post mortem flutter crash debug output
--------- beginning of main
06-24 12:07:36.727 710 14441 I Thermal-Lib: Thermal-Lib-Client: Client request sent
06-24 12:07:36.728 1055 1191 I ThermalEngine: Thermal-Server: Thermal received msg from override
--------- beginning of system
06-24 12:07:38.301 725 878 I SFPerfTracer: triggers: (rate: 97:3901) (6463908 sw vsyncs) (0 skipped) (0:5484323 vsyncs) (1:12201173)
06-24 12:07:40.191 13722 13722 I adbd : Calling send_auth_request...
06-24 12:07:43.351 1627 1646 I UsageStatsService: User[0] Flushing usage stats to disk
06-24 12:07:56.883 1063 1063 I ADSPD : Watchdog 2 new value: 004f73e6 Last Exp Value: ffffffff
06-24 12:07:56.885 1063 1063 I ADSPD : Watchdog 3 new value: 004f73e7 Last Exp Value: ffffffff
06-24 12:07:58.809 1627 2161 D BatteryService: uevent={POWER_SUPPLY_VOLTAGE_NOW=4078497, POWER_SUPPLY_CHARGE_RATE=Normal, POWER_SUPPLY_HEALTH=Good, POWER_SUPPLY_CURRENT_NOW=-374143, POWER_SUPPLY_PRESENT=1, SUBSYSTEM=power_supply, POWER_SUPPLY_TEMP=262, SEQNUM=352002, ACTION=ch
@yringler
yringler / log.txt
Created June 24, 2019 14:23
flutter debug crash adb logcat
--------- beginning of crash
06-19 12:01:03.200 11159 11159 E AndroidRuntime: FATAL EXCEPTION: main
06-19 12:01:03.200 11159 11159 E AndroidRuntime: Process: org.chabad.history, PID: 11159
06-19 12:01:03.200 11159 11159 E AndroidRuntime: java.lang.RuntimeException: Unable to start receiver org.chabad.history.receivers.DailyNotification: org.chabad.history.crash.exception.ApplicationException: Error executing in TimeNotification.
06-19 12:01:03.200 11159 11159 E AndroidRuntime: at android.app.ActivityThread.handleReceiver(ActivityThread.java:3345)
06-19 12:01:03.200 11159 11159 E AndroidRuntime: at android.app.ActivityThread.-wrap17(Unknown Source:0)
06-19 12:01:03.200 11159 11159 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1750)
06-19 12:01:03.200 11159 11159 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:105)
06-19 12:01:03.200 11159 11159 E AndroidRuntime: at android.os.Looper.loop(Looper.java:164)
06-19 12:01:03.200 11159 11159 E AndroidRun
@yringler
yringler / RouteWithQueryParamatersAttribute.cs
Last active April 1, 2021 16:39
MVC Core: Prefer action which best matches query parameters
using Microsoft.AspNetCore.Mvc.ActionConstraints;
using Microsoft.AspNetCore.Mvc.ModelBinding;
using MoreLinq;
using System;
using System.Linq;
namespace Api.Constraints
{
/// <summary>
/// Use amount of matching query parameters to find the right action.
@yringler
yringler / IDataBaseRecord.cs
Last active October 26, 2018 14:35
A contract resolver for JsonApiSerializer which treats integer ids as string ids
using System;
namespace Chabad.Data.Entities
{
public interface IDatabaseRecord
{
int Id { get; set; }
}
}
{
"openapi": "3.0.0",
"info": {
"title": "Virtual Path API",
"description": "How to use the API for creating and querying virtual paths on Shluchim sites.",
"version": "0.0.1"
},
"servers": [
{
"url": "https://www.chabadone.org",