Thursday, 23 March 2017

How to "skip" ads on spotify - solution for mac os



Not really solving the ads issue but at least making it less irritating.

This solution should also be portable to linux and actually maybe even better to implement. Mac OS is a bit cumbersome regarding customization.

#### What you will need:

- Spotify infested by adds
- The all mighty Quicksilver installed with the iterm2 plugin also installed

 #### Idea

What we will do is just create a keyboard binding to run a simple script that mutes the system for a certain period of time and then gradually increase the volume back. The idea is that whenever the ads block jump into your focused mind, you can just press a button to mute the whole system and it will peacefully come back to action.

In this example we are muting it for 80 seconds and taking small steps of one second until we come up to a certain output volume level.

I will assume that you know your way around and explaining how to create a text file, change it's permissions to executable are out of the scope of this post.

#### Do it
1) generate the super simple "no-ads" bash script . Adjust the `sleep` parameters as desired.

$ vim no-ads.command
 ```
osascript -e "set Volume 0";
sleep 80s;
for i in {0..20}; do osascript -e "set volume output volume $i";sleep 1s; done
 ```
2) Generate a trigger on QuickSilver that runs the command
```
sh /path/to/your/script/no-ads.command
```
3) Select as action "Run command in Shell" on QuickSilver

4) Finally, record the keybinding. In chose the F10 key on my keyboard (which by the way is set to use the F keys instead of the functional actions). Another option if you have a full keyboard with number pad is to use the F13-F15 keys.



Tuesday, 7 March 2017

resources for centos7

https://www.quora.com/How-can-I-install-X-Windows-on-CentOS-7


https://docs.fedoraproject.org/en-US/Fedora//html/Installation_Guide/sect-trouble-after-graphical-login.html

How to forward virtualbox guest ports to host

Bridge the private network 10.0.2.15 port 22 (ssh) to the host's port 2222

Remember to double check that your private IP (guest IP) is correct. Use ifconfig
 

Thursday, 18 September 2014

using xrandr

identify your devices

xrandr

Screen 0: minimum 320 x 200, current 1920 x 1980, maximum 8192 x 8192
LVDS-1 connected 1600x900+0+1080 (normal left inverted right x axis y axis) 309mm x 174mm
   1600x900      60.01*+  40.00 
   1152x864      59.96 
   1024x768      59.92 
   800x600       59.86 
   640x480       59.38 
   720x400       59.55 
   640x400       59.95 
   640x350       59.77 
VGA-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 510mm x 290mm
   1920x1080     60.00*+
   1680x1050     59.95 
   1400x1050     59.98 
   1600x900      59.98 
   1280x1024     75.02    60.02 
   1440x900      59.89 
   1280x800      59.81 
   1152x864      75.00 
   1280x720      59.97 
   1024x768      75.08    60.00 
   832x624       74.55 
   800x600       75.00    60.32    56.25 
   640x480       75.00    60.00 
   720x400       70.08 
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)



VGA-1 is the external monitor
LVDS-1 is the laptop's screen

Now, select the external screen above the laptop's.

xrandr --output LVDS-1 --below VGA-1

Set the screen as the primary one (so the notification area sits on it)

xrandr --output VGA-1 --primary



Thursday, 31 July 2014

Leumi opening times Weizmann Branch


Leumi Bank Weizmann Institute Branch

Open

Sun. Tues. & Weds.    9-14.30
Mon. & Thurs             9 - 13  16-18.30
Fri.                                 Closed
Holiday Eve                  8.30 - 12

Wednesday, 4 June 2014

rsync including and excluding

rsync -av --include=*/ --include=TransformTree* --exclude=* wavelets/9-cells/ .

Thursday, 8 May 2014

time lapse

http://www.moreno.marzolla.name/software/linux-time-lapse/