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
{ | |
'2022-03-30': '4.8.0', | |
'2022-03-18': '4.7.0', | |
'2022-03-09': '4.6.0', | |
'2022-03-07': '4.5.0', | |
'2022-03-01': '4.4.0', | |
'2022-02-21': '4.2.0', | |
'2022-02-02': '4.0.0', | |
'2022-01-28': '2.125.0', | |
'2022-01-27': '2.124.0', |
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
// Sort the results from best to worst | |
sort(results){ | |
// Skip and limit | |
let limit = new Number(this.sort_limit); | |
let skip = new Number(this.sort_skip); | |
if(skip > limit) skip = limit; | |
// Fix negative lows | |
results = results = results.map(r => {r.low = Math.max(0, r.low); return r;}); |
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 | |
# This script is intended for use by on-premise users of the Wire (wire.com) backend. | |
# The script gathers information on the installation and system, and packages that information for easy transmission to the wire Support team, in order to assist with debugging issues. | |
# Hello. | |
echo "# Begin Wire information gathering" | |
# Ensure we are running in sudo mode. | |
echo "# Ensuring we are in sudo mode" |
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 | |
# Usage: | |
# chmod +x screen.sh | |
# ./screen.sh | |
# Allow password-less sudo | |
# This is necessary for the virsh commands to work without password input for the sudo, or they break. | |
sudo sed -i 's/\(^%sudo\s\+ALL=(ALL[:]\?ALL)\s\+\)/\1NOPASSWD: /' /etc/sudoers |
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
## Description | |
Trying to run training, I get the following error: | |
``` | |
Check failed: (dataset->num_total_features_) == (static_cast<int>(feature_names_.size())) at /home/arthur/dev/btc/LightGBM/src/io/dataset_loader.cpp, line 1100 . | |
``` | |
The full output of the command: |
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
#include <stdio.h> | |
#include <signal.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <string.h> | |
pid_t server_pid; | |
int index = 0, bit_index = 0, checksum = 0; | |
char* str; |
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
## Editing coredns config. | |
1. Get config into a file. | |
d kubectl get configmap coredns -n kube-system --output yaml > coredns_config.yaml | |
2. Modify the file. | |
Replacing: |
OlderNewer