This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Use envFrom to load Secrets and ConfigMaps into environment variables | |
| apiVersion: apps/v1beta2 | |
| kind: Deployment | |
| metadata: | |
| name: mans-not-hot | |
| labels: | |
| app: mans-not-hot | |
| spec: | |
| replicas: 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt-add-repository ppa:jon-severinsson/ffmpeg | |
| sudo apt-get update | |
| sudo apt-get upgrade -y | |
| version="$(wget -q -O - http://sourceforge.net/projects/opencvlibrary/files/opencv-unix | egrep -m1 -o '\"[0-9](\.[0-9]+)+' | cut -c2-)" | |
| echo "Installing OpenCV" $version | |
| mkdir OpenCV | |
| cd OpenCV | |
| echo "Removing any pre-installed ffmpeg and x264" | |
| sudo apt-get -qq remove ffmpeg x264 libx264-dev | |
| echo "Installing Dependenices" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from multiprocessing import Pool as MPool | |
| from time import sleep | |
| import datetime | |
| import multiprocessing | |
| import random | |
| def time_request(): | |
| from gevent import monkey; monkey.patch_socket | |
| from jsonrequester import JsonRequester |
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mr Marathi | |
| bs Bosnian | |
| ee_TG Ewe (Togo) | |
| ms Malay | |
| kam_KE Kamba (Kenya) | |
| mt Maltese | |
| ha Hausa | |
| es_HN Spanish (Honduras) | |
| ml_IN Malayalam (India) | |
| ro_MD Romanian (Moldova) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import time | |
| import inspect | |
| import types | |
| def _assert(func): | |
| if not func(): | |
| if isinstance(func, types.FunctionType): | |
| raise AssertionError(inspect.getsource(func).strip()) | |
| else: | |
| raise AssertionError() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git branch -m old_branch new_branch # Rename branch locally | |
| git push origin :old_branch # Delete the old branch | |
| git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| atom sync settings |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Name of the riak node | |
| -name riak@127.0.0.1 | |
| ## Cookie for distributed erlang. All nodes in the same cluster | |
| ## should use the same cookie or they will not be able to communicate. | |
| -setcookie riak | |
| ## Heartbeat management; auto-restarts VM if it dies or becomes unresponsive | |
| ## (Disabled by default..use with caution!) | |
| ##-heart |