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
Sample log line: | |
May 10 22:50:02 XXX CEF: 0|Fortinet|Fortigate|v6.4.5|000XX|traffic:forward server-rst|X|deviceExternalId=FGVMXXXXXXXXX FortinetFortiGateeventtime=162068340XXXXXXXX FortinetFortiGatetz=+0100 FortinetFortiGatelogid=00000000XX cat=traffic:forward FortinetFortiGatesubtype=forward FortinetFortiGatelevel=notice FortinetFortiGatevd=root src=X.X.X.X spt=XXXXX deviceInboundInterface=portX FortinetFortiGatesrcintfrole=undefined dst=X.X.X.X dpt=443 deviceOutboundInterface=portX FortinetFortiGatedstintfrole=undefined FortinetFortiGatesrccountry=Reserved FortinetFortiGatedstcountry=Netherlands externalId=XXXXXXX proto=X FortinetFortiGateaction=server-rst FortinetFortiGatepolicyid=X FortinetFortiGatepolicytype=policy FortinetFortiGatepoluuid=XXXXXXXXXXXXXXXXXXX FortinetFortiGatepolicyname=To-Internet app=HTTPS FortinetFortiGatetrandisp=snat sourceTranslatedAddress=X.X.X.X sourceTranslatedPort=XXXXX FortinetFortiGateduration=14 out=558 in=3780 FortinetFortiGatesentpkt=7 FortinetFortiGatercvdpkt=6 Fortinet |
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 datetime import datetime | |
import pyaudio | |
import numpy | |
import wave | |
CHUNK = 4000 | |
FORMAT = pyaudio.paInt16 | |
CHANNELS = 1 | |
RATE = 8000 |
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
____ ____ | |
/ __ \____ _/ / /_ __ | |
/ /_/ / __ `/ / / / / / | |
/ _, _/ /_/ / / / /_/ / | |
/_/ |_|\__,_/_/_/\__, / | |
/____/ | |
[INFO] Downloading data for track pmc (5.5 GB total size) [100.0%] | |
[INFO] Decompressing track data from [/home/gose/.rally/benchmarks/data/pmc/documents.json.bz2] to [/home/gose/.rally/benchmarks/data/pmc/documents.json] (resulting size: 21.66 GB) ... [OK] | |
[INFO] Preparing file offset table for [/home/gose/.rally/benchmarks/data/pmc/documents.json] ... [OK] |
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
require 'elastic-workplace-search' | |
require 'json' | |
Elastic::WorkplaceSearch.access_token = 'my-access-token' | |
client = Elastic::WorkplaceSearch::Client.new | |
Elastic::WorkplaceSearch.endpoint = 'https://my-endpoint.ent-search.us-central1.gcp.cloud.es.io/api/ws/v1' | |
content_source_key = 'my-source-key' | |
documents = [] |
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
require 'elastic-app-search' | |
require 'json' | |
client = Elastic::AppSearch::Client.new( | |
api_key: 'private-my-key', | |
api_endpoint: 'https://my-endpoint/api/as/v1/') | |
engine_name = 'wikipedia' | |
documents = [] | |
id = nil |
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
instance_type disks type raid host read-iops write-iops read-bw write-bw r_clat_avg w_clat_avg r_clat_std w_clat_std | |
------------- ----- ---- ---- ---- --------- ---------- ------- --------- ---------- ---------- ---------- ---------- | |
d2.4xlarge 12 hdd 0 host-1 1 K 1 K 5 MiB/s 5 MiB/s 22287 µs 6 µs 35213914 2622 | |
d2.4xlarge 12 hdd 0 host-2 1 K 1 K 6 MiB/s 6 MiB/s 20316 µs 6 µs 33000972 2552 | |
d2.4xlarge 12 hddro 0 host-1 2 K 0 K 8 MiB/s 0 MiB/s 15186 µs 0 µs 15261172 0 | |
d2.4xlarge 12 hddro 0 host-2 2 K 0 K 8 MiB/s 0 MiB/s 14650 µs 0 µs 12725320 0 | |
i3.2xlarge 1 nvmessd none host-1 98 K 98 K 385 MiB/s 385 MiB/s 307 µs 10 µs 3453502 29018 | |
i3.2xlarge 1 nvme |
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
PUT _cluster/settings | |
{ | |
"transient": { | |
"indices.lifecycle.poll_interval": "5s" | |
} | |
} | |
DELETE test* | |
GET _cat/indices/test*?v | |
GET _cat/shards/test*?v |
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 | |
require 'twilio-ruby' | |
client = Twilio::REST::Client.new("TWILIO_SID_HERE", "TWILIO_AUTH_HERE") | |
client.account.messages.create( | |
from: "YOUR_TWILIO_PHONE_HERE", | |
to: "PHONE_TO_SEND_SMS_TO_HERE", | |
body: "Hello, world!" |
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 | |
require 'twilio-ruby' | |
twilio_sid = "XXX" | |
twilio_auth = "YYY" | |
client = Twilio::REST::Client.new(twilio_sid, twilio_auth) | |
cpu = `uptime`.split(/load average: /)[1].split(/, /)[0] | |
mem = `free -m | grep Mem`.split |
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
### Keybase proof | |
I hereby claim: | |
* I am gose on github. | |
* I am gose (https://keybase.io/gose) on keybase. | |
* I have a public key whose fingerprint is 1E89 1C74 0E47 9775 4862 7AFF 0928 6AAE 0959 55E6 | |
To claim this, I am signing this object: |
NewerOlder