Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| # Hadoop Properties | |
| export HADOOP_PREFIX=/usr/local/hadoop # installation location | |
| export HADOOP_HOME=$HADOOP_PREFIX | |
| export HADOOP_COMMON_HOME=$HADOOP_PREFIX | |
| export HADOOP_CONF_DIR=$HADOOP_PREFIX/etc/hadoop | |
| export HADOOP_HDFS_HOME=$HADOOP_PREFIX | |
| export HADOOP_MAPRED_HOME=$HADOOP_PREFIX | |
| export HADOOP_YARN_HOME=$HADOOP_PREFIX | |
| export PATH=$PATH:$HADOOP_PREFIX/bin |
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
| #quotes on json, single around entire object and double on each property | |
| aws lambda update-function-configuration --function-name=[lambda function name] --environment '{"Variables":{"abc":"124"}}' |
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
| nginx: | |
| restart: always | |
| build: ./nginx | |
| ports: | |
| - "80:80" | |
| volumes: | |
| - /www/static | |
| volumes_from: | |
| - web | |
| links: |
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
| # -*- coding: utf-8 -*- | |
| # | |
| # Copyright (c) 2012, Xabier (slok) Larrakoetxea <slok69 [at] gmail [dot] com> | |
| # | |
| # 3 clause/New BSD license: | |
| # opensource: http://www.opensource.org/licenses/BSD-3-Clause | |
| # wikipedia: http://en.wikipedia.org/wiki/BSD_licenses | |
| # | |
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 pandas as pd | |
| import matplotlib.pyplot as plt | |
| def combined_label(perc, tot): | |
| """ | |
| Format a label to include by Euros and %. | |
| """ | |
| return "{0:,.0f}k EUR, {1:.0f}%".format(perc * tot / 1000, perc * 100) | |
| def cost_cum(data, focus, subject): |
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 urllib2 | |
| import re | |
| import sys | |
| from collections import defaultdict | |
| from random import random | |
| """ | |
| PLEASE DO NOT RUN THIS QUOTED CODE FOR THE SAKE OF daemonology's SERVER, IT IS | |
| NOT MY SERVER AND I FEEL BAD FOR ABUSING IT. JUST GET THE RESULTS OF THE | |
| CRAWL HERE: http://pastebin.com/raw.php?i=nqpsnTtW AND SAVE THEM TO "archive.txt" |
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
| # A virtualenv running Python3.6 on Amazon Linux/EC2 (approximately) simulates the Python 3.6 Docker container used by Lambda | |
| # and can be used for developing/testing Python 3.6 Lambda functions | |
| # This script installs Python 3.6 on an EC2 instance running Amazon Linux and creates a virtualenv running this version of Python | |
| # This is required because Amazon Linux does not come with Python 3.6 pre-installed | |
| # and several packages available in Amazon Linux are not available in the Lambda Python 3.6 runtime | |
| # The script has been tested successfully on a t2.micro EC2 instance (Root device type: ebs; Virtualization type: hvm) | |
| # running Amazon Linux AMI 2017.03.0 (HVM), SSD Volume Type - ami-c58c1dd3 | |
| # and was developed with the help of AWS Support |
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
| id: test | |
| namespace: dev | |
| tasks: | |
| - id: deploy | |
| type: io.kestra.core.tasks.flows.Worker | |
| tasks: | |
| - id: cloneRepository | |
| type: io.kestra.plugin.git.Clone | |
| url: https://github.com/veekaybee/viberary | |
| branch: main |
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 inspect | |
| import json | |
| import re | |
| import typing | |
| from inspect import isclass, getdoc | |
| from types import NoneType | |
| from pydantic import BaseModel, Field | |
| from pydantic.fields import FieldInfo | |
| from typing import Any, Type, List, get_args, get_origin, Tuple, Union, Optional |
OlderNewer