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
input { | |
file { | |
type => "php-error" | |
path => "/var/www/error_log" | |
sincedb_path => "/opt/logstash/sincedb-access" | |
} | |
} |
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/local/bin/ruby | |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# encoding: UTF-8 | |
# | |
# Get all members: | |
# curl "localhost:3737/api/members" | |
# | |
# Get members alive: | |
# curl "localhost:3737/api/members?status=alive" |
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
# diskutil list | |
/dev/disk0 (internal, physical): | |
#: TYPE NAME SIZE IDENTIFIER | |
0: GUID_partition_scheme *121.3 GB disk0 | |
1: EFI EFI 209.7 MB disk0s1 | |
2: Apple_CoreStorage Macintosh HD 121.0 GB disk0s2 | |
3: Apple_Boot Boot OS X 134.2 MB disk0s3 | |
/dev/disk1 (internal, physical): | |
#: TYPE NAME SIZE IDENTIFIER |
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
<?php | |
$data = array( | |
"content" => "Pickle Rick motherfuckers!", | |
); | |
$ch = curl_init("https://discordapp.com/api/webhooks/<WEBHOOK_ID>/<TOKEN>"); | |
curl_setopt($ch, CURLOPT_POST, 1); | |
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-type: application/json')); | |
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data)); | |
curl_setopt($ch, CURLOPT_HEADER, 0); |
OlderNewer