User management in Ubuntu

Posted on Posted in Linux-Ubuntu, Programming

Show last user logins into the system lastlog | less Currently logged in users in the system who Add new user adduser username usergroupname (perl calling useradd) useradd username Delete user userdel username userdel -r username removing home directory deluser with /etc/deluser.conf (Debian and derivatives) deluser –remove-home    

Windows 10 Add better sendto functionality

Posted on Posted in Programming, Windows

Adds multiple file send to functionality Create SendToMailRecipient.vbs somewhere executable with the code below Create a shortcut link to it Put the link in the directory opened with shell:sendto Option Explicit Dim objArgs, OutApp, oNameSpace, oInbox, oEmailItem, olMailItem Dim a, oAttachments, subjectStr, olFormatHTML olMailItem = 0 olFormatHTML = 2 Set objArgs = WScript.Arguments ‘gets paths […]

Thomas Sowell Quotes

Posted on Posted in Politics

30. “The problem isn’t that Johnny can’t read. The problem isn’t even that Johnny can’t think. The problem is that Johnny doesn’t know what thinking is; he confuses it with feeling.” 29. “One of the consequences of such notions as ‘entitlements’ is that people who have contributed nothing to society feel that society owes them something, […]

Heinlein quotes

Posted on Posted in Entrepreneurship, Innovation, Politics

Throughout history, poverty is the normal condition of man. Advances which permit this norm to be exceeded — here and there, now and then — are the work of an extremely small minority, frequently despised, often condemned, and almost always opposed by all right-thinking people. Whenever this tiny minority is kept from creating, or (as […]

Magento Code Snippets

Posted on Posted in Magento

Download extension manually using pear/mage Pear for 1.4, mage for 1.5. File downloaded into /downloader/.cache/community/ ./pear download magento-community/Shipping_Agent ./mage download community Shipping_Agent Clear cache/reindex <?php // clear cache Mage::app()->removeCache(‘catalog_rules_dirty’); // reindex prices Mage::getModel(‘index/process’)->load(2)->reindexEverything(); /* 1 = Product Attributes 2 = Product Attributes 3 = Catalog URL Rewrites 4 = Product Flat Data 5 = Category […]

Inverse selection in File Explorer

Posted on Posted in Windows

Use Invert Selection for Easier File Selection in Windows Explorer The next time you need to select most of the files in an open Explorer window don’t waste your time holding down Ctrl and clicking each file manually. It’s much easier to select the ones you DON’T need, and then let Windows reverse your selection. […]

Excel tips

Posted on Posted in Windows

Freezing Rows and Columns If you have a lengthy spreadsheet containing tons of data, you may have to scroll too far down or even across to view it all. This means you will lose sight of your headings and find yourself constantly scrolling back to see them. However, if you freeze the rows and columns, […]

Windows 10 annoyances

Posted on Posted in Windows

1. You can not map a network drive with different users on the same remote server. Microsoft says “it is by design”. Why?. There is no clear answer… but there are no technical barriers. 2. Control Panel has disappeared. But there is no substitute for many functionalities. 3. Selecting default app for a file extension […]

Bash Reference

Posted on Posted in Linux-Ubuntu, Programming

The Shebang (#!) In the beginning, first line of the file, no spaces. Next, absolute path to the script interpreter (might change, but better to execute anywhere), in this case: /bin/bash Call to the script does not look in current directory, so ./ is necessary or it has to be included in PATH Special System […]