This file contains hidden or 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
Traceback (most recent call last): | |
File "/opt/.venvs/glances_venv/bin/glances", line 8, in <module> | |
sys.exit(main()) | |
File "/opt/.venvs/glances_venv/lib/python3.12/site-packages/glances/__init__.py", line 190, in main | |
start(config=core.get_config(), args=core.get_args()) | |
File "/opt/.venvs/glances_venv/lib/python3.12/site-packages/glances/__init__.py", line 153, in start | |
setup_server_mode(args, mode) | |
File "/opt/.venvs/glances_venv/lib/python3.12/site-packages/glances/__init__.py", line 103, in setup_server_mode | |
mode.serve_forever() | |
File "/opt/.venvs/glances_venv/lib/python3.12/site-packages/glances/standalone.py", line 186, in serve_forever |
This file contains hidden or 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
package com.example.jsontoavro; | |
import org.apache.avro.AvroTypeException; | |
import org.apache.avro.Schema; | |
import org.apache.avro.generic.GenericRecord; | |
import org.apache.avro.io.DatumReader; | |
import org.apache.avro.io.DatumWriter; | |
import org.apache.avro.io.DecoderFactory; | |
import org.apache.avro.io.EncoderFactory; | |
import org.apache.avro.io.JsonDecoder; |
This file contains hidden or 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
Additional Questions from Career-cup | |
Company selected Google, | |
Sorted by most comments | |
1.Partition integer array respect to zero, i.e. negative ... 0 ... positive, keep relative order | |
E.g. -1 1 3 -2 2 => -1 -2 1 3 2. | |
2. Search in 2D matrix, | |
Given each row and column sorted, or given for each (i,j) A[i][j] < A[i][j+1] & A[i][j] < A[i+1][j] |
This file contains hidden or 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
# Ensure following script in executed on remote host first | |
# https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1 | |
# Get the URL of the latest binaries from here | |
# https://github.com/billziss-gh/sshfs-win/releases | |
# https://github.com/billziss-gh/winfsp/releases | |
$winfsp_url = "https://github.com/billziss-gh/winfsp/releases/download/v1.7B2/winfsp-1.7.20123.msi" | |
$winfsp_msi = "winfsp-1.7.20123.msi" | |
$sshfs_url = "https://github.com/billziss-gh/sshfs-win/releases/download/v3.5.20024/sshfs-win-3.5.20024-x64.msi" |
This file contains hidden or 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
#!/bin/bash | |
# Location for ESXi ISOs | |
ESXI_BUILDS_LOCAL_PATH=/home/esxi_builds | |
# FTP root dir | |
FTP_ROOT=/var/ftp | |
# Functions to parse hook_data | |
. $(dirname $0)/hook_functions.sh |