Skip to content

Instantly share code, notes, and snippets.

@afresh1
afresh1 / firefox
Last active May 12, 2016 18:40
~/bin/firefox for OpenBSD. Raises the ulimits needed to keep Firefox from crashing regularly. (~/bin is in my path before /usr/local/bin)
#!/bin/sh
ulimit -n $(ulimit -Hn)
ulimit -d $(ulimit -Hd)
exec /usr/local/bin/firefox "$@"
@andybarilla
andybarilla / hover.py
Last active August 5, 2023 06:21
DDNS Script for Hover (using their unofficial API)
#!/usr/bin/env python
"""hover.py: Provides dynamic DNS functionality for Hover.com using their unofficial API.
This script is based off one by Dan Krause: https://gist.github.com/dankrause/5585907"""
__author__ = "Andrew Barilla"
__credits__ = ["Andrew Barilla", "Dan Krause"]
__license__ = "GPL"
__version__ = "1.0"
__maintainer__ = "Andrew Barilla"
@ijprest
ijprest / toupper.bat
Created September 10, 2011 01:52
CMD Batch file implementation of toupper() and tolower()
@echo off & SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
SET STR=Test String
SET STR
call :tolower STR
SET STR
call :toupper STR
set STR
goto :EOF
:: toupper & tolower; makes use of the fact that string