Monday, October 30, 2017

disable vino security

Connecting to the default linux VNC server (vino) fails because of encryption methods?
Just do this.
dconf write /org/gnome/desktop/remote-access/require-encryption false

Saturday, October 28, 2017

Shortcut entry file for linux

Want to place a shortcut entry in linux?
Put these contents in
~/.local/share/applications/[app].desktop

 [Desktop Entry]  
 Encoding=UTF-8  
 Name=Postman  
 Exec=[exec]  
 Icon=[icon]  
 Terminal=false  
 Type=Application  
 Categories=Development;  

Tuesday, October 10, 2017

iNotify limit reached

Want to increase iNotify limit?

 echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p  

Friday, October 6, 2017

Shortcuts on Start menu

Want to pin a shortcut on start menu but you can't? That's because the shortcuts should reside in a specific folder in order to be pinned on start menu :|

This is it:
 %AppData%\Microsoft\Windows\Start Menu\Programs  

Tuesday, August 22, 2017

Configure docker to use socks5 proxy

First create configuration folder for docker's systemd service:
 mkdir -p /etc/systemd/system/docker.service.d  

Then create the configuration file with the name http-proxy.conf and put these contents there:
 [Service]  
 Environment="all_proxy=socks5://127.0.0.1:7777"  
 Environment="NO_PROXY=localhost,127.0.0.1,private.docker.registry.com"  

Apply it:
 systemctl daemon-reload  
 systemctl restart docker  

Tuesday, July 4, 2017

Reset git commit timestamp

Put this in a bash file and run it.

 git filter-branch -f --env-filter \ 
   'if [ $GIT_COMMIT = 5a5fe3bafd3128a3aa6b2f4983b96fcc1287f027 ] 
   then 
     export GIT_AUTHOR_DATE="Sat Jul 1 19:01:20 2017" 
     export GIT_COMMITTER_DATE="Sat Jul 1 19:01:20 2017" 
   fi'

Saturday, April 22, 2017

Handy yum packages for CentOS

 yum -y update  
 yum -y groupinstall "Development Tools"  
 yum -y install firewalld libselinux-python wget mc epel-release python-pip ntp bash-completion nmap net-tools policycoreutils-python python-devel openssl-devel telnet bind-utils bash-completion-extras bpython mtr iotop htop autossh  

Saturday, March 25, 2017

Prune android logs

^(?!(fb4a|ThermalEngine|RRP_WIDGET|ConnectivityService|WifiStateMachine|GAv4|ActivityManager|art|vol\.Events|AppsFlyer|PlayCommon|com\.google\.protobuf|ff))

Wednesday, March 1, 2017

Disable One Drive

Press (Windows key) + R to open the Run box.

Type gpedit.msc and click OK.

In the Local Group Policy Editor, in the folder list under Local Computer Policy, navigate the folders to Local Computer Policy > Computer Configuration > Administrative Templates > Windows Components > OneDrive.

On the OneDrive screen, under Setting, click Prevent the usage of OneDrive for file storage.
In the Prevent the usage of OneDrive for file storage box, select Enabled, then click OK.