Wednesday 5 July 2017

Friday 30 June 2017

redshift resources

https://gist.github.com/nylki/cf2363c253cc5dc1538c

Wednesday 28 June 2017

xterm settings

.Xdefaults


xterm*metaSendsEscape:  true
! Molokai theme
*xterm*background: #101010
*xterm*foreground: #d0d0d0
*xterm*cursorColor: #d0d0d0
*xterm*color0: #101010
*xterm*color1: #960050
*xterm*color2: #66aa11
*xterm*color3: #c47f2c
*xterm*color4: #30309b
*xterm*color5: #7e40a5
*xterm*color6: #3579a8
*xterm*color7: #9999aa
*xterm*color8: #303030
*xterm*color9: #ff0090
*xterm*color10: #80ff00
*xterm*color11: #ffba68
*xterm*color12: #5f5fee
*xterm*color13: #bb88dd
*xterm*color14: #4eb4fa
*xterm*color15: #d0d0d0

Tuesday 16 May 2017

Disable automatic desktop switch on mac

defaults write com.apple.dock workspaces-auto-swoosh -bool NO

killall Dock

Disable shadows on screencapture on mac os

defaults write com.apple.screencapture disable-shadow -bool true

for el Capitan. From

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