Skip to content

Instantly share code, notes, and snippets.

View chrisgeo's full-sized avatar

Chris George chrisgeo

  • San Francisco, CA
View GitHub Profile
@chrisgeo
chrisgeo / ifame.html
Created September 13, 2017 13:15
iframe test
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
THIS IS SOME HTML
</body>
</html>
node_modules*

Keybase proof

I hereby claim:

  • I am chrisgeo on github.
  • I am chrisgeorge (https://keybase.io/chrisgeorge) on keybase.
  • I have a public key whose fingerprint is 9DCD 0E7D 385C 8247 E2F5 E7FC 2C43 EBC0 2D8C 8781

To claim this, I am signing this object:

@chrisgeo
chrisgeo / ch.json
Last active February 25, 2016 18:11
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
"""
Helper utility for passing control to different views based on the HTTP method.
Construct instances of this class with a dictionary mapping method names (or
sequence of method names) to the view function that will handle them. The
special and optional '__default__' key is used to handle all otherwise
unmentioned methods. Methods not mentioned in the dictionary are implicitly
forbidden if there is no '__default__' key.
For example:
module Foo
class Bar
def foobar=(foo)
@foo = foo
some_func
end
end
end

progressindicator

Progress indicator using Angular JS

PROBLEM

Design a widget that looks like the following:

progress indicator

# Conf init file
import os
import importlib
ENVIRONMENT_VARIABLE ='APP_SETTINGS'
SETTINGS_MODULE = os.environ.get(ENVIRONMENT_VARIABLE)
if not SETTINGS_MODULE:
@chrisgeo
chrisgeo / builder-json.log
Created April 25, 2015 17:28
deis component logs for router timeout and crash
This file has been truncated, but you can view the full file.
{"log":"2015-04-24T03:45:57Z 6cc51e6a0309 confd[75]: WARNING Skipping confd config file.\n","stream":"stdout","time":"2015-04-24T03:45:57.309643451Z"}
{"log":"2015-04-24T03:45:57Z 6cc51e6a0309 confd[118]: WARNING Skipping confd config file.\n","stream":"stdout","time":"2015-04-24T03:45:57.468115083Z"}
{"log":"time=\"2015-04-24T03:45:57Z\" level=\"info\" msg=\"+job serveapi(unix:///var/run/docker.sock)\" \n","stream":"stderr","time":"2015-04-24T03:45:57.500779965Z"}
{"log":"time=\"2015-04-24T03:45:57Z\" level=\"info\" msg=\"+job init_networkdriver()\" \n","stream":"stderr","time":"2015-04-24T03:45:57.505975434Z"}
{"log":"time=\"2015-04-24T03:45:57Z\" level=\"info\" msg=\"Listening for HTTP on unix (/var/run/docker.sock)\" \n","stream":"stderr","time":"2015-04-24T03:45:57.513161055Z"}
{"log":"time=\"2015-04-24T03:45:57Z\" level=\"info\" msg=\"-job init_networkdriver() = OK (0)\" \n","stream":"stderr","time":"2015-04-24T03:45:57.588321073Z"}
{"log":"time=\"2015-04-24T03:45:57Z\" level=\"info\" msg=\"Loading cont
core@leadgenius-apps-coreos-0 ~ $ nse deis-store-admin
root@19da7e6399c2:/app# ceph -s
cluster 860f0b23-2d8b-44a5-b0aa-38a0b014ed79
health HEALTH_WARN 1378 pgs degraded; 158 pgs stale; 1378 pgs stuck degraded; 158 pgs stuck stale; 1378 pgs stuck unclean; 1378 pgs stuck undersized; 1378 pgs undersized; 31 requests are blocked > 32 sec; recovery 1640/5322 objects degraded (30.815%); mds cluster is degraded; clock skew detected on mon.leadgenius-apps-coreos-3, mon.leadgenius-apps-coreos-0, mon.leadgenius-apps-coreos-2, mon.leadgenius-apps-coreos-4
monmap e5: 5 mons at {leadgenius-apps-coreos-0=100.78.54.19:6789/0,leadgenius-apps-coreos-1=100.78.2.117:6789/0,leadgenius-apps-coreos-2=100.78.54.52:6789/0,leadgenius-apps-coreos-3=100.78.16.34:6789/0,leadgenius-apps-coreos-4=100.78.54.54:6789/0}, election epoch 1008, quorum 0,1,2,3,4 leadgenius-apps-coreos-1,leadgenius-apps-coreos-3,leadgenius-apps-coreos-0,leadgenius-apps-coreos-2,leadgenius-apps-coreos-4
mdsmap e53: 1/1/1 up {0=leadgenius-apps-co