Skip to content

Instantly share code, notes, and snippets.

@darrenparkinson
darrenparkinson / listLine.js
Created April 4, 2014 16:39
Simple node.js script to request details of a line using Communications Manager AXL API.
var https = require("https");
var authentication = 'username:password';
var headers = {
'SoapAction':'CUCM:DB ver=9.1',
'Authorization': 'Basic ' + new Buffer(authentication).toString('base64'),
'Content-Type': 'text/xml; charset=utf-8'
}
@darrenparkinson
darrenparkinson / listLine.pl
Last active February 5, 2020 01:42
Simple Perl Script to request information from Cisco Communications Manager AXL API
#!/usr/bin/perl -w
use strict;
use warnings;
use Text::CSV;
use LWP::UserAgent;
use LWP::Protocol::https;
use HTTP::Request;
use MIME::Base64;
use XML::LibXML;
@darrenparkinson
darrenparkinson / Jabber Release Note PDFs 2014-08.csv
Last active August 29, 2015 14:05
Jabber Release Note PDFs CSV
9.0.1 http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/jabber/Windows/9_0_1/b_jabber_win_rn.pdf
9.0.2 http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/jabber/Windows/9_0_2/b_jabber_win_rn.pdf
9.0.3 http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/jabber/Windows/9_0_3/b_jabber_win_rn.pdf
9.0.4 http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/jabber/Windows/9_0_4/b_jabber_win_rn.pdf
9.0.5 http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/jabber/Windows/9_0_5/b_jabber_win_rn.pdf
9.1.0 http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/jabber/Windows/9_1/JABW_BK_C3749E76_00_cisco-jabber-windows-release-notes.pdf
9.1.1 http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/jabber/Windows/9_1_1/JABW_BK_C3749E76_00_cisco-jabber-windows-release-notes.pdf
9.1.2 http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/jabber/Windows/9_1_2/JABW_BK_C3749E76_00_cisco-jabber-windows-release-notes.pdf
9.1.3 http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/jabber/Windows/9_1_3/JABW_BK_C3749E76_00_cisco-jabber-windows-releas
@darrenparkinson
darrenparkinson / JabberReleaseNotes_Download.py
Created August 27, 2014 11:15
Download Jabber Release Notes listed in CSV file
import csv # for reading the csv file of files
import urllib # for downloading the file
with open('Jabber.csv', 'rb') as csvfile:
filereader = csv.reader(csvfile, delimiter=',')
for row in filereader:
original_filename = row[1].split('/')[-1]
new_filename = row[0] + ' ' + original_filename
print 'Retrieving : ' + new_filename
urllib.urlretrieve(row[1], new_filename )
@darrenparkinson
darrenparkinson / JabberDemoBot.py
Last active March 7, 2022 01:51
Jabber BOT Demo using Python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import logging
import getpass
from optparse import OptionParser
import time
import sleekxmpp
@darrenparkinson
darrenparkinson / JabberDemoBot.js
Created January 18, 2017 14:43
Jabber BOT Demo using Node.js
'use strict'
const Client = require('node-xmpp-client');
const ltx = require('node-xmpp-core').ltx;
const bunyan = require('bunyan');
const log = bunyan.createLogger({ name: 'jabber-bot' });
const weather = require('./weather');
const tube = require('./tube');
// Place your settings in this file to overwrite the default settings
{
"editor.cursorStyle": "block-outline",
"editor.minimap.enabled": true,
"editor.fontLigatures": true,
"editor.renderWhitespace": "boundary",
"editor.renderIndentGuides": true,
"editor.renderLineHighlight": "gutter",
"editor.fontFamily": "Fira Code",
"workbench.iconTheme": "material-icon-theme",
// From here: https://github.com/edubey/browser-console-crawl/blob/master/single-story.js
console.save = function (data, filename) {
if (!data) {
console.error('Console.save: No data')
return;
}
if (!filename) filename = 'story.json'
if (typeof data === "object") {
@darrenparkinson
darrenparkinson / download-artwork.go
Created October 6, 2020 14:03
Simple go file to download album artwork from spotify using CSV file of albums
package main
import (
"context"
"encoding/csv"
"fmt"
"io"
"log"
"os"
"strings"
@darrenparkinson
darrenparkinson / PixelIt.postman_collection.json
Created January 24, 2023 15:50
PixelIt Postman Collection
{
"info": {
"_postman_id": "08f0fa1e-48d6-4f39-bf07-d7579b3ceb24",
"name": "PixelIt",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "749469"
},
"item": [
{
"name": "0. Example - Fade Animation / Image / Text",