Skip to content

Instantly share code, notes, and snippets.

@rockkoca
rockkoca / pysyslog.py
Created January 9, 2021 06:12 — forked from marcelom/pysyslog.py
Tiny Python Syslog Server
#!/usr/bin/env python
## Tiny Syslog Server in Python.
##
## This is a tiny syslog server that is able to receive UDP based syslog
## entries on a specified port and save them to a file.
## That's it... it does nothing else...
## There are a few configuration parameters.
LOG_FILE = 'youlogfile.log'
@rockkoca
rockkoca / README.md
Last active June 14, 2019 16:49 — forked from tombigel/README.md
How to Change Open Files Limit on OS X, macOS Sierra, and macOS Mojave (10.8 - 10.13)

How to Change Open Files Limit on OS X and macOS

This text is the section about OS X Yosemite (which also works for macOS Sierra) from https://docs.basho.com/riak/kv/2.1.4/using/performance/open-files-limit/#mac-os-x

The last time i visited this link it was dead (403), so I cloned it here from the latest snapshot in Archive.org's Wayback Machine https://web.archive.org/web/20170523131633/https://docs.basho.com/riak/kv/2.1.4/using/performance/open-files-limit/

Mac OS X

To check the current limits on your Mac OS X system, run:

@rockkoca
rockkoca / README.md
Created February 18, 2019 05:00 — forked from drewkerrigan/README.md
Setting open files limit in OSX 10.11.3

Download this gist, and then run:

chmod 755 open_files_limit_mac.sh
./open_files_limit_mac.sh

Restart the system, and then run:

@rockkoca
rockkoca / crashplanFixup.sh
Created October 27, 2018 06:11 — forked from thewellington/crashplanFixup.sh
Prevent CrashPlan from de-duplicating data on a Mac. Improves transfer speed! #mac #blog #crashplan
#!/bin/bash
#
# crashplanFixup.sh for Macintosh OS X 10.9 (and probably earlier versions)
#
# This script will prevent CrashPlan from de-duplicating data on files greater than 1k.
# Based on information from http://networkrockstar.ca/2013/09/speeding-up-crashplan-backups/
#
# NOTE: Must be run with sudo! IE: $ sudo sh ./crashplanFixup
#
# v1.1 2014-03-13 by bill@wellingtonnet.net
@rockkoca
rockkoca / gifextract.py
Created June 16, 2018 00:36 — forked from BigglesZX/gifextract.py
Extract frames from an animated GIF, correctly handling palettes and frame update modes
import os
from PIL import Image
'''
I searched high and low for solutions to the "extract animated GIF frames in Python"
problem, and after much trial and error came up with the following solution based
on several partial examples around the web (mostly Stack Overflow).
There are two pitfalls that aren't often mentioned when dealing with animated GIFs -
@rockkoca
rockkoca / gist:6ff74aa8a51d8e3eb73f4e6ee9cf4582
Created January 1, 2017 05:45
Use Ubuntu server or NAS as Mac Time Capsule
1. If you want to use Ubuntu as the Time Capsule.
Go to here (Making Ubuntu Server A Mac Time Capsule)
https://fzhu.work/blog/mac/making-ubuntu-server-a-mac-time-capsule.html