Skip to content

Instantly share code, notes, and snippets.

View calston's full-sized avatar

Colin Alston calston

View GitHub Profile
kind: List
apiVersion: v1
items:
- apiVersion: v1
kind: ServiceAccount
metadata:
name: kibana
annotations:
serviceaccounts.openshift.io/oauth-redirectreference.primary: '{"kind":"OAuthRedirectReference","apiVersion":"v1","reference":{"kind":"Route","name":"kibana"}}'
#!/usr/bin/python
import sys, re
from distutils import version
bucket = {}
package = re.compile(r'([\w_-]+)-([\d\w_\.-]+)\.(noarch|x86_64)')
# facter --puppet routes.eth0
{
0_0_0_0M0_0_0_0 => "192.16.0.1",
}
network::interfaces_hash:
eth0:
gateway: "%{facts.routes.eth0.0_0_0_0M0_0_0_0}"
...
import cv2
import numpy as np
from matplotlib import pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from matplotlib import cm
from matplotlib.ticker import LinearLocator, FormatStrFormatter
def processStream(fname):
cap = cv2.VideoCapture(fname)
Traceback (most recent call last):
File "/home/colin/python/bin/pip", line 7, in <module>
from pip import main
File "/home/colin/python/local/lib/python2.7/site-packages/pip/__init__.py", line 11, in <module>
from pip.vcs import git, mercurial, subversion, bazaar # noqa
File "/home/colin/python/local/lib/python2.7/site-packages/pip/vcs/mercurial.py", line 9, in <module>
from pip.download import path_to_url
File "/home/colin/python/local/lib/python2.7/site-packages/pip/download.py", line 22, in <module>
from pip._vendor import requests, six
File "/home/colin/python/local/lib/python2.7/site-packages/pip/_vendor/requests/__init__.py", line 58, in <module>
; -*- mode: clojure; -*-
; vim: filetype=clojure
(require 'capacitor.core)
(require 'capacitor.async)
(require 'clojure.core.async)
(require 'clj-http.client)
(require 'cheshire.core)
(defn ghost [token]
(let [uri (str "http://localhost:8000/api/event/" token)]
(where (not (expired? event))
(by [:host :service]
(fixed-time-window 10
(smap
(fn [events]
(let [p (/ (count (filter #(= "critical" (:state %)) events)) (count events))]
{ :service (format "%s window" (:service (first events)))
:metric p
:host (:host (first events))
:state (condp < p
function Test(bar){
this.bar = bar;
this.foo = function(){
function foo2(){
console.log(this.bar);
}
foo2.bind(this);
foo2();
}
ꊜ�'�8���it9�s�ۣ�K�%:��^|����f��&��6^F�xu�m���P%�vz?�Ļ{��f�\LLvqDg�<�/a<��e�n�i�#�Xh���~�^��`��{h�ۮ����狑��W��pCKZ�5ǀ�4��e;�?�Y�X풻d������kX�G��xw��5�~�x9<|�ۯP7���u��s��*W���֫Hqh��,f�4�K�{3�����Xdjh��S�e2݌O����:���%X(�N��ty}:����ŗ�刺��g�`�Q�PrA7z����`��3M���+B�#:z���<��ɸ/i ͋
^J��&����ڒ�6�"f�Nd�(g�D�f����g{�JR��-��gI)����@c��Vh�y��{"�Dd�!%ر�|��j�xPv �|�!���I2����0��t�&�����a9�n�y�>M���
0^n��e�,l�xJ�8��{,�I�n��baB
�7_l��`p�p04�؋�C�[(�.��#�H�y��k�i��J2�s�X%�bE��ؠ؀�<�#� ؋l��z3oR�!]Xh W+�ț�Y�U�D�����0�ā�̚�/�-N��0��sU�a���a#����M�yG3����N���plw�ɨ=d�r%�ރAfO�u����r3�lP��L�e������1�Œ�jR>y�O h��Tw�Iw���O����6I�>풿w<cc��3��q5��6�>$�,�<���z}��M��Z�z�C��&^��n�~�q�iV{�{�ɮV�C�@��8��H*�E� q)\ /]�r}�b�/�.f��<�$�t��ٟ����3ܥ�J��6�"��3l��d:c�o�L����#�m���1oui ��S��|�E�c�\�ƍ�0W����Ǧ�]�X��]�]]ތ�O�a��V+&�N�� l��$g�F/_R��7_
colin@cas1:~$ curl -v https://www.fnb.co.za
* About to connect() to www.fnb.co.za port 443 (#0)
* Trying 196.11.125.149... Connection timed out
* Trying 196.11.125.148... Connection timed out
* couldn't connect to host
* Closing connection #0
curl: (7) couldn't connect to host
colin@cas1:~$ tracepath www.fnb.co.za
1: ti-229-111-209.telkomadsl.co.za 0.226ms pmtu 1492
1: ti-224-108-01.telkomadsl.co.za 35.799ms