All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker
. This will install the whole docker suite, left only Tini to be compiled manually.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Turn your code into beautiful images using carbon-now-cli. | |
You will need npm installed on your machine to install carbon-now-cli.. | |
Windows: npm install -g carbon-now-cli | |
Linux: sudo npm install -g carbon-now-cli --unsafe-perm=true --allow-root | |
MacOS: I assume almost the same as linux ¯\_(ツ)_/¯ | |
""" | |
import os | |
from time import sleep |
While I'm learning how to use Nginx, I was instructed to update the server_names_hash_bucket_size
(/etc/nginx/nginx.conf
) value from 32 to 64, but I don't understand why should I increase the value to 64.
References that have been read so far:
- See the Server names, Optimization section.
- See setting up hashes
Source: https://crashingdaily.wordpress.com/2008/03/06/diff-two-stdout-streams/
You can diff
two commands stdout without creating two files. <( ... )
command creates a temporary file with the stdout of the command inside it.
Example:
diff -B <( ls -1 / ) <( ls -1 ~ )
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pydrive.auth import GoogleAuth | |
from pydrive.drive import GoogleDrive | |
"""API calls to download a very large google drive file. The drive API only allows downloading to ram | |
(unlike, say, the Requests library's streaming option) so the files has to be partially downloaded | |
and chunked. Authentication requires a google api key, and a local download of client_secrets.json | |
Thanks to Radek for the key functions: http://stackoverflow.com/questions/27617258/memoryerror-how-to-download-large-file-via-google-drive-sdk-using-python | |
""" |