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
| // If both allow_unsupported_sfp=1 option and https://forums.servethehome.com/index.php?threads/patching-intel-x520-eeprom-to-unlock-all-sfp-transceivers.24634/ are not working, | |
| // your SFP+ transceivers may be too old to support Transceiver Compliance Codes in EEPROM. | |
| // Inspired from https://mails.dpdk.org/archives/dev/2019-May/131512.html. | |
| // Looking for the following content in src/ixgbe_phy.c: | |
| status = hw->phy.ops.read_i2c_eeprom(hw, | |
| IXGBE_SFF_10GBE_COMP_CODES, | |
| &comp_codes_10g); | |
| if (status != IXGBE_SUCCESS) | |
| goto err_read_i2c_eeprom; |
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 main | |
| import ( | |
| "bytes" | |
| "encoding/json" | |
| "fmt" | |
| "gopkg.in/jcmturner/gokrb5.v7/client" | |
| "gopkg.in/jcmturner/gokrb5.v7/config" | |
| "gopkg.in/jcmturner/gokrb5.v7/spnego" | |
| "io/ioutil" |
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
| import time | |
| from selenium import webdriver | |
| from selenium.webdriver.common.by import By | |
| from selenium.webdriver.support.ui import WebDriverWait | |
| from selenium.webdriver.support import expected_conditions as EC | |
| from selenium.common import exceptions as EX | |
| if __name__ == '__main__': | |
| options = webdriver.ChromeOptions() | |
| options.add_argument("user-data-dir=./my-profile") |
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] | |
| name = "ttr-communicator" | |
| version = "0.1.0" | |
| authors = ["Yuxiang Zhu <yuxzhu@redhat.com>"] | |
| edition = "2018" | |
| # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
| [lib] | |
| name = "ttrcomm" |
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
| node('master') { | |
| // Wait for message and store message content in variable | |
| def msgContent = waitForCIMessage \ | |
| providerName: 'Red Hat UMB (test)', \ | |
| overrides: [topic: 'VirtualTopic.eng.repotracker.container.tag.updated'], \ | |
| selector: "repo='quay.io/factory2/waiverdb'" | |
| echo "msgContent = " + msgContent | |
| } |
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
| kind: "BuildConfig" | |
| apiVersion: "v1" | |
| metadata: | |
| name: "demo-pipeline" | |
| spec: | |
| strategy: | |
| jenkinsPipelineStrategy: | |
| jenkinsfile: |- | |
| pipeline { | |
| agent { |
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 | |
| for port in {1..9999}; do | |
| echo -n "TCP $port: " | |
| result=$(nc "$1" "$port" -w 1 2>&1 < /dev/null) | |
| if [ "$?" -eq 0 ]; then | |
| echo "Open" | |
| continue | |
| fi | |
| if [[ "$result" == *refused* ]]; then |
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 main | |
| import ( | |
| "fmt" | |
| "sort" | |
| ) | |
| type Rating struct { | |
| score int | |
| count int |
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
| apiVersion: apps/v1beta2 | |
| #apiVersion: extensions/v1beta1 | |
| kind: DaemonSet | |
| metadata: | |
| name: nginx | |
| spec: | |
| selector: | |
| matchLabels: | |
| name: nginx | |
| template: |
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
| #ifndef _LINUX_LIST_H | |
| #define _LINUX_LIST_H | |
| #include <stdio.h> | |
| #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) | |
| /** | |
| * container_of - cast a member of a structure out to the containing structure | |
| * @ptr: the pointer to the member. |