Skip to content

Instantly share code, notes, and snippets.

View dardo82's full-sized avatar
🏠
Working from home

Michele Venturi dardo82

🏠
Working from home
View GitHub Profile
@NapoleonWils0n
NapoleonWils0n / vlc_mediastreamsegmenter_ipad.txt
Created November 11, 2012 20:24
macosx: vlc mediastreamsegmenter
Vlc stream to ipad with apache mediastreamsegmenter html5
/*=======================================================================================*/
Append following lines to /etc/apache2/mime.types MIME types of video and playlist.
sudo nano /etc/apache2/mime.types
<!DOCTYPE html>
<html>
<body>
<h1>What were you expecting?</h1>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
@lordgnu
lordgnu / gist:bb0a4d039b5f5fd0e67b
Created June 26, 2014 18:41
Add a User to a Group on OS X
# Command Syntax
sudo dseditgroup -o edit -a <USERNAME> -t user <GROUP NAME>
# To Fix Zend Server Permissions Issues
COMMAND="dseditgroup -o edit -a `whoami` -t user zend"
sudo $COMMAND
@useless
useless / gist:201657
Created October 4, 2009 21:55
Setting Icon.icns as the icon for File.ext.
echo "read 'icns' (-16455) \"Icon.icns\";" > Icon.r
Rez -append -o File.ext Icon.r
SetFile -a CE File.ext
@neonexus
neonexus / OpenSSL Commands.md
Last active May 17, 2016 14:24
AWS ELB OpenSSL commands list

Generate KEY and CSR:

openssl req -new -newkey rsa:2048 -nodes -keyout DOMAIN.key -out DOMAIN.csr

Echo the KEY in PEM format:

openssl rsa -in DOMAIN.key -outform PEM

Echo the CRT in PEM format:

@c0ns0le
c0ns0le / MyFreeCams.sh
Created April 4, 2016 06:35 — forked from dardo82/MyFreeCams.sh
MyFreeCams on AppleTV
#!/bin/sh
ROOMID="$(curl -s $(echo "$1" | awk '{sub(/www/,"profiles"); sub(/#/,""); print $0}') | awk -F/ '/\/[0-9]{7,8}\//{print $6; exit}')"
if [ ${#ROOMID} -eq 7 ]; then
PREFIX="10"; else
PREFIX="1"
fi
MFCURL="http://video .myfreecams.com:1935/NxServer/mfc_$PREFIX$ROOMID.f4v_aac/playlist.m3u8"
for n in $(seq 340 492); do
@ruthenium
ruthenium / mkicns.sh
Created February 2, 2016 01:39 — forked from dardo82/mkicns.sh
Make ICNS from PNG
#!/bin/zsh
#mkicns.sh
FN=${1##*/}
DN=${1%/**}
BN=${FN%.*}
IS=iconset
ID=$BN.$IS
@wm
wm / gist:1664077
Created January 23, 2012 16:22
iterm2 tmux
These release notes are for the development builds of iTerm2. The last stable release was 1.0.0.
iTerm2 1.0.0.20120108
You'd better sit down for this one.
Marquee Features
- Deep tmux integration!
Have you ever had an ssh session lost because you had to reboot, had a network failure, or the power went out? Are you tired of giving up a keystroke to tmux or screen? Suffer no longer! iTerm2 and tmux are now deeply integrated. By installing a special version of tmux, it gains the ability to speak directly to iTerm2. When you run tmux with -C, iTerm2 will open real, native windows or tabs for each tmux window. The whole state of your tmux session is reflected in native iTerm2 windows. As you interact with a window, your typing is sent back to tmux. Any time you resize a window, add a split pane, close a split pane, close a window, or open a window (with Shell-&gt;tmux-&gt;new window), that action happens in tmux as well as in iTerm2. Even your window positions and tabs are saved from session to session. For more
@djtech42
djtech42 / airportLink.sh
Created October 11, 2015 03:46
Create a Symbolic Link to Airport Command Line Tool in OS X
@einaros
einaros / gist:1452010
Created December 9, 2011 15:35
wscat example
$ npm install -g ws
$ wscat -c ws://echo.websocket.org -p 8
connected (press CTRL+C to quit)
> hi there
< hi there
> are you a happy parrot?
< are you a happy parrot?