Its working principle is mathematically heavy. Basically, it uses some input values, processes it using a function and then matches the value to a particular class.
With GNU find and GNU coreutils, and assuming your directories don't have newlines in their names: find . -mindepth 1 -maxdepth 1 -type d -exec du -ks {} + | awk '$1 <= 50' | cut -f 2- This will list directories with total contents smaller than 50K. If you're happy with the results and you want to delete them, add | xargs -d \\n rm -rf to the end of the command line. Command: find . -mindepth 1 -maxdepth 1 -type d -exec du -ks {} + | awk '$1 <= 50' | cut -f 2- | xargs -d \\n rm -rf Source: https://unix.stackexchange.com/questions/214089/command-to-delete-directories-whose-contents-are-less-than-a-given-size
To install Broadcom Wireless Drivers on Xubuntu 16.10 to connect to JBL Bluetooth Speaker for a more immersive sound experience during special occasions as beautifully depicted in xkcd comic below with an important life lesson. Please follow the steps given below: 1. Knowing what Broadcom wireless card you have : Open the terminal and run the following command: lspci -nn -d 14e4: Output would be as given below: 2. Preparing the System: Now run the following commands: sudo apt update sudo update-pciids 3 . Installing the Package: Run the following command as per your package type: sudo apt install <PACKAGE_NAME> Package can name be identified from the following table: BROADCOM WIRELESS TABLE (Updated November 8, 2016) PCI.ID 14.04 LTS 16.04+ ------------------------------------------------------------------------------------ 14e4:0576 Special Case #1 UNKNOWN 14e4:4301 ...
So, while I was exploring the infinite possibilities presented by Python. I found this great python package facepy . Using which you can update your facebook status from python terminal. The only prerequisite is that you must be facebook developer to gain access to GraphAPI. Following the steps given below, you can also update your status using python: 1. Download facepy and install it by running this command: python setup install 2. Create a new application or use an existing one previously created. 3. Run python.exe from command terminal (cmd in Windows). Use the user access token created in the previous step with facepy: >> from facepy import GraphAPI >>ACCESS_TOKEN = 'access-token-copied-from-graph-api-explorer-on-web-browser' >>graph = GraphAPI(ACCESS_TOKEN) >>graph.post('me/feed', message='Hello World!') That's it. You may further experiment with GraphAPI using facepy. Happy Experimenting!! MG
Comments
Post a Comment