ip link show wlp6s0Discover gists
| public class RealPathUtil { | |
| public static String getRealPath(Context context, Uri fileUri) { | |
| String realPath; | |
| // SDK < API11 | |
| if (Build.VERSION.SDK_INT < 11) { | |
| realPath = RealPathUtil.getRealPathFromURI_BelowAPI11(context, fileUri); | |
| } | |
| // SDK >= 11 && SDK < 19 | |
| else if (Build.VERSION.SDK_INT < 19) { |
When answering these questions, it's essential to show your ability to communicate technical concepts in an easy-to-understand manner and describe your work processes.
- What is a SAN, and how is it used?
SAN stands for a Storage Area Network. This is a high-speed, specialized network that gives block-level network access to storage. SANs are used to improve application availability, enhance performance, increase storage utilization and effectiveness and improve data security and protection.
- When is it appropriate to denormalize database design?
Denormalization is a database optimization technique used to improve a database's performance for specific queries. Denormalization may be needed when improvements need to be made to a database for it to meet your application requirements. However, denormalization will have an impact on what your database is able to do, so it's important to make sure it's needed for scalability or performance before choosing to use
| .POSIX: | |
| CC = cc | |
| CFLAGS = -std=c99 -Wall -Wextra -g -fsanitize=address,undefined | |
| LDFLAGS = | |
| LDLIBS = | |
| ipinfo$(EXE): ipinfo.c | |
| $(CC) $(CFLAGS) $(LDFLAGS) -o $@ ipinfo.c $(LDLIBS) | |
| clean: |
| version = "1" |
| # should works on any cloud-init enabled hypervisor (openstack.. ) | |
| # start from a normal ubuntu 20.04 install as minimal was not available for ARM64 | |
| # Since ARM64 machines has higher RAM, Shrinking is desired but not necessary. Instead we will increase tmpfs to 1700MB | |
| # Getting root (if sudo -i doesn't work then set a root password beforehand using 'sudo passwd root' | |
| sudo -i | |
| # make sure we are on the highest kernel, so we can delete all the others ... |
| """ | |
| The most atomic way to train and run inference for a GPT in pure, dependency-free Python. | |
| This file is the complete algorithm. | |
| Everything else is just efficiency. | |
| @karpathy | |
| """ | |
| import os # os.path.exists | |
| import math # math.log, math.exp |
The documentation for this is pretty terrible and we had to figure this out by trial and error.
The storage box has a password, which is secret and random if not provided. It can be reset to an arbitrary one in the console ("Reset password" in the dropdown menu). Cannot be disabled. It's the only way to use WebDAV and SMB. Always accepted by SSH (and thus SFTP) on either port. It is the only way to recover a storage container you have locked yourself out of after losing SSH keys.
The SSH server on port 22 rejects shell, but it allows spawning the SFTP backend. Requests for any other command or subsystem seem to fail, so it seems to be made specifically for SFTP use.
The SSH server on port 23 offers a limited shell (rsh) with rsync, restic and a few other whitelisted commands. No redirections, pipes or other common shell features you'd expect. (dd is whitelisted, so yo