Skip to content

Instantly share code, notes, and snippets.

Avatar

Maximiliano Fernandez melvinsoft

View GitHub Profile
View get-pip.py
This file has been truncated, but you can view the full file.
#!/usr/bin/env python
#
# Hi There!
# You may be wondering what this giant blob of binary data here is, you might
# even be worried that we're up to something nefarious (good for you for being
# paranoid!). This is a base85 encoding of a zip file, this zip file contains
# an entire copy of pip.
#
# Pip is a thing that installs packages, pip itself is a package that someone
View runserver error
System check identified no issues (0 silenced).
October 10, 2017 - 12:00:11
Django version 1.10.8, using settings 'config.settings'
Starting development server at http://0.0.0.0:9000/
Quit the server with CONTROL-C.
[10/Oct/2017 12:03:17] "GET / HTTP/1.1" 302 0
[10/Oct/2017 12:03:17] "GET /robots.txt HTTP/1.1" 200 25
Internal Server Error: /accounts/login/
Traceback (most recent call last):
File "/Users/melvin/.virtualenvs/amc/lib/python3.5/site-packages/django/template/utils.py", line 65, in __getitem__
View bootstrap security stderr.txt
+ main
+ set +e
+ apt-get -V
+ local ec=0
+ set -e
+ '[' 0 -eq 0 ']'
+ debian_patch
+ echo 'Apply path for Debian'
+ sudo apt-get clean
+ sudo mv /etc/apt/sources.list /tmp/sources.list.bk
View Hive query and error
2017-09-14 13:12:36,055 ERROR 9901 [luigi-interface] worker.py:304 - [pid 9901] Worker Worker(salt=197142346, host=prod-asustarbucks-ficus-insights-0, username=hadoop, pid=9901) failed HiveTableFromParameterQueryTask(warehouse_path=hdfs://localhost:9000/edx-analytics-pipeline/warehouse/, insert_query=
SELECT
act.course_id as course_id,
CONCAT(cal.iso_week_start, ' 00:00:00') as interval_start,
CONCAT(cal.iso_week_end, ' 00:00:00') as interval_end,
act.category as label,
COUNT(DISTINCT username) as count
FROM user_activity_daily act
JOIN calendar cal ON act.`date` = cal.`date`
WHERE "2017-09-04" <= cal.`date` AND cal.`date` < "2017-09-18"
View OAuth user me output
{u'access_token': u'ZjM0ZmY4YjU5MTQwN2FiNTBkMjFiYmYzNWM2NDM2ZDU1OWIwYTkzODY0MzkzZDM2NDc3YzgzNWEzYjBiNTljOA',
u'api_token': {u'attributes': [],
u'authenticated': True,
u'roles': [{u'role': u'ROLE_USER'},
{u'role': u'ROLE_TEACHER'}],
u'token': u'ZjM0ZmY4YjU5MTQwN2FiNTBkMjFiYmYzNWM2NDM2ZDU1OWIwYTkzODY0MzkzZDM2NDc3YzgzNWEzYjBiNTljOA',
u'user': None},
u'client': None,
u'current_organization': {u'campus': u'55da2fbe-6311-11e7-93e7-8e7e1be22846',
u'district': u'local:55da1ff4-6311-11e7-93e7-8e7e1be22846'},
View OU plan
The Terraform execution plan has been generated and is shown below.
Resources are shown in alphabetical order for quick scanning. Green resources
will be created (or destroyed and then created if an existing resource
exists), yellow resources are being changed in-place, and red resources
will be destroyed. Cyan entries are data sources to be read.
Your plan was also saved to the path below. Call the "apply" subcommand
with this plan file and Terraform will exactly execute this execution
plan.
View HIOA Plan
(ax) melvin@macbook-pro:~/Appsembler/Code/ax$ ax --work-dir /Users/melvin/Appsembler/Code/ --disable-branch-checking terraform -c hioa -e prod -t pro -p gcp --google-credentials-file /keybase/private/melvinsoft/HIOA-6fda1cfcad12.json --aws-credentials-file /keybase/private/melvinsoft/aws-terraform.csv plan
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but
will not be persisted to local or remote state storage.
google_compute_network.edxapp: Refreshing state... (ID: prod-hioa-euc)
google_storage_bucket.backups: Refreshing state... (ID: prod-hioa-euc-backups)
google_compute_address.mongo: Refreshing state... (ID: prod-hioa-euc-mongo-0)
google_compute_address.edxapp: Refreshing state... (ID: prod-hioa-euc-edxapp-0)
google_sql_database_instance.mysql_master: Refreshing state... (ID: prod-hioa-euc-mysql-master-1)
View InsertToMysqlCourseEnrollByCountryWorkflow output
# On branch master
# Your branch is up-to-date with 'origin/master'.
#
nothing to commit, working tree clean
(pipeline)user@host:~/edx-analytics-pipeline$ vi requirements/default.txt
(pipeline)user@host:~/edx-analytics-pipeline$ git checkout open-release/eucalyptus.master
Switched to branch 'open-release/eucalyptus.master'
Your branch is up-to-date with 'origin/open-release/eucalyptus.master'.
(pipeline)user@host:~/edx-analytics-pipeline$ cd ..
(pipeline)user@host:~$ remote-task --host localhost --user maxi --remote-name analyticstack --wait InsertToMysqlCourseEnrollByCountryWorkflow --local-scheduler --interval-start $(date +%Y-%m-%d -d "$FROM_DATE") --interval-end $(date +%Y-%m-%d -d "$TO_DATE") --n-reduce-tasks 2 --overwrite --local-scheduler --skip-setup --overwrite-n-days 0 --override-config $HOME/edx-analytics-pipeline/config/devstack.cfg --input algo
View assets compile
ubuntu@prod-iverson-edxapp-0:~$ sudo /edx/bin/edxapp-update-assets-lms
---> pavelib.assets.update_assets
---> pavelib.prereqs.install_node_prereqs
NO_PREREQ_INSTALL is set, not installing prereqs
python manage.py lms --settings=aws_appsembler preprocess_assets lms/static/sass/*.scss lms/static/themed_sass
WARNING:openedx.core.djangoapps.theming.core:
Deprecated:
COMPREHENSIVE_THEME_DIR setting has been deprecated in favor of COMPREHENSIVE_THEME_DIRS.
2016-12-14 09:57:20,227 INFO 49050 [dd.dogapi] dog_stats_api.py:66 - Initializing dog api to use statsd: localhost, 8125
Finished preprocessing lms assets.
View paver stack
edxapp@prod-iverson-edxapp-0:~/edx-platform$ paver update_assets --settings aws_appsembler lms
---> pavelib.assets.update_assets
---> pavelib.prereqs.install_node_prereqs
NO_PREREQ_INSTALL is set, not installing prereqs
python manage.py lms --settings=aws_appsembler preprocess_assets lms/static/sass/*.scss lms/static/themed_sass
WARNING:openedx.core.djangoapps.theming.core:
Deprecated:
COMPREHENSIVE_THEME_DIR setting has been deprecated in favor of COMPREHENSIVE_THEME_DIRS.
2016-12-13 19:18:15,435 INFO 55895 [dd.dogapi] dog_stats_api.py:66 - Initializing dog api to use statsd: localhost, 8125
Finished preprocessing lms assets.