An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
| user www; | |
| worker_processes 1; | |
| daemon on; | |
| error_log /var/log/nginx/error.log warn; | |
| timer_resolution 500ms; | |
| events { | |
| worker_connections 512; | |
| } |
An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
| filter { | |
| # strip the syslog PRI part and create facility and severity fields. | |
| # the original syslog message is saved in field %{syslog_raw_message}. | |
| # the extracted PRI is available in the %{syslog_pri} field. | |
| # | |
| # You get %{syslog_facility_code} and %{syslog_severity_code} fields. | |
| # You also get %{syslog_facility} and %{syslog_severity} fields if the | |
| # use_labels option is set True (the default) on syslog_pri filter. | |
| grok { | |
| type => "syslog-relay" |
| # Access Logs | |
| LogFormat "{ \ | |
| \"@vips\":[\"%v\"], \ | |
| \"@source\":\"%v%U%q\", \ | |
| \"@source_host\": \"%v\", \ | |
| \"@source_path\": \"%f\", \ | |
| \"@tags\":[\"Apache\",\"Access\"], \ | |
| \"@message\": \"%h %l %u %t \\\"%r\\\" %>s %b\", \ | |
| \"@fields\": { \ | |
| \"timestamp\": \"%{%Y-%m-%dT%H:%M:%S%z}t\", \ |
grab the moto-fastboot version of fastboot here
grab the appropriate stock firmware here (tip: you want the one that matches your android build number in settings -> about phone)
unzip this file somewhere and make it easy to run the moto-fastboot-osx64 command from step 1
get your phone into fastboot mode, google it if needed but just power the phone off, hold the down volume key and power button for 3 seconds then let go, should get you there
verify you are ready for flashing:
./moto-fastboot-osx64 devices
-- should list a device --
most of the time you just need to flash system and recovery images, so from your unzipped stock firmware files do this:
| #!/bin/bash | |
| # | |
| # Copyright (c) 2016 Katsuya SAITO | |
| # This software is released under the MIT License. | |
| # http://opensource.org/licenses/mit-license.php | |
| # | |
| # @(#) softethervpn_letsencrypt_cert_autoupdate.sh ver.0.1.0 2016.02.20 | |
| # | |
| # Usage: softethervpn_letsencrypt_cert_autoupdate.sh CommonName WEBROOT PASSWORD MAIL | |
| # |
| # The full public facing url | |
| #root_url = %(protocol)s://%(domain)s:%(http_port)s/ | |
| root_url = http://localhost:80/grafana/ |
| http { | |
| client_max_body_size 20M; | |
| upstream influxdb { | |
| server server1:8086; | |
| server server2:8086; | |
| } | |
| upstream relay { | |
| server server1:9096; | |
| server server2:9096; |
| logging { | |
| channel default_log { | |
| file "/var/log/bind/default" versions 3 size 20m; | |
| print-time yes; | |
| print-category yes; | |
| print-severity yes; | |
| severity info; | |
| }; | |
| channel auth_servers_log { | |
| file "/var/log/bind/auth_servers" versions 100 size 20m; |
| <# | |
| .SYNOPSIS | |
| PRTG Veeam Backup for Microsoft 365 Advanced Sensor. | |
| .DESCRIPTION | |
| Advanced Sensor will Report Job status, job nested status, repository statistics and proxy status. | |
| - If not already done, enable the the API in VBO https://helpcenter.veeam.com/docs/vbo365/rest/enable_restful_api.html?ver=20 | |
| - On your probe, add script to 'Custom Sensors\EXEXML' folder | |
| - In PRTG, on your probe add EXE/Script Advanced sensor |