Skip to content

Instantly share code, notes, and snippets.


Cecy Correa cecyc

View GitHub Profile

A regex for checking for specific US States



Matches: Eugene, OR eugene, or Somewhere, oregon

.container {
    -ms-overflow-style: none;  // IE 10+
    overflow: -moz-scrollbars-none;  // Firefox
.container::-webkit-scrollbar { 
    display: none;  // Safari and Chrome
cecyc /
Created Aug 29, 2018
A quick reference doc for Docker and Kubernetes for those starting out

Docker and Kubernetes cheatsheet



Basic commands:

  • docker ps list all currently running containers
  • docker-compose build build a series of containers based on a docker-compose file
cecyc /
Last active Aug 20, 2019
Sample script for batch processing data and uploading output to S3. This snippet processes batch data from the WHOIS Bulk API based on a CSV list of IPs to search in WHOIS.
import argparse
import boto3
import json
import logging
import os
import pandas
from pandas import DataFrame, read_csv
import requests
import time
import random
cecyc /
Last active Aug 20, 2019
Open a CSV in Python
parser = argparse.ArgumentParser()
parser.add_argument("-c", "--csv", required=True, help="csv to parse ips from")
flags = vars(parser.parse_args())
csv_file = flags["csv"]
results = []
with open(csv_file, newline='') as f:
csvreader = csv.reader(f)
cecyc /
Last active Jul 17, 2018
Dockerfile and docker-compose for a simple Flask app


FROM python:3.4
RUN apt-get update -y
RUN apt-get install -y python-pip build-essential
COPY ./path-to-app /app
RUN pip install --no-cache-dir -r requirements.txt
View ascii_bunny
| ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄|
| boop |
|          |
(\_❀) ||
(•ㅅ•) ||
/   づ
cecyc / getUrl.js
Last active Jul 17, 2018
Simple script to request a video from YouTube API
View getUrl.js
// Request to YouTube
const API_KEY=""
const videoUrl = ""
let reqUrl = `${query}&maxResults=25`
//Get a random int to pick a random video from the results
const getRandomInt = () => {
let num = Math.random
//maxResults are 25 index 0, get a random number between 0 and 24
return Math.floor(num * 24)

Keybase proof

I hereby claim:

  • I am cecyc on github.
  • I am cecyc ( on keybase.
  • I have a public key whose fingerprint is 5DF6 FF0C BB24 64C5 2BBB 9FA5 FDD3 8E80 7EFF 118A

To claim this, I am signing this object:

cecyc / appending_in_go.go
Created Oct 12, 2017
How to append objects into a slice in Go
View appending_in_go.go
package main
import (
type Doggo struct {
Name string
Age int