Skip to content

Instantly share code, notes, and snippets.

@thepeopleseason
thepeopleseason / remap-capslock-chromeos
Last active August 29, 2015 13:56
How to remap the capslock key for a USB keyboard on Chrome OS
Go to chrome://settings/keyboard-overlay
Highlight "Alt" in the Keyboard Settings dialog.
Right-click and choose "Inspect Element."
In the Developer Tools source pane, search for '<tr id="caps-lock-remapping-section" hidden>' (should be a few lines down).
Right-click on "hidden" and choose "Edit Attribute."
Delete the hidden attribute and hit Enter.
In the Keyboard Settings dialog, remap the newly-appearing "Caps Lock" entry as you choose.
Hit "OK"
@thepeopleseason
thepeopleseason / gist:6156326
Created August 5, 2013 14:27
Brightcove API documentation is wrong
===> Please place your reply above this line <===
Hi James,
The documentation may actually be incorrect here. I will have our Doc Writers review. No changes have been made to the API in years so I think the documentation has been incorrect all along.
I won't be needing the tcpdump or Wireshark logs and Shaun provided the API Call along with the JSON results so I think I have everything I need. We're still investigating why a video in PENDING status was in the API Call results.
I'll be in touch when I have some additional information.
@thepeopleseason
thepeopleseason / gist:5599202
Created May 17, 2013 14:01
Words to Block Cyrillic Spam
Create an inbox rule to delete mail where the following words appear in the subject or message:
с
в
о
и
на
ЕВРО
These are Cyrillic characters, so a regular 'O' or 'C' should not filter to trash.
def brightcove_share(self, sitelist=[]):
"""
make an API call to brightcove to share this particular
video to the listed sites
"""
if self.shareable:
account_ids = [
setting.db_value for setting in Setting.objects.filter(
name='brightcove_account_id',
site__in=sitelist)]