Skip to content

Instantly share code, notes, and snippets.

View grymoire7's full-sized avatar

Tracy Atteberry grymoire7

View GitHub Profile
@grymoire7
grymoire7 / downlogs.rb
Created February 24, 2023 19:34
Download sematext logs
#!/usr/bin/env ruby
# Title: Download Sematext log files from S3
require 'date'
start_date = '2022-12-14'.freeze
end_date = '2021-12-15'.freeze
target_dir = "#{Dir.home}/Downloads/logs/".freeze
BUCKET_NAME = 'benchprep-sematext-production'.freeze

Stupid developer tricks: Get notified when a long running process ends

Prerequisites:

# stuff these into a shell startup file (like .zshrc)
alias imdone='afplay /System/Library/Sounds/Blow.aiff'
# if you want to play a sound at random then use the following line
# alias imdone='afplay "$(find /System/Library/Sounds -type f -name "*.aiff" | shuf -n 1)"'
alias iwatch='while true; do rm ./imdone; watch -g ls ./imdone; imdone; done'
@grymoire7
grymoire7 / keybase.md
Last active November 18, 2017 19:42
keybase.io proof

Keybase proof

I hereby claim:

  • I am grymoire7 on github.
  • I am grymoire (https://keybase.io/grymoire) on keybase.
  • I have a public key whose fingerprint is 41F9 0161 DEE5 1807 21DE FDC4 EBCB DE68 38F0 8421

To claim this, I am signing this object: