I hereby claim:
- I am kevinseelbach on github.
- I am kvseelbach (https://keybase.io/kvseelbach) on keybase.
- I have a public key ASBXThUuK2Pxf19nsljjs2tljhNWxY7SAEi_MQS8c5WExgo
To claim this, I am signing this object:
#!/usr/bin/env bash | |
# Description: Convert all mkv files in a directory to mp4 using ffmpeg and vaapi | |
# set -x | |
convert_file() { | |
input_filename="$1" | |
output_filename="${input_filename%.mkv}.mp4" | |
python3 -c 'header=" BEGIN converting '"$input_filename "'"; print(f"{header:*^80}")' |
I hereby claim:
To claim this, I am signing this object:
from virgil_sdk.cards import card_manager | |
class CardManager(card_manager.CardManager): | |
# THIS IS A DIRECT COPY OF THE VIRGIL CardManager, just copied here to explain the issue | |
def search_card(self, identity): | |
# THIS IS A DIRECT COPY OF THE original method (without docs), just copied here to explain the issue | |
if not identity: |
<?xml version="1.0" encoding="utf-8"?><testsuite errors="0" failures="0" name="pytest" skips="0" tests="470" time="50.830"><testcase classname="tests.test_hooks" file="tests/test_hooks.py" line="11" name="test_hooks[hooks_list0-ata]" time="0.000707149505615"></testcase><testcase classname="tests.test_hooks" file="tests/test_hooks.py" line="11" name="test_hooks[hooks_list1-ta]" time="0.000586032867432"></testcase><testcase classname="tests.test_hooks" file="tests/test_hooks.py" line="21" name="test_default_hooks" time="0.000357151031494"></testcase><testcase classname="tests.test_lowlevel" file="tests/test_lowlevel.py" line="12" name="test_chunked_upload" time="0.517649888992"></testcase><testcase classname="tests.test_lowlevel" file="tests/test_lowlevel.py" line="27" name="test_digestauth_401_count_reset_on_redirect" time="2.01818013191"></testcase><testcase classname="tests.test_lowlevel" file="tests/test_lowlevel.py" line="92" name="test_digestauth_401_only_sent_once" time="1.01179909706"></testcase><testca |
""" | |
Python 3.5.2 (default, Dec 17 2016, 20:19:49) | |
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.38)] on darwin | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> import threading | |
>>> import copy | |
>>> x = threading.local() | |
>>> x.a = 1 | |
>>> y = copy.deepcopy(x) | |
>>> y.a |
These are field notes gathered during installation of website search facility for the ElasticSearch website.
You may re-use it to put a similar system in place.
The following assumes:
Vagrantfile | |
```ruby | |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "raring" | |
config.vm.box_url = 'http://cloud-images.ubuntu.com/vagrant/raring/current/raring-server-cloudimg-amd64-vagrant-disk1.box' |
class ContractWizard(SessionWizardView): | |
def get_template_names(self): | |
return [TEMPLATES[self.steps.current]] | |
def get_form_kwargs(self, step): | |
kwargs = super(ContractWizard, self).get_form_kwargs(step) |
def get_color_choices(rid): | |
r_server = redis.Redis('localhost') | |
order_items = r_server.smembers('orderitems:%s' % rid) | |
roofing_brand = '' | |
for o in order_items: | |
c = json.loads(o) | |
if c['94'] == '1' and c['19'] == '1': | |
roofing_brand = c['22'] | |
break | |
key = 'colors:%s' % (roofing_brand) |
var listToGet = [{ | |
url: 'https://example.quickbase.com/db/dbid?a=q&qid=##', | |
name: 'jobs' | |
}, | |
{ | |
url: 'https://example.quickbase.com/db/dbid?a=q&qid=##', | |
name: 'messages', | |
}] | |