Skip to content

Instantly share code, notes, and snippets.

View haxcop's full-sized avatar
🏠
Working from home

Carlos Lozada haxcop

🏠
Working from home
  • Ireland - Dublin
View GitHub Profile
<?php
/*
+----------------------------------------------------------------------+
| APC |
+----------------------------------------------------------------------+
| Copyright (c) 2006-2011 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
@haxcop
haxcop / json-to-csv.php
Created January 26, 2019 10:24 — forked from Kostanos/json-to-csv.php
Convert JSON array file to CSV. Use the array keys as the first row. Command line using: json-to-csv.php json.filename > csv.filename
#!/usr/bin/php
<?php
/*
* Convert JSON file to CSV and output it.
*
* JSON should be an array of objects, dictionaries with simple data structure
* and the same keys in each object.
* The order of keys it took from the first element.
*
* Example:
@haxcop
haxcop / Automated_Telly_installation.ps1
Last active April 8, 2018 14:19
Powershell script to run M3U Editor & Telly on Windows using Powershell
######### Created by Carlos L. AKA: HAXCOP #############
######################### V1 ###########################
#and thanks to the creators of these tools used bellow#
# tombowditch = https://github.com/tombowditch/telly
# jjssoftware = https://github.com/jjssoftware/m3u-epg-editor
# ENJOY #
# $L Choose the Directory Path of your output Notice $home = c:\users\YOUrUser (This is a reserved Variable by default into Windows)
@haxcop
haxcop / sync_playlists_to_users.py
Created December 22, 2017 14:59 — forked from JonnyWong16/sync_playlists_to_users.py
Sync Plex playlists to shared users.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Description: Sync Plex playlists to shared users.
# Author: /u/SwiftPanda16
# Requires: plexapi, requests, xmltodict
import requests
import xmltodict