Skip to content

Instantly share code, notes, and snippets.

@echohtp
echohtp / gist:058b0385d5b6240490ff
Created March 1, 2015 22:06
node.js + hapi for modulus.io deployment.
var Hapi = require(‘hapi’);
var sOptions = { host: '0.0.0.0', port: parseInt(process.env.PORT, 10) || 3000};
var server = new Hapi.Server();
server.connection(sOptions);
server.start()

Keybase proof

I hereby claim:

  • I am echohtp on github.
  • I am jasonschorr (https://keybase.io/jasonschorr) on keybase.
  • I have a public key whose fingerprint is F3CF F75B 79C9 5D8F 136D 9FD0 8B3B DBC5 7800 0A39

To claim this, I am signing this object:

Command name argument expected.
Available command groups for gcloud:
AI and Machine Learning
ai-platform Manage AI Platform jobs and models.
ml Use Google Cloud machine learning capabilities.
ml-engine Manage AI Platform jobs and models.
API Platform and Ecosystems
@echohtp
echohtp / App.js
Created June 3, 2020 20:27
Easy React.JS Boilerplate with Auth from Google Cloud Platform
import React, { Component } from 'react';
import withFirebaseAuth from 'react-with-firebase-auth'
import * as firebase from 'firebase/app';
import 'firebase/auth';
import 'firebase/database';
import 'firebase/firestore';
import ProtectedApp from './components/ProtectedApp'
const firebaseConfig = {
apiKey: process.env.REACT_APP_API_KEY,
@echohtp
echohtp / twitter_update_username_w_followers.py
Created July 9, 2020 16:48
Easy update twitter username w/ followers count
import os
import tweepy
from flask import Flask
# Authenticate to Twitter
auth = tweepy.OAuthHandler("API KEY", "API SECRET")
auth.set_access_token("TOKEN", "SECRET")
# Create API object
@echohtp
echohtp / main.tf
Created September 1, 2020 02:22
0xBanana DFIR Lab Terraform
### VARIABLE DECLARATIONS
variable "project_name" {
type = string
}
variable "region_name" {
type = string
}
variable "zone_name" {
type = string
}
@echohtp
echohtp / google.tokengen.tf
Created September 2, 2020 01:01
Make a google bucket using terraform and an account that can generate service tokens.
provider "google" {
version = "~> 2.0, >= 2.5.1"
alias = "tokengen"
}
data "google_client_config" "default" {
provider = "google.tokengen"
}
data "google_service_account_access_token" "sa" {
provider = "google.tokengen"
target_service_account = "[email protected]"
@echohtp
echohtp / main.tf
Created October 9, 2020 22:23
Global honeypot terraform @0xbanana
variable "project_name" {
type = string
}
variable "sensor_machine_type" {
type = string
}
variable "sensor_startup_script" {
type = string
@echohtp
echohtp / index.html
Created October 22, 2020 18:53
Gmail loading animation October 2020
<html>
<head>
<title>Gmail loading animation Fall 2020</title>
<meta name="description" content="This is the HTML and CSS for Google's Gmail loading icon, Fall 2020.">
<style>
body {
margin: 0;
width: 100%;
height: 100%