Skip to main content


`rsync` freezes and hangs on large files

rsync: connection unexpectedly closed (... bytes received so far) [sender]I have regular server backups which transfers large files over 500GB+ and have --append-verify or --checkusm over ssh parameters specified. What I have found upon analysis is that once the client side completes it's file checks then the server side checks start. Which means while the server is doing it's checks the client side will appear hanged and frozen - run htop on the server to rsync working away.On related note, this very LONG wait would trigger SSH timeout and a rsync: connection unexpectedly closed (254 bytes received so far) [sender] error message, solution is to add below settings to your /etc/ssh/sshd_config. # This will make the server send the clients a “null packet” every 120 seconds and not disconnect them until the client # have been inactive for 720 intervals (120 seconds * 720 = 86400 seconds = 24 hours). ClientAliveInterval 120 ClientAliveCountMax 720 Both issues are likely a non iss…
Recent posts

CPU Basd Hashcat Cracking

Setting up Hashcat for CPU Hacking on DebianHashcat for CPU hacking turned out to be an adventure that almost failed, this is a quick post of the steps needed as a referece if I need to repeat this process again.One could setup run John The Ripper (simpler setup) however I decided to use Hashcat as it's GPU cracking is faster compared to JtR and so down the line I won't have to re-learn.I've have tried the Intel OpenCL 5.0 and 18.1 runtimes but they are not supported on our CPU Pentium(R) Dual-Core CPU E5400Install Hashcat direclty AMD OpenCL CPU package, it has been discounteued but you can get it here.tar xvfj AMD-APP-SDKInstaller-v3.0.130.136-GA-linux64.tar.bz2./ -b --forceIf the above clinfo or hashccat64.bin fail see, and confirm `/etc/` is proper, and also you might need to set your LD_LIBRARY_PATH and LIBRARY_PATH…

Debian/Ubuntu Bitcoin Daemon Startup Script

`bitcoind` init.d startup scriptThe Debian bitcoind package does not install or contain any init.d scripts, and net search failed to return any decent examples so I had to crate my own.If this has helped please comment or follow me on twitter danielsokolows - be great. #!/bin/sh ### -*- mode:shell-script; indent-tabs-mode:nil; sh-basic-offset:2 -*- ### BEGIN INIT INFO # Provides: bitcoind # Required-Start: $network $remote_fs $local_fs # Required-Stop: $network $remote_fs $local_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Bitcoin Deamon # Description: Bitcoin Deamon ### END INIT INFO # modified by Daniel Sokolowski # Install by typing update-rc.d defaults PATH=/sbin:/usr/sbin:/bin:/usr/bin DESC=bitcoind NAME=bitcoind PIDFILE=/var/run/ USER=root DAEMON=/usr/bin/bitcoind #DAEMON_ARGS="-pid=$PIDFILE -datadir=/mnt/M=ST8000AS0002-1NA17Z,S=Z840PWH2/bitcoind-datadir -debuglogfile=/var/log/bitcoind.log" DAEMON_ARGS="-daemon -pid=$PID…

Disable Website Notifications in Chrome and Opera Browsers

... or I can't do it since the 'Websites' tab is missing!Information on the Internet is now outdated and incorrect, there is no longer Website settings tab that allows you to disable these annoying push notification requests both in Chrome, Opera and other Webkit based browsers.I was finally able to find a workaround however and it is to add a wildcard notification block filter. Posting this for your benefit so if this has helped you please comment or follow me @danielsokolow. InstructionsOpen SettingsSearch for notificationsOpen Content settingsClick on NotifciationsIn the Block section add two filters: https://*, and http://*Confirm blocking has worked by visiting

CKEditor Step Out of Element Keyboard Shortcut

Inserting a new paragraph outside of a wrapping elementCKEditor provides templating functionality that allows for insertion of HTML snippets. This is very handy, however for complex markup a problem arises where pressing 'Enter' creates a new paragraph but within the wrapping elements.Searching for how to 'step out of the element' returned nothing helpful and that is the reason why I'm posting a solution. Keyboard shortcuts to force a new paragraph outside the wrapping element are:Shift+Ctrl+3 – Enables entering content (by adding a new paragraph) before a problematic element.Shift+Ctrl+4 – Enables entering content (by adding a new paragraph) after a problematic element.On a side note, the above is provided through the built in Magic Line plugin which is supposed to show a red line insert new paragraph widget but that does not always work. If this has helped you, be legendary and do social share this and do follow me on twitter @danielsokolows.

Light Straightforward CSS Grid

Skeleton vanilla CSS gridWhen you have been at it for a while you realize most of the time less is more, and so in that spirit below is a skeleton grid. It was created without any pre-processor in vanilla CSS, and has been field tested on enterprise level projects.Source code here: If this has helped you, be legendary and do social share this and do follow me on twitter @danielsokolows. /* Light Column Grid v2018-Dev-05 ############################## See: TODO,Jun-13: possibly rather then negative margins use calc and space-between to avoid issues with horizontal scroll on small devices, see: Example: ``` <div class="columnWrapper"> <div class="column width-4/12"> ... </div> <div…

Updated IDE Fork

My improved IDE forkI would argue it is rare that re-inventing the wheel is the better choice compared to just improving an existing solution - I'm looking at you Salesforce Extensions for VS Code - and so since Salesforce opened sourced their IDE I have been updating it to suit my needs, mostly to speedup development: WSDL version 42Ability to 'Disable 'Save to Server' dirty resource check'Ability to 'Disable 'Save to Server' synchronize check'Ability to 'Disable 'Save to Server' user confirmation check'Update Site and Public RepoToday a co-worker needed to get setup with SF development and so I have officially created a public repo and an update site for my version, just add the the below URL to your 'Help > Install New Software...' to get your copy. Pull requests welcomed:…