Skip to content

Instantly share code, notes, and snippets.

@choco-bot
choco-bot / Install.txt
Created May 14, 2024 12:48
visualstudio2022-workload-webbuildtools v1.0.0 - Failed - Package Tests Results
2024-05-14 12:02:54,673 5432 [DEBUG] - XmlConfiguration is now operational
2024-05-14 12:02:54,821 5432 [DEBUG] - Adding new type 'CygwinService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2024-05-14 12:02:54,830 5432 [DEBUG] - Adding new type 'CygwinService' for type 'IInstallSourceRunner' from assembly 'choco'
2024-05-14 12:02:54,830 5432 [DEBUG] - Adding new type 'PythonService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2024-05-14 12:02:54,830 5432 [DEBUG] - Adding new type 'PythonService' for type 'IListSourceRunner' from assembly 'choco'
2024-05-14 12:02:54,830 5432 [DEBUG] - Adding new type 'PythonService' for type 'IInstallSourceRunner' from assembly 'choco'
2024-05-14 12:02:54,830 5432 [DEBUG] - Adding new type 'PythonService' for type 'IUninstallSourceRunner' from assembly 'choco'
2024-05-14 12:02:54,847 5432 [DEBUG] - Adding new type 'RubyGemsService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2024-05-14 12:02:54,847 5432 [DEBUG] - Adding new typ
@jpbruckler
jpbruckler / AutomateDCRAssignment.ps1
Created May 14, 2024 12:48
Assigns Data Collection Rules to Windows Servers
<#
.SYNOPSIS
Assigns Data Collection Rules to Azure VMs and Azure Arc servers.
.DESCRIPTION
This script connects to Azure, retrieves all Windows Azure VMs and Azure Arc
servers from specified subscriptions, and applies Data Collection Rules to
them. It is intended to streamline the setup of monitoring across both Azure
VM and Azure Arc environments by automating the association of DCRs.
{
"certified": false,
"deleted": false,
"docker_image_digest": "sha256:a5c046a22e8e18459d9fb523b2899b674e340cd04a3363ef1fe613974150ae18",
"docker_image_id": "sha256:5f265fe44806b08b6c0c420ef6d1e822cf2f3f7299b93ad802522d4fa8474c64",
"image_id": "sha256:a5c046a22e8e18459d9fb523b2899b674e340cd04a3363ef1fe613974150ae18",
"parsed_data": {
"architecture": "amd64",
"created": "2024-05-14 12:24:59.773803566 +0000 UTC",
"image_id": "sha256:a5c046a22e8e18459d9fb523b2899b674e340cd04a3363ef1fe613974150ae18",
@Kiterai
Kiterai / gridfs_seek.cpp
Created May 14, 2024 12:47
test for mongodb gridfs with seek
#include <cassert>
#include <cstdint>
#include <iostream>
#include <random>
#include <vector>
#include <bsoncxx/builder/basic/document.hpp>
#include <bsoncxx/json.hpp>
#include <mongocxx/client.hpp>
#include <mongocxx/instance.hpp>
@sharon-xa
sharon-xa / gist:7a9d8c0b9e99c4db550106e73c8e499e
Last active May 14, 2024 12:48
Create an ssh key to use with github (Linux)
  1. Make sure that you have a directory named ".ssh" in your home directory, so the full path is "~/.ssh", if you don't have the directory just create it
  2. cd to ".ssh"
  3. Then run the following command:
ssh-keygen -t ed25519 -C "your_email@example.com"
  1. Adding your SSH key to the ssh-agent (this works with bash, so if you're using fish just run bash and run the command)
eval "$(ssh-agent -s)"
{
"kid": "5F86C4447807C44E",
"kty": "oct",
"e": "65537",
"n": "0n1L0AmXpG5U_FORfQ2Wg6X-OKZ8NB9BiEP_Uu2Mu2PGYJg3JW4u-4g5B1ei5asD9Qgrgpr62ySd-c67GYXBwsIT0clIVNlQ9VALCcLo4laTM_MJEopz6-ybsypCp8cEq3AwaZxh9Ysvh0THMUTpBpSwdvGXLeM221Am3WZvbbBJNfUPNqkogHHTnqU0-zlNVTxO5NWkgrDYtCZyi2aSygYgH3ycB43f58s9GaYzX5AQFaOFVR3QRGT7-Otd3t6vrzCePoEFu2nr67TAd2LN1ZJW6oxTmv31U7dTtsJ9JLAK1jmHo53ejTDlM2WHqcM3cC3fSycM-1LsdOrxgvL_Ww",
"use": "sig",
"x5c": ["MIIHrTCCBZWgAwIBAgIIX4bERHgHxE4wDQYJKoZIhvcNAQELBQAwdzELMAkGA1UEBhMCQkcxGDAWBgNVBGETD05UUkJHLTIwMTIzMDQyNjESMBAGA1UEChMJQk9SSUNBIEFEMRAwDgYDVQQLEwdCLVRydXN0MSgwJgYDVQQDEx9CLVRydXN0IE9wZXJhdGlvbmFsIEFkdmFuY2VkIENBMB4XDTI0MDQwMTEzMDM0NloXDTI1MDQwMTEzMDM0NlowgaIxEDAOBgNVBAQMB01VTkdPVkExETAPBgNVBCoMCFBSRVNMQVZBMREwDwYDVQQDDAhkYmFuay5iZzEPMA0GA1UECwwGT1YgU1NMMRgwFgYDVQQKDA9EIENPTU1FUkNFIEJBTksxHDAaBgNVBGEME1BTREJHLUJOQi0xMjE4ODQ1NjAxEjAQBgNVBAcMCUdSLiBTT0ZJQTELMAkGA1UEBhMCQkcwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDSfUvQCZekblT8U5F9DZaDpf44pnw0H0GIQ/9S7Yy7Y8ZgmDclbi77iDkHV6Llq
@kozzmen
kozzmen / wc-hide-all-shipping-if-free-shipping-is-available.php
Created May 14, 2024 12:47 — forked from woogists/wc-hide-all-shipping-if-free-shipping-is-available.php
[General Snippets][Hide other shipping methods when “Free Shipping” is available] Hides all other shipping methods but free_shipping if it’s available. Compatible with Shipping zones.
/**
* Hide shipping rates when free shipping is available.
* Updated to support WooCommerce 2.6 Shipping Zones.
*
* @param array $rates Array of rates found for the package.
* @return array
*/
function my_hide_shipping_when_free_is_available( $rates ) {
$free = array();
foreach ( $rates as $rate_id => $rate ) {
Pipeline still running ...
PipelineRun is still running: Tasks Completed: 44 (Failed: 0, Cancelled 0), Incomplete: 2, Skipped: 5
[get-pr-number : parse-pr-url] + echo -n 3776
[get-pr-number : parse-pr-url] + tee /tekton/results/git_pr_number
[get-pr-number : parse-pr-url] 3776
[acquire-lease : create-lease] + calculate_duration_in_seconds 90m
[acquire-lease : create-lease] + '[' m == m ']'
[acquire-lease : create-lease] + TOTAL_DURATION_IN_SECONDS=5400
[acquire-lease : create-lease] + export TOTAL_DURATION_IN_SECONDS

Job Title

Intern

Location

Mumbai

Position Type

Full-time, not remote

About Us

// This work is licensed under a Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) https://creativecommons.org/licenses/by-nc-sa/4.0/
// © LuxAlgo
//@version=5
indicator("Smart Money Concepts [LUX]", "Smart Money Concepts [LuxAlgo]"
, overlay = true
, max_labels_count = 500
, max_lines_count = 500
, max_boxes_count = 500
, max_bars_back = 500)