Skip to content

Instantly share code, notes, and snippets.

View darioguarascio's full-sized avatar

Dario Guarascio darioguarascio

View GitHub Profile
@darioguarascio
darioguarascio / slack.sh
Last active April 9, 2020 10:41 — forked from andkirby/slack.sh
Shell/Bash script for sending slack messages.
#!/usr/bin/env bash
####################################################################################
# Slack Bash console script for sending messages.
####################################################################################
# Installation
# $ curl -s https://gist.githubusercontent.com/disfasia/4e859d1ed04a120ddce9532066105a37/raw --output /usr/bin/slack
# $ chmod +x /usr/bin/slack
####################################################################################
# USAGE
# Send message to slack channel/user
@darioguarascio
darioguarascio / CloudflareFailover.php
Last active October 22, 2015 18:11
Laravel command to add/remove/list a domain IPs part of the CloudFlare round-robin ip Failover system
<?php
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
use \Requests;
/*
|--------------------------------------------------------------------------
| Cloudflare domain IPv4 A-type manager