Version: 2.1.1
Platform: x86_64
First, install or update to the latest system software.
sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
| Go to Bitbucket and create a new repository (its better to have an empty repo) | |
| git clone git@bitbucket.org:abc/myforkedrepo.git | |
| cd myforkedrepo | |
| Now add Github repo as a new remote in Bitbucket called "sync" | |
| git remote add sync git@github.com:def/originalrepo.git | |
| Verify what are the remotes currently being setup for "myforkedrepo". This following command should show "fetch" and "push" for two remotes i.e. "origin" and "sync" | |
| git remote -v |
| # A script that can automatically download videos from Edx | |
| # Currently this is heavily tied to the way my Edx account and my computer is | |
| # set up. It downloads by sending the the download url and download directory | |
| # to aria2 runnig in rpc mode. | |
| # More info here: http://aria2.sourceforge.net/manual/en/html/aria2c.html#rpc-interface | |
| # You can use http://ziahamza.github.io/webui-aria2/ to see download progress | |
| # For now parameters, such as username, password, and which course to download | |
| # can be provided in the script | |
| # I intend to make it more flexible | |
| from __future__ import print_function |
| def login(email, password, base_url='https://courses.edx.org'): | |
| """Login via HTTP and parse sessionid from the cookie.""" | |
| r = requests.get('{}/login'.format(base_url)) | |
| csrf = r.cookies['csrftoken'] | |
| payload = {'email': email, 'password': password} | |
| cookies = {'csrftoken': csrf} | |
| headers = {'referer': '{}/login'.format(base_url), 'X-CSRFToken': csrf} | |
| r = requests.post('{}/user_api/v1/account/login_session/'.format(base_url), | |
| data=payload, cookies=cookies, headers=headers) | |
| try: |
| #!/bin/sh | |
| # | |
| ###################################################################################################### | |
| # | |
| # Description: | |
| # Backup pfSense 2.3 Firewalls to Local Disk | |
| # | |
| ###################################################################################################### | |
| # | |
| # Author: Nick Peelman |