Skip to content

Instantly share code, notes, and snippets.

/*
* Property prefix hacks
*/
/* IE6 only - any combination of these characters */
_ - £ ¬ ¦
/* IE6/7 only - any combination of these characters */
@rxin
rxin / ramdisk.sh
Last active December 13, 2023 02:40
ramdisk create/delete on Mac OS X.
#!/bin/bash
# From http://tech.serbinn.net/2010/shell-script-to-create-ramdisk-on-mac-os-x/
#
ARGS=2
E_BADARGS=99
if [ $# -ne $ARGS ] # correct number of arguments to the script;
then
@john-science
john-science / smallest_lenses_for_sony_a7.md
Last active August 27, 2019 15:06
The smallest lenses adaptable to the Sony a7 (series)

Smallest Lenses Adaptable to the Sony a7

This has been moved to a blog post.

@jaredhowland
jaredhowland / clear-font-cache.md
Last active November 6, 2024 14:41
Clear Mac OS X Font Caches
@unitycoder
unitycoder / local-stream-server-win10.md
Last active November 14, 2024 21:20
Local RTMP Stream Server for Windows

https://obsproject.com/forum/resources/how-to-set-up-your-own-private-rtmfp-server-using-monaserver.153/ (copied here as a backup)

This article is inspired of the great guide of How to set up your own private RTMP server using nginx. https://obsproject.com/forum/resources/how-to-set-up-your-own-private-rtmp-server-using-nginx.50/

MonaServer is a tiny and scalable open source server which provide protocols RTMFP, RTMP, RTMPE, WebSocket and HTTP. Server applications are written in lua and clients just need to support one of these protocols.

The interest of MonaServer here is the RTFMP broadcast feature that avoid congestion (because it is a UDP protocol) unlike RTMP.

This guide will presents you an easy way to broadcast a video with OBS over RTMFP. Don't worry, you will not need to configure or write any code here :)

@jc-torresp
jc-torresp / QuakeTerminal.ahk
Created September 21, 2019 03:45
AutoHotkey script for Quake style console on Windows (Ubuntu terminal)
; Change your hotkey here (Default Win + ~)
#SC029::
DetectHiddenWindows, on
IfWinExist ahk_exe ubuntu.exe
{
IfWinActive ahk_exe ubuntu.exe
{
WinHide ahk_exe ubuntu.exe
@slykar
slykar / docker-compose-hackintosh.md
Last active October 30, 2024 19:14
Docker and Docker Compose on AMD OSX Hackintosh via Docker Machine

Introduction

Docker.app will complain about incompatible processor, so we will use Docker Machine.

Instalation

Download Docker for Mac (Docker.app). It contains some binaries that are necessary.

brew install virtualbox docker-machine
@willsthompson
willsthompson / sacd_ripping_guide.md
Last active November 1, 2024 21:31
SACD Ripping Guide
@deathau
deathau / Readme.md
Last active September 21, 2024 03:05
Obsidian scss

Obsidian SASS theme switching tools

I was building up a small library of css snippets, and mixing and matching via copy-paste was getting tiresome.
So, I knocked myself up a little solution using https://sass-lang.com/
To use this solution, you need to follow the instructions on the website to install the SASS command line utility.

Instructions

For my purposes, I created a subfolder in my Obsidian vault called ./.themes where my obsidian.scss file lives. I also created a subfolder for mixins (./.themes/mixins) containing small snippets like "Andy Matuschak" mode and collapsing sidebars (and my preferred custom colours for my Base2Tone theme)

@Novex
Novex / nginx.conf
Created September 6, 2020 08:18
Old ghetto brb server
# Replace $INPUT_STREAM_KEY,$TWITCH_SERVER,$TWITCH_KEY,$TWITCH_TEST_KEY, and $RTMP_FALLBACK with your actual values
# This doesn’t work super well, sometimes twitch disconnects on brb switch
# Use something like https://github.com/Hakkin/streamRIP instead
daemon off;
worker_processes 1;
error_log /dev/stderr;
events {
worker_connections 1024;
}