Skip to content

Instantly share code, notes, and snippets.

View Aldaviva's full-sized avatar
🆒
This user is COOL

Ben Hutchison Aldaviva

🆒
This user is COOL
View GitHub Profile
@Aldaviva
Aldaviva / polycom-hdx-http-dial.http
Last active August 29, 2015 14:22
Polycom HDX HTTP dial command
POST http://10.4.9.106:80/a_manualdial.cgi HTTP/1.1
Authorization: Digest username="admin",realm="this web site",nonce="557229f05ac94a2b0",algorithm=MD5,qop=auth,uri="/a_manualdial.cgi",cnonce="bf452e7a",nc=00000001,response="3b496c17c02b965aefc0e874d35b9a17"
Content-Type: application/x-www-form-urlencoded
Connection: close
Content-Length: 50
Host: 10.4.9.106:80
dialnumber=10990.0000%40199.48.152.152&speeds=1472
@Aldaviva
Aldaviva / relay-client-example.py
Created September 30, 2015 22:24
Example of a simple Python client for the Blue Jeans Relay API, including authentication
import getpass
import base64
import requests
print "How Many Endpoints Are In Your Relay Enterprise?\n"
username = raw_input('username: ')
password = getpass.getpass('password: ')
basicAuthValue = base64.standard_b64encode(username + ":" + password)
@Aldaviva
Aldaviva / 1.md
Last active September 13, 2016 02:50
Get a Blue Jeans meeting owner's name by meeting ID

Get the Owner's Name of a Blue Jeans Meeting

Inputs

  • (required) Blue Jeans numeric Meeting ID, e.g. 494435558
  • (required for meetings with a passcode) Blue Jeans meeting passcode, can be either the participant passcode or the moderator passcode, e.g. 3691

Outputs

  • Full name of the owner of the meeting, e.g. John Doe
@Aldaviva
Aldaviva / 1.md
Last active July 9, 2016 00:50
Get the Title of a Blue Jeans Meeting

Get the Title of a Blue Jeans Meeting

Inputs

  • (required) Blue Jeans numeric Meeting ID, e.g. 494435558
  • (required for meetings with a passcode) Blue Jeans meeting passcode, can be either the participant passcode or the moderator passcode, e.g. 3691

Outputs

  • Title of the meeting (as set by the owner), e.g. Ben's Meeting
@Aldaviva
Aldaviva / Fix context menus.reg
Created September 29, 2016 05:38
Un-pollute Windows Explorer context menus
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\{90AA3A4E-1CBA-4233-B8BB-535773D48449}]
[-HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\{a2a9545d-a0c2-42b4-9708-a0b2badd77c8}]
[-HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\Open With]
[-HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\Sharing]
@Aldaviva
Aldaviva / smart-ln.md
Last active October 25, 2016 01:09
Make symbolic linking easier.

smart-ln.sh

This is an alias script for ln -s that takes arguments in either order and creates your symlink based on which files exist.

Who can ever remember the order of arguments to ln -s? It doesn't even matter because the user's intention is always unambiguous. Also the argument order is reversed in junction.exe on Windows, which makes it even harder to remember if you use both.

For example, GNU ln works fine with ln -s /tmp mytmp, but if you forget the argument order, can't figure out the useless manpage, and use the wrong order ln -s mytmp /tmp, then it not only won't return an error, it will make a broken symlink called /tmp/mytmp that points to the nonexistent mytmp. This is stupid. It's clear that the user wants a symlink called mytmp that points to /tmp, because /tmp exists and mytmp doesn't.

Installation

@Aldaviva
Aldaviva / Video encoding with FFmpeg.md
Last active May 24, 2023 01:46
Video encoding with FFmpeg, a great tool with the shittiest user interface you can imagine: lots of confusing, unmemorable, unintuitive, undiscoverable command-line flags

Remux without transcoding

ffmpeg -i input.ts -c copy output.mp4

x264, AAC

ffmpeg -i input.avi -c:v libx264 -preset slow -crf 23 -pix_fmt yuvj420p -c:a aac -b:a 160k output.mp4
@Aldaviva
Aldaviva / isMeetingActive.md
Created April 19, 2017 04:17
Has anyone joined a specific BlueJeans meeting?

Is Meeting Active

You can use a generic HTTP client to send a JSON POST request to the BlueJeans API in order to find out if any participants are connected to the given meeting.

Inputs

Name Example Notes
meetingNumericId 10990 The meeting ID of the BlueJeans meeting to check.
meetingPasscode 0000 If the meeting has a participant passcode, you must pass either the participant or moderator passcode, otherwise, you can pass null.
@Aldaviva
Aldaviva / playlist-diff.md
Last active May 3, 2017 09:04
Diff a Google Play Music playlist with a Winamp playlist

Playlist Diff

See what's different between a playlist in Google Play Music and in Winamp.

  1. Go to your playlist in Google Play Music.
  2. Zoom your browser all the way out to avoid paginating the table.
  3. Open the Developer Tools.
  4. Go to the Console tab.
  5. Paste and run the following JavaScript.
@Aldaviva
Aldaviva / comodo.md
Last active August 5, 2017 12:33
Fix Comodo intermediate certificate in Windows certificate store

There is a bad interaction between the Comodo intermediate CA certificates that are distributed in the Windows Trusted Root CA list and generated X.509 certificates from Comodo. This fix has to be applied repeatedly, whenever Windows autoupdates its Trusted Root CA list.

See CertPathValidatorException with Windows server and Android client for the symptoms and causes.

Disable the invalid intermediate certificate

manually

  1. start > run > mmc
  2. file > add/remove snap in
  3. certificates