This file contains hidden or 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
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)] |
This file contains hidden or 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
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. |
This file contains hidden or 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
===> 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. |
This file contains hidden or 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
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" |
This file contains hidden or 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
#!/usr/bin/env bash | |
update_config=$'Please update config.json with your values\nfor ADMIN_EMAIL, SMT | |
P_USER, SMTP_PASS and SMTP_SERVICE.' | |
cd /vagrant | |
# check if config.json exists, then check if the defaults are still in place | |
if [ -e config.json ]; | |
then | |
if grep -Fq 'ADMIN_EMAIL": "[email protected]' config.json; | |
then | |
echo "$update_config"; |
This file contains hidden or 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
javascript:$('#userId,#input_uuid')[0].value="<your UUID>";$(':password,#input_apiKey')[0].value="<your API Token>";if(window.location.host=='oldgods.net' || window.location.host==''){$(':submit').submit();}else if(window.location.pathname=='/static/api'){$('#input_uuid,#input_apiKey').change()}else{false;} |
This file contains hidden or 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
vagrant@habitrpg:/vagrant$ npm test | |
> [email protected] test /vagrant | |
> ./test/run_tests.sh | |
Running "stylus:build" (stylus) task | |
File build/app.css created. | |
File build/static.css created. | |
Done, without errors. |
This file contains hidden or 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
vagrant@habitrpg:/vagrant$ node ./src/seed.js | |
Failed to load c++ bson extension, using pure JS version | |
info: tavern=null, cb=function (err){ | |
if (err) throw err; | |
logging.info("Done initializing database"); | |
mongoose.disconnect(); | |
} | |
/vagrant/node_modules/mongoose/lib/utils.js:413 | |
throw err; |
This file contains hidden or 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
/(brit+[aei]?n(e?y|i|ee)|(c|k)ath?(e|a)?r(y|i)n(e|a)?|(ch?|kh?)r(i|y)st[eiy]?n)/ |
This file contains hidden or 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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
my $lines =<<'END'; | |
44 - 44 | |
44 / 44 | |
sqrt(4) * 4**0 * 4/4 | |
(sqrt(4) + 4**0) * 4/4 | |
4 * 4/4 * 4 ** 0 |
OlderNewer