Skip to content

Instantly share code, notes, and snippets.

View joelmgallant's full-sized avatar

Joel Matthew Gallant joelmgallant

  • Halifax, NS
View GitHub Profile
// API level authentication field
// [JsonProperty("api_auth_token")]
public string GetApiAuthToken(string jsonRequest)
{
/* API Level authentication requires an additional ‘api_auth_token’ key/value added to the POST message.
* This token is generated calculating the MD5 sum of the concatenation of the value sent in apirequest,
* the literal string ‘:’ and the api_key */
string api_key = "007ea564129df0fd72eca0df9228245d324c301dddc9254b35a0cd93c4101718";
#region Override Methods
protected override IEnumerator PostJSON(string json, JSONEvent evt)
{
// API authentication...
if(api_value)
{
string hashed = GetApiAuthToken(json);
json += "&api_auth_token=" + hashed;
}
#region Override Methods
protected override IEnumerator PostJSON(string json, JSONEvent evt)
{
// API authentication...
if(api_required)
{
string hashed = GetApiAuthToken(json);
json += "&api_auth_token=" + hashed;
- (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response
{
NSLog(@"Received Connection Response!");
if(([[self webview] isLoading]) == TRUE || true)
{
NSLog(@"Loading redirection!");
[[self webview] stopLoading];
[[self webview] loadRequest:[self request]];
}
- (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error
{
NSLog(@"Webview load failed with error: %@", error);
if(error.code == NSURLErrorCancelled)
{
// [webView reload];
}
{
// fake like I've returned!
@joelmgallant
joelmgallant / designer.html
Last active August 29, 2015 14:14
designer
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../paper-toast/paper-toast.html">
<link rel="import" href="../topeka-elements/theme.html">
<link rel="import" href="../topeka-elements/topeka-resources.html">
<link rel="import" href="../topeka-elements/topeka-categories.html">
<link rel="import" href="../core-icons/core-icons.html">
@joelmgallant
joelmgallant / LPX-Trial-Reset.sh
Created January 23, 2023 20:40 — forked from maxwellmlin/LPX-Trial-Reset.sh
Logic Pro X Trial Reset
mv -v ~/Library/Application\ Support/.lpxuserdata ~/.Trash

How to setup Plex with Sonarr, Radarr, Jackett, Overseerr and qBitTorrent using Docker

This is a guide that will show you how to setup Plex Media Server with Sonarr, Radarr, Jackett, Overseerr and qBitTorrent with Docker. It is written for Ubuntu 20.04 but should work on other Linux distributions as well (considering supported distributions by Docker). It is also written for people who have some experience with Linux and Docker. If you are new to Docker, I recommend you to read the Docker documentation, and if you are new to Linux, I recommend you to read the Ubuntu documentation.

Now, let's get started!

Please note: This guide was written without considering hardlinking for Sonarr/Radarr. If you want to use hardlinking refer to #Hardlinking

Prerequisites