Skip to content

Instantly share code, notes, and snippets.

View jongpie's full-sized avatar
☁️

Jonathan Gillespie jongpie

☁️
View GitHub Profile
@jongpie
jongpie / _cbltomylar.py
Created April 17, 2025 03:32 — forked from flips22/_cbltomylar.py
CBL to Mylar Script - Imports a CBL file, finds each unique series on comicvine, checks if you already have it in mylar and if not, adds the series to mylar via its api.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
'''
Installation:
1) Add this package as a python wrapper to search the comicvine api:
https://github.com/jessebraham/comicvine-search
I wasn't able to get this module to install so I copied it to the same folder as the .py file (or add to you env of course)
2) Replace [mylar api key] with your api key
3) Replace [mylar server address] with your server in the format: http://servername:port/ (make sure to include the slash at the end)
4) Replace [comicvine api key] with your api key
@jongpie
jongpie / FieldNamesScript.cls
Last active September 21, 2022 02:49 — forked from Feldstrom/LayoutDescriber.cls
Apex script for pulling field names from specific page layouts
public String objectName = ''; //example 'Case'
public String layoutName = ''; //example: 'Case Layout'
new LayoutDescriber().run(objectName, layoutName);
// In anonymous Apex, you can define & run a class.
// In this script, using a class ensures all describe methods work, regardless of field-level security (FLS)
public without sharing class LayoutDescriber {
public void run(String objectName, String layoutName) {
layoutName = objectName + '-' + layoutName;
@jongpie
jongpie / CustomPermissionsReader.cls
Created February 24, 2017 09:30 — forked from afawcett/CustomPermissionsReader.cls
CustomPermissionsReader
/**
* Copyright (c), Andrew Fawcett
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* - Redistributions in binary form must reproduce the above copyright notice,