Skip to content

Instantly share code, notes, and snippets.

View Tschrock's full-sized avatar

Tyler Schrock Tschrock

  • Progressive
  • Ohio, USA
  • 10:26 (UTC -04:00)
View GitHub Profile
function getIps() {
return new Promise((resolve, reject) => {
const candidateIps = new Map();
const rtc = new RTCPeerConnection({});
rtc.onicecandidate = (e) => {
if(e.candidate) {
candidateIps.set(e.candidate.candidate.split(' ')[4], e.candidate.candidate)
}
else {
rtc.close();
@Tschrock
Tschrock / ActivateActivityForEach.cs
Created November 17, 2017 20:56
For Loop worflow action for Rock RMS
// <copyright>
// Copyright by the Spark Development Network
//
// Licensed under the Rock Community License (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.rockrms.com/license
//
// Unless required by applicable law or agreed to in writing, software
@Tschrock
Tschrock / churchonline.com.md
Last active April 11, 2020 01:57
API notes for the Church Online Platform (*.churchonline.com)
@Tschrock
Tschrock / yourstreamlive.com.md
Last active June 14, 2018 22:55
API/URL notes for yourstreamlive.com

General

Misc URLs:

General URL Parameters:

  • Streams
    • platform - Specifies the platform to use for event stats
  • user_agent - Used to automatically detect platform
@Tschrock
Tschrock / ponysay_motd.md
Last active December 5, 2019 21:28
A ponysay MOTD for Ubuntu 16.04

A ponysay MOTD for Ubuntu 16.04

Screenshot

  1. Install ponysay: (You may have to sudo apt install software-properties-common first)
    • sudo add-apt-repository ppa:vincent-c/ponysay
    • sudo apt-get update
    • sudo apt-get install ponysay
#include <stdio.h>
#include <stdlib.h>
/**
* ConwaySort:
* sorts an array by ignoring it and then
* printing out a new, sorted array with its
* own "Alternative Values."
*
* If the new array does not appear sorted,
* you have been manipulated by MSM

Keybase proof

I hereby claim:

  • I am tschrock on github.
  • I am tschrock123 (https://keybase.io/tschrock123) on keybase.
  • I have a public key ASCQp-lSBm6PQmy2D-YsXwIdT_7qgQwJgtgbgyfEFT57UQo

To claim this, I am signing this object:

@Tschrock
Tschrock / PicartoAPI.md
Last active August 16, 2024 16:12
Documentation for Picarto.tv's API endpoints

The Picarto API

This is unofficial documentation for Picarto.tv's service APIs. I'm not responsible for anything you do with this information; it is provided as is with no guarantees.

==== UPDATE 4/16/2017 ====

It looks like there is an official well-documented api now: https://docs.picarto.tv/api/ Please use that instead!

==========================

Preview lava/email without page styles messing with things:

{% capture html %}
  <Content here>
{% endcapture %}
<iframe style="width: 100%; height: 800px;" srcdoc="{{html | Escape}}"/>

Commas in single/multi select attributes:

  1. Use &amp;comma;

PicartoChatBot Permissions

The permissions system allows you to control who has access to run commands and make changes to configuration settings.

#Basics

###Permission Ids Each permission object has a unique id. While technically this id could be anything (minus spaces), its recommended they be in the format type.name. For example, the command to set a timeout, !settimeout, uses the permission cmd.settimeout to determine who is allowed to set a timeout's duration. Plugins may also opt to use permissions for other abilities as well, such as using a timeout.bypass permission to allow a person to bypass a timeout or even using a permissions object to filter who is included in a raffle.

###Permission Levels/Ranks