Skip to content

Instantly share code, notes, and snippets.

View protolif's full-sized avatar

James Dunn protolif

  • Protolif Consulting LLC
  • Indianapolis, IN
View GitHub Profile
@protolif
protolif / cw_refreshment.meta.js
Last active February 6, 2017 06:38
Charlie's Whiskey Refreshment
// ==UserScript==
// @name Charlie's Whiskey Refreshment
// @description Refreshes ConnectWise every 10 minutes. Take a drink or go back 3 spaces.
// @version 1.0.1
// @author James Dunn
// @namespace jdunn.netfor.com
// @grant none
// @include https://na.myconnectwise.net/*
// @icon https://pbs.twimg.com/profile_images/1176286377/scotch-glass.png
// @updateURL https://gist.github.com/protolif/b08caa1fa564e6b29cec322be0c4894b/raw/cw_refreshment.meta.js
@protolif
protolif / ff_roam.bat
Last active February 28, 2017 08:40
Batch script to enable Firefox roaming profile - MACL
@echo off
:: PURPOSE: Launches Firefox with a roaming profile so you can save cookies, bookmarks, and passwords again.
:: SETUP: Browse to \\maclsp\user\ and locate the folder with your username. If not found, right click an empty space
:: and create the folder with your MACL username. Save this file to your Desktop on MACL1-3 and/or in startup
:: scripts under Start > Programs > Startup to run it automatically on login.
echo Launching Firefox with roaming profile...
"\\maclprofiles\thinapps\firefox\Mozilla Firefox.exe" -profile \\maclsp\user\%USERNAME%\%USERNAME%.ffp -url http://maclinterface:8081/login.html
exit
puts "Hello #{ARGV[0]}!"
@protolif
protolif / ssh-algos.txt
Created April 24, 2020 00:35
WS_FTP 12 SSH Algorithms
===ssh-kex
diffie-hellman-group-exchange-sha1
diffie-hellman-group1-sha1
===ssh-shk
ssh-dss
ssh-rsa
===ssh-ciphers
aes256-ctr
aes192-ctr
aes128-ctr
@protolif
protolif / sfpyclient.py
Last active May 26, 2020 12:58
SmartFile API Client test for #33131
#!/usr/bin/python3
import os
import pprint
from smartfile import BasicClient
api_key = os.environ['SMARTFILE_API_KEY']
api_password = os.environ['SMARTFILE_API_PASSWORD']
api = BasicClient(api_key, api_password)
# pprint.pprint(api.get('/ping'))
f = open('./tmp/foo.xlsx', 'rb')
pprint.pprint(api.post('/path/data/test_files/', file=('sfpyclient.was.here.xlsx', f)))