Skip to content

Instantly share code, notes, and snippets.

View ronihcohen's full-sized avatar
🎯
Focusing

Rony HaCohen ronihcohen

🎯
Focusing
View GitHub Profile
@ronihcohen
ronihcohen / Running "foreman" task
Last active August 29, 2015 14:02
Running "foreman" taskFatal error: spawn ENOENT
$ grunt --gruntfile /home/roni/web/the-shelf/Gruntfile.js serve
Running "clean:server" (clean) task
Cleaning .tmp...OK
Running "bowerInstall:app" (bowerInstall) task
Running "concurrent:server" (concurrent) task
Running "copy:styles" (copy) task
@ronihcohen
ronihcohen / gist:1a55e2862e85116e90f6
Created June 21, 2014 13:09
Toggle default sound device - Windows 7 , autohotkey
ScrollLock::
switch := !switch
If (switch)
usePlaybackDevice(1)
else
usePlaybackDevice(4)
return
usePlaybackDevice(device) {
Run, mmsys.cpl
@ronihcohen
ronihcohen / gist:64e80d617f791eb811e5
Created June 1, 2014 11:44
Quick guide div auto scroll
<style>
.guide-container{
height: 450px;
width: 750px;
overflow-x: scroll;
overflow-y: hidden;
direction: rtl;
}
@ronihcohen
ronihcohen / gist:d2e07e0b2043845e6a94
Last active August 29, 2015 14:02
Ubuntu toggle HDMI display + sound output.
#!/bin/sh
# This shell script is PUBLIC DOMAIN. You may do whatever you want with it.
TOGGLE=$HOME/.toggle
if [ ! -e $TOGGLE ]; then
touch $TOGGLE
xrandr --output HDMI2 --auto --left-of VGA1
pactl set-card-profile 0 output:hdmi-stereo-extra2
else
@ronihcohen
ronihcohen / A-Pen-by-Ronny.markdown
Created January 30, 2014 14:51
A Pen by Ronny.