Skip to content

Instantly share code, notes, and snippets.

@darrenparkinson
darrenparkinson / head.html
Last active February 21, 2024 10:31
Markdown Preview Enhanced
<!-- The content below will be included at the end of the <head> element. -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">
<script type="text/javascript">
document.addEventListener("DOMContentLoaded", function () {
// your code here
});
</script>
@darrenparkinson
darrenparkinson / .tmux.conf
Last active February 20, 2024 14:26
tmux config
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# reload config
bind r source-file ~/.tmux.conf
@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",
@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"
// 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") {
// 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",
@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');
@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 / 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 / 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