Skip to content

Instantly share code, notes, and snippets.

View jhigdon's full-sized avatar
🦝

Jonathan Higdon jhigdon

🦝
View GitHub Profile
@jhigdon
jhigdon / compress_video
Created October 19, 2024 01:42 — forked from trvswgnr/compress_video
portable shell script to compress videos with ffmpeg
#!/bin/sh
print_usage() {
echo "usage: compress_video <input_file>"
echo "supported formats: mp4, webm, mkv, mov, avi, flv"
}
get_extension() {
f="${1##*/}"
case "$f" in
@jhigdon
jhigdon / ntlm_authentication_example.swift
Created October 11, 2024 00:23 — forked from stevenschobert/ntlm_authentication_example.swift
Example of NTLM authentication in iOS using NSURLSession
import UIKit
class ViewController: UIViewController {
@IBOutlet weak var execButton: UIButton!
var username: String? = nil
var password: String? = nil
lazy var conn: NSURLSession = {