Skip to content

Instantly share code, notes, and snippets.

View Tschrock's full-sized avatar

Tyler Schrock Tschrock

  • Progressive
  • Ohio, USA
  • 10:10 (UTC -04:00)
View GitHub Profile

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:

#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
@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
@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 / churchonline.com.md
Last active April 11, 2020 01:57
API notes for the Church Online Platform (*.churchonline.com)
@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
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 / scpupload
Last active February 19, 2023 03:48
The shell script I use for automatically uploading screenshots
#!/bin/bash
SCREENSHOTS_DIR="$HOME/Pictures/Screenshots/"
REMOTE_HOST="[email protected]"
REMOTE_PORT="9433"
REMOTE_PATH="/var/www/p.cp3.es/"
HTTP_HOST="https://p.cp3.es/"

Keybase proof

I hereby claim:

  • I am tschrock on github.
  • I am cyberpon3 (https://keybase.io/cyberpon3) on keybase.
  • I have a public key ASCXDj9kLceqhUGdbC0fzoZqdtX1pQdSFPM1w6Tuuo5ihgo

To claim this, I am signing this object:

#!/bin/bash
# Usage:
# sudo ./modify_rpi_disk_image.sh raspbian-stretch-lite.img
function exit_with_error {
echo "Error: $2"
exit $1
}