- Pixivel
- pixivθγ (Login Required)
=ROUND( A2/(1024)^(FLOOR(log(A2)/log(1024))), 2) & " " & SWITCH( FLOOR( log(A2) / log(1024) ) ,0,"Bytes",1,"KiB",2,"MiB",3,"GiB",4,"TiB")
Custom format for displaying bytes as kb, mb, gb or tb.
Response to a few places on the internet: https://productforums.google.com/forum/#!topic/docs/x_T_N-yRUYg And here: https://stackoverflow.com/questions/1533811/how-can-i-format-bytes-a-cell-in-excel-as-kb-mb-gb-etc
Here is one that I have been using:
[<1000000]0.00," KB";[<1000000000]0.00,," MB";0.00,,," GB"
| # Kernel sysctl configuration file for Red Hat Linux | |
| # | |
| # For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and | |
| # sysctl.conf(5) for more details. | |
| # Controls source route verification | |
| net.ipv4.conf.default.rp_filter = 1 | |
| # Do not accept source routing | |
| net.ipv4.conf.default.accept_source_route = 0 |
- On local make an RSA key if you haven't already (
ssh-keygen) - Copy that key into .ssh/authorized_keys on the first (i.e. bastion) server (
ssh-copy-id [email protected]) 2b. Test that you canssh [email protected]and connect without password ssh to first.serverand create an RSA key on first.server if you haven't already (ssh-keygen)ssh-copy-idto the server you want to access (what I am calling second.server) 4b. test that you can ssh from first.server to second.server without entering a password
rsync -e "ssh [email protected] ssh" [email protected]:/path/to/file /path/to/local/dest
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.
I had a bit of trouble trying to configure permissions to upload files from my Google Compute Engine instance to my Google Cloud Storage bucket. The process isn't as intuitive as you think. There are a few permissions issues that need to be configured before this can happen. Here are the steps I took to get things working.
Let's say you want to upload yourfile.txt to a GCS bucket from your virtual machine.
You can use the gsutil command line tool that comes installed on all GCE instances.
If you've never used the gcloud or gsutil command line tools on this machine before, you will need to initialize them with a service account.