This file contains 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 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 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 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 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 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 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 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 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 |
This file contains 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
(pprof) list HostClient.*do | |
Total: 6.13mins | |
ROUTINE ======================== github.com/valyala/fasthttp.(*HostClient).do in /home/direvius/.gvm/pkgsets/go1.5.2/global/src/github.com/valyala/fasthttp/client.go | |
200ms 1.60mins (flat, cum) 26.08% of Total | |
. . 795:func (c *HostClient) do(req *Request, resp *Response, newConn bool) (bool, error) { | |
. . 796: if req == nil { | |
. . 797: panic("BUG: req cannot be nil") | |
. . 798: } | |
. . 799: | |
20ms 140ms 800: atomic.StoreUint32(&c.lastUseTime, uint32(time.Now().Unix()-startTimeUnix)) |
NewerOlder