Skip to content

Instantly share code, notes, and snippets.

View dpritchett's full-sized avatar
🦅
microservice party

Daniel Pritchett ⚡ dpritchett

🦅
microservice party
View GitHub Profile
import boto3
from botocore.exceptions import ClientError
# from boto3 import ValidationException
import uuid
clt = boto3.client("events")
rule_name = f"cronValidationTestRule-{uuid.uuid1()}"
import gremlin_python
from gremlin_python.rest import ApiException
from pprint import pprint
import ipdb
import webbrowser
from time import sleep
from colors import *
API_KEY = ("0beccc88169060e9dbbd17583e10492dcbb48898de73f1a924481a556ab54419",)
WOW_DOT_GIF = "https://media1.tenor.com/images/c2a921072f98952c52042d6e28c72854/tenor.gif?itemid=9987719"
import gremlin_python
from gremlin_python.rest import ApiException
from pprint import pprint
import ipdb
import webbrowser
from time import sleep
from colors import *
API_KEY = ("0beccc88169060e9dbbd17583e10492dcbb48898de73f1a924481a556ab54419",)
WOW_DOT_GIF ='https://media1.tenor.com/images/c2a921072f98952c52042d6e28c72854/tenor.gif?itemid=9987719'
@dpritchett
dpritchett / tabkill.rb
Created November 4, 2018 14:27
kill an active chrome tab using the DevTools API
#!/usr/bin/env ruby
require 'json'
require 'thread'
def eep
`mplayer #{ENV['HOME'] + '/.killsound'}`
end
def tabs
184 meltheous
164 gpspake tbqh
110 syliddar
98 dpritchett is happy
54 vongrippen
46 bkmontgomery
40 sbramlett
36 dan9186
32 my username can be as long as I damn well please GEORGE
32 B R Y C E
@dpritchett
dpritchett / notes.md
Last active February 27, 2018 16:34
ssl blog on gh pages notes
#!/usr/bin/env sh
cd /Users/daniel/Projects/book/dpchat/Book
./rake clean screen &> log/build_log.txt
if ! grep 'Build failed' log/build_log.txt; then
# osascript is osx-only
osascript -e 'display notification "✅ Success! ✅" with title "bookbuild"'
echo BUILD SUCCEEDED
  • interpreter: A program that reads a plain text source code file and attempts to execute the contents
  • shell: a program that enables users to interactively explore their local operating system: its files, its utilities, and its peripherals. Examples: Bash, Powershell
  • string: a representation of plain text data => "hello".class => String
  • integer: a whole number => 100.class => Integer
  • function: a segment of code defined and named for reuse
       def hi(name)
         puts "Hi, #{name}!"
       end
# This file is used by Rack-based servers to start the application.
require ::File.expand_path('../config/environment', __FILE__)
run Rails.application