Skip to content

Instantly share code, notes, and snippets.

View jgoldschrafe's full-sized avatar
🕶️

Jeff Goldschrafe jgoldschrafe

🕶️
View GitHub Profile
castamere :: ~ » whois charliehebdo.fr 1 ↵
%% _ _
%% This is the AFNIC Whois server. _ | |___ ____ _(_)___
%% | || / -_) (_-< || | (_-<
%% complete date format : DD/MM/YYYY \__/\___| /__/\_,_|_/__/
%% short date format : DD/MM ___ _ _ ___ ___ _ _ ___
%% version : FRNIC-2.5 | _| | | . | . \| | | | __|
%% | |_| | | /| |_| | _|
%% Rights restricted by copyright. |___|_|_|_|_|_\_\|___|_|___|
%% See http://www.afnic.fr/afnic/web/mentions-legales-whois_en
@jgoldschrafe
jgoldschrafe / gist:47cb72a32e5193051624
Created September 21, 2014 07:17
Fog: Authenticate to Google Compute Engine (GCE) using an instance's service account
require 'fog'
require 'google/api_client'
APP_NAME = "my-app"
APP_VERSION = "1.0.0"
GOOGLE_PROJECT = "my-project-808"
client = Google::APIClient.new({
application_name: APP_NAME,
application_version: APP_VERSION,
[Mon Sep 23 09:57:26 2013] [info] Connection to child 10 established (server [redacted]:443, client [redacted])
[Mon Sep 23 09:57:26 2013] [info] SSL input filter read failed.
[Mon Sep 23 09:57:26 2013] [error] SSL Library Error: -12268 Cannot connect: SSL is disabled
[Mon Sep 23 09:57:26 2013] [info] Connection to child 10 closed (server [redacted]:443, client [redacted])
DATATYPE::HOSTPERFDATA TIMET::1365442741 HOSTNAME::hs6bms HOSTPERFDATA::rta=13.191ms;300.000;500.000;0; pl=0%;20;60;; HOSTCHECKCOMMAND::check_host_alive HOSTSTATE::UP HOSTSTATETYPE::HARD GRAPHITEPREFIX::nagios GRAPHITEPOSTFIX::host-ping
DATATYPE::HOSTPERFDATA TIMET::1365442741 HOSTNAME::risb116-2950 HOSTPERFDATA::rta=2.096ms;300.000;500.000;0; pl=0%;20;60;; HOSTCHECKCOMMAND::check_host_alive HOSTSTATE::UP HOSTSTATETYPE::HARD GRAPHITEPREFIX::nagios GRAPHITEPOSTFIX::host-ping
DATATYPE::HOSTPERFDATA TIMET::1365442741 HOSTNAME::roof-2960g HOSTPERFDATA::rta=0.679ms;300.000;500.000;0; pl=0%;20;60;; HOSTCHECKCOMMAND::check_host_alive HOSTSTATE::UP HOSTSTATETYPE::HARD GRAPHITEPREFIX::nagios GRAPHITEPOSTFIX::host-ping
DATATYPE::HOSTPERFDATA TIMET::1365442741 HOSTNAME::rose-2950-1 HOSTPERFDATA::rta=1.534ms;300.000;500.000;0; pl=0%;20;60;; HOSTCHECKCOMMAND::check_host_alive HOSTSTATE::UP HOSTSTATETYPE::HARD GRAPHITEPREFIX::nagios GRAPHITEPOSTFIX::host-ping
DATATYPE::HOSTPERFDATA TIMET::1365442741 HOSTNAME::sambrookmodb
# Firewall configuration written by system-config-firewall
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT