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
const { Builder, Key, By, until } = require('selenium-webdriver'); | |
const chrome = require('selenium-webdriver/chrome'); | |
console.log('Starting Chrome WebDriver'); | |
let options = new chrome.Options(); | |
// Modular function to create a WebDriver instance | |
async function createDriver() { | |
return new Builder() |
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 workers | |
import ( | |
"context" | |
"sync" | |
"time" | |
) | |
type WorkerFunc[T any] func(ctx context.Context, data T) |
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 workers | |
import ( | |
"context" | |
"fmt" | |
"sync" | |
"time" | |
) | |
// WorkerElement represents information about a worker. |
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 workers | |
import ( | |
"context" | |
"fmt" | |
"sync" | |
"time" | |
) | |
// WorkerElement represents information about a worker. |
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" | |
"time" | |
"github.com/emrekasg/thread-locker/cpu" | |
) |
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 cpu | |
import ( | |
"runtime" | |
"syscall" | |
) | |
/* | |
#define _GNU_SOURCE | |
#include <sched.h> |
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
admin: | |
address: | |
socket_address: | |
protocol: TCP | |
address: 0.0.0.0 | |
port_value: 9901 | |
static_resources: | |
listeners: | |
- name: listener_0 | |
address: |
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
{ | |
"family": "kloiablog", | |
"containerDefinitions": [ | |
{ | |
"name": "example_container", | |
"image": "<YOUR_APPLICATION_IMAGE>", | |
"cpu": 1024, | |
"memory": 2048, | |
"portMappings": [], | |
"essential": true, |
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
{ | |
"family": "kloiablog", | |
"containerDefinitions": [ | |
{ | |
"name": "example_container", | |
"image": "<YOUR_APPLICATION_IMAGE>", | |
"cpu": 1024, | |
"memory": 2048, | |
"portMappings": [], | |
"essential": true, |
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
name: CI | |
on: | |
push: | |
branches: [ master ] | |
workflow_dispatch: | |
jobs: | |
deploy: | |
name: Build image |
NewerOlder