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
| #![no_std] | |
| #![no_main] | |
| use defmt::{info, error}; | |
| use embassy_executor::Spawner; | |
| use embassy_stm32::mode::Async; | |
| use embassy_stm32::spi::mode::Slave; | |
| use embassy_stm32::time::mhz; | |
| use embassy_stm32::{Config, spi}; | |
| use embassy_stm32::{bind_interrupts, dma, peripherals}; |
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
| # | |
| # Apple SuperDrive initialization rule | |
| # | |
| # See: https://gist.github.com/yookoala/818c1ff057e3d965980b7fd3bf8f77a6 | |
| ACTION=="add", ATTRS{idProduct}=="1500", ATTRS{idVendor}=="05ac", DRIVERS=="usb", RUN+="/usr/bin/sg_raw %r/sr%n EA 00 00 00 00 00 01" |
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
| autostop: | |
| autostop: [] | |
| enabled: true | |
| package: yandextank.plugins.Autostop | |
| pandora: | |
| enabled: true | |
| pandora_cmd: /path/to/pandora | |
| config_content: | |
| pools: | |
| - id: HTTP pool # Pool name |
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
| from Tank.Plugins.bfg import Sample | |
| import logging | |
| import time | |
| import json | |
| from MyService.Service import Service | |
| import MyService.Service.ttypes as tt | |
| from thrift.transport import TTransport | |
| from thrift.transport import TSocket | |
| from thrift.protocol import TBinaryProtocol |
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
| plot: | |
| area: | |
| stacked: true | |
| metrics: | |
| - m1: {params} | |
| - m2: {params} | |
| axis: left | |
| line: | |
| left: | |
| - m1: {params} |
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
| # -*- coding: UTF-8 -*- | |
| import logging | |
| import time | |
| import urllib | |
| from uiautomator import Device, Adb | |
| logging.basicConfig() | |
| logger = logging.getLogger(__name__) |
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 logging | |
| from paramiko import SSHClient, AutoAddPolicy | |
| logging.basicConfig(level=logging.DEBUG, | |
| format='%(asctime)s %(levelname)s %(message)s') | |
| logging.getLogger("paramiko.transport").setLevel(logging.DEBUG) | |
| logger = logging.getLogger(__name__) |
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
| #!/usr/bin/env ruby | |
| # simple GET ammo generation, pass hostname as a first parameter and uris to STDIN | |
| STDIN.each{|line| | |
| request = <<-EOS | |
| GET #{line.chomp} HTTP/1.0\r | |
| Host: #{ARGV[0]}\r | |
| Accept: */*\r | |
| User-Agent: tank\r | |
| Connection: close\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
| #!/usr/bin/python3 | |
| # -*- coding: utf-8 -*- | |
| from xmlrpc.client import Fault | |
| from xmlrpc.client import ServerProxy | |
| from xmlrpc.client import Transport | |
| import urllib.request as urllib2 | |
| import xml.etree.ElementTree as ET | |
| class MyTransport(Transport): |
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
| direvius@direvius-ub:~/learn/leveldb$ ls | |
| build node_modules program.coffee program.js | |
| direvius@direvius-ub:~/learn/leveldb$ rm -rf ./node_modules/ | |
| direvius@direvius-ub:~/learn/leveldb$ npm install leveldown | |
| npm http GET https://registry.npmjs.org/leveldown | |
| npm http 304 https://registry.npmjs.org/leveldown | |
| npm http GET https://registry.npmjs.org/bindings | |
| npm http GET https://registry.npmjs.org/nan | |
| npm http 304 https://registry.npmjs.org/bindings | |
| npm http 304 https://registry.npmjs.org/nan |
NewerOlder