On your locust master server:
Use logra.py
on your locust test file. See locustfile.py
.
name: Security audit | |
on: | |
push: | |
paths: | |
- '**/Cargo.toml' | |
- '**/Cargo.lock' | |
jobs: | |
security_audit: | |
runs-on: ubuntu-latest | |
steps: |
#include <LiquidCrystal.h> | |
//LCD pin to Arduino | |
const int pin_RS = 8; | |
const int pin_EN = 9; | |
const int pin_d4 = 4; | |
const int pin_d5 = 5; | |
const int pin_d6 = 6; | |
const int pin_d7 = 7; | |
const int pin_BL = 10; |
/* | |
Arduino 2x16 LCD - Detect Buttons | |
modified on 18 Feb 2019 | |
by Saeed Hosseini @ Electropeak | |
https://electropeak.com/learn/ | |
*/ | |
#include <LiquidCrystal.h> | |
//LCD pin to Arduino | |
const int pin_RS = 8; | |
const int pin_EN = 9; |
import xmltodict | |
import json | |
import sys | |
import getopt | |
import time | |
from datetime import datetime | |
import collections | |
from elasticsearch import Elasticsearch | |
import logging | |
from kafka import KafkaProducer |
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# launchctl unload /System/Library/LaunchDaemons/com.apple.syslogd.plist | |
# launchctl load /System/Library/LaunchDaemons/com.apple.syslogd.plist | |
from twisted.internet import reactor, stdio, defer | |
from twisted.internet.protocol import Protocol, Factory | |
from twisted.protocols.basic import LineReceiver | |
import time, re, math, json |
# dns server using dnslib and gevent | |
# based on https://bitbucket.org/paulc/dnslib/src/80d85555aae4/src/server/gevent_server.py | |
# set the key as | |
# set IP:name ip_addr | |
# set TXT:name txtfield | |
# fallback on gevent's dns resolver | |
# gleicon 2011 | |
import gevent |
// swiftc detect.swift -o detect | |
import Cocoa | |
func detectDarkTheme() { | |
let isDark = UserDefaults.standard.string(forKey: "AppleInterfaceStyle") == "Dark" | |
if isDark { | |
print("Mode is Dark") | |
} else { |
// ZeroMQ PUB/SUB + Multicast (PGM) enabled event emitter for node.js | |
// gleicon - 2011 | |
var util = require("util"); | |
var events = require("events"); | |
var zeromq = require("../node_modules/zeromq"); // check the right path | |
var sys = require("sys"); | |
function DistEventEmitter(name, remote_node) { | |
events.EventEmitter.call(this); |
# convert a file from name;address to name address,latitude,longitude | |
# pip install geopy | |
from geopy import geocoders | |
geolocator = geocoders.GoogleV3() | |
import sys | |
def geoconvert(file): | |
f = open(file) |