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
FROM gliderlabs/alpine:3.3 | |
COPY myawesomescript /bin/myawesomescript | |
COPY root /var/spool/cron/crontabs/root | |
RUN chmod +x /bin/myawesomescript | |
CMD crond -l 2 -f |
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/sh | |
sudo kextunload /System/Library/Extensions/IONetworkingFamily.kext/Contents/PlugIns/AppleRTL815XEthernet.kext | |
sudo rm -rf /System/Library/Extensions/IONetworkingFamily.kext/Contents/PlugIns/AppleRTL815XEthernet.kext | |
sudo kextunload /System/Library/Extensions/IONetworkingFamily.kext/Contents/PlugIns/AppleRTL815XComposite.kext | |
sudo rm -rf /System/Library/Extensions/IONetworkingFamily.kext/Contents/PlugIns/AppleRTL815XComposite.kext | |
sudo kextunload /System/Library/Extensions/IONetworkingFamily.kext/Contents/PlugIns/AppleRTL815XEthernet109.kext | |
sudo rm -rf /System/Library/Extensions/IONetworkingFamily.kext/Contents/PlugIns/AppleRTL815XEthernet109.kext |
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
import json | |
import os | |
import syslog | |
import validator | |
from flask import Flask, request, make_response | |
from jsonschema.exceptions import ValidationError | |
class BadRequestError(Exception): | |
""" Signals a malformed request body |
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
import json | |
import os | |
from bravado_core.spec import Spec | |
from bravado_core.validate import validate_object | |
from yaml import load, Loader, dump, Dumper | |
def validate_car(car): | |
validate_object(spec, Car, car) |
Here we will make two .desktop
files that will launch Pupil Capture and Pupil Player.
- Right click on your desktop and create a new empty document.
- Set the document file type by Renaming the document that ends with
.desktop
- Drag the document into a text editor and edit the document with the example code below
Note: Change the X-Icon-Path to the icon you want to use and
Execpath to where Pupil Capture
main.py` is located on your machine (see example pupil.desktop for reference)