This file contains 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
" Syntax highlighting | |
syntax on | |
" Tab/indent options | |
" set cindent | |
set expandtab | |
set tabstop=2 | |
set shiftwidth=2 | |
set autoindent | |
set smartindent |
This file contains 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
#!/bin/bash | |
# | |
# yoisthisracist.sh - Display a random 'Yo, Is This Racist?' post. | |
# | |
# Copyright (C) 2012 Brandon DeRosier | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. |
This file contains 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
#!/bin/bash | |
# | |
# mc.sh - Tiny Minecraft setup script | |
# | |
# Copyright (C) 2012 Brandon DeRosier | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. |
This file contains 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
"""Continuously approximate PI using a Monte Carlo method (quarter circle)""" | |
from random import random | |
inside = 0 | |
total = 0.0 | |
totalcap = 1000000 | |
while True : | |
for i in range(0, totalcap) : |
This file contains 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
#!/bin/bash | |
ffmpeg -i small/0.mp4 -i small/1.mp4 -i small/10.mp4 -i small/11.mp4 -i small/12.mp4 -i small/13.mp4 -i small/14.mp4 -i small/15.mp4 -i small/16.mp4 -i small/17.mp4 -i small/18.mp4 -i\ | |
small/19.mp4 -i small/2.mp4 -i small/20.mp4 -i small/21.mp4 -i small/22.mp4 -i small/23.mp4 -i small/24.mp4 -i small/25.mp4 -i small/26.mp4 -i small/27.mp4 -i small/28.mp4 -i small/2\ | |
9.mp4 -i small/3.mp4 -i small/30.mp4 -i small/31.mp4 -i small/32.mp4 -i small/33.mp4 -i small/34.mp4 -i small/35.mp4 -i small/36.mp4 -i small/37.mp4 -i small/38.mp4 -i small/39.mp4 -i\ | |
small/4.mp4 -i small/40.mp4 -i small/41.mp4 -i small/42.mp4 -i small/43.mp4 -i small/44.mp4 -i small/45.mp4 -i small/46.mp4 -i small/47.mp4 -i small/48.mp4 -i small/49.mp4 -i small/5\ | |
.mp4 -i small/50.mp4 -i small/51.mp4 -i small/52.mp4 -i small/53.mp4 -i small/54.mp4 -i small/5 |
This file contains 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
#!/bin/bash | |
output='8x8.mp4' | |
output_width=1920 | |
output_height=1080 | |
output_length='00:05:00' | |
current=0 | |
grid_width=8 | |
grid_height=8 |
This file contains 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
1.) On Ubuntu 12.04, add the following to /etc/X11/xorg.conf (if xorg.conf doesn't exist, create it): | |
Section "InputClass" | |
Identifier "Mouse Remap" | |
MatchProduct "Saitek Cyborg R.A.T.7 Mouse" | |
MatchDevicePath "/dev/input/event*" | |
Option "ButtonMapping" "1 2 3 4 5 6 7 2 9 10 11 12 0 0 0" | |
EndSection | |
This file contains 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
ansible-playbook edx-east/edxapp.yml -i mitxstack.ini -e @server-vars.yml -e 'edx_platform_version=mitx-hotfix-20140919' --tags deploy |
This file contains 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
Nov 7 09:56:13 sandbox2o [service_variant=lms][edx.courseware][env:sandbox] ERROR [sandbox2o 15250] [views.py:486] - Error in index view: user=bdero, course=CourseDescriptorWithMixins(<xmodule.modulestore.mongo.base.CachingDescriptorSystem object at 0x84150d0>, <lms.lib.xblock.field_data.LmsFieldData object at 0x87aa510>, ScopeIds(user_id=1L, block_type=u'course', def_id=BlockUsageLocator(CourseLocator(u'MITx', u'POC101', u'3T2014', None, None), u'course', u'3T2014'), usage_id=BlockUsageLocator(CourseLocator(u'MITx', u'POC101', u'3T2014', None, None), u'course', u'3T2014'))), chapter=Week_1 section=Problem_Set_1 position=None | |
Traceback (most recent call last): | |
File "/edx/app/edxapp/edx-platform/lms/djangoapps/courseware/views.py", line 434, in _index_bulk_op | |
context['fragment'] = section_module.render(STUDENT_VIEW) | |
File "/edx/app/edxapp/venvs/edxapp/src/xblock/xblock/core.py", line 293, in render | |
return self.runtime.render(self, view, context) | |
File "/edx/app/edxapp/edx-platform/common/lib/xmod |
This file contains 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
2015-07-07 11:51:18,758 ERROR 5349 [contentstore.views.import_export] import_export.py:381 - There was an error exporting course-v1:xcvb+xcvb+xcvb | |
Traceback (most recent call last): | |
File "/edx/app/edxapp/edx-platform/cms/djangoapps/contentstore/views/import_export.py", line 374, in create_export_tarball | |
export_course_to_xml(modulestore(), contentstore(), course_module.id, root_dir, name) | |
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/xml_exporter.py", line 350, in export_course_to_xml | |
CourseExportManager(modulestore, contentstore, course_key, root_dir, course_dir).export() | |
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/xml_exporter.py", line 171, in export | |
courselike.add_xml_to_node(root) | |
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/xml_module.py", line 549, in add_xml_to_node | |
super(XmlParserMixin, self).add_xml_to_node(node) # pylint: disable=bad-super-call |
OlderNewer