Skip to content

Instantly share code, notes, and snippets.

View acharlieh's full-sized avatar
🐻
Rawr

Charlie Huggard acharlieh

🐻
Rawr
View GitHub Profile
@acharlieh
acharlieh / search.spl
Created May 2, 2017 03:41
Try this out, with a few different time zones, time picker set to a few days or so.
| gentimes increment=1s
[ makeresults
| addinfo
| rename info_max_time -> end info_min_time -> start
| fields start end
| convert timeformat="%m/%d/%y:%H:%M:%S" ctime(*) as *
| format "" "" "" "" "" ""]
| rename starttime -> _time
| fields
| bin span=1h _time as hourly

Keybase proof

I hereby claim:

  • I am acharlieh on github.
  • I am acharlieh (https://keybase.io/acharlieh) on keybase.
  • I have a public key ASCTCJPIiM2QV1Bq-J5ffyxWr3k473iamt6WWV4ohHZusAo

To claim this, I am signing this object:

alias jpgoptim='find . -iname '"'"'*.jpg'"'"' -exec convert {} -sampling-factor 4:2:0 -strip -quality 85 -interlace JPEG -colorspace sRGB {}.new \; -exec bash -c "ls -l {} {}.new | awk '"'"'/\.jpg\$/ {old=\$5;oldf=\$9} /\.jpg\.new\$/ {new=\$5;newf=\$9} END { if(old<=new) print \"rm \" newf; else print \"mv \" newf \" \" oldf }'"'"' " \; | bash -x'
@acharlieh
acharlieh / DualPianos.rb
Last active November 1, 2018 03:22
SonicPi Playground
def bars(k)
n = chord(k,:sus4)
([n[0]]*4 + [n[1]]*2 + [n[0]]*2 + [n[2],n[1]] + [n[0]]*2)
end
use_bpm 200
use_synth :piano
use_debug false
set :key, :C2
@acharlieh
acharlieh / tzinfo.xml
Created August 17, 2019 20:09
Timezone Test Splunk Dashboard
<dashboard>
<label>Timezone Test</label>
<row>
<panel>
<title>User Info</title>
<single>
<title>User Time Zone</title>
<search id="info">
<query>
<![CDATA[