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
if (Meteor.isServer) { | |
import { HTTP } from 'meteor/http'; | |
import { _ } from 'lodash'; | |
import { moment } from 'meteor/momentjs:moment'; | |
import { Requests } from '../collections/Requests.js'; | |
import { doesFitPackaging } from '../lib/pricing.js'; | |
const SMALL_ITEMS_PACKAGING_SIZES = [ | |
{ | |
id: 'PACKAGE_SIZE_1', |
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
result = HTTP.call('PUT', `${apiEndpoint}/${result.data.orderKey}/parcels/${result.data.relations[0]['parcelKey']}/label`, { | |
auth: apiAuth, | |
headers: { | |
'Content-Type': 'multipart/form-data; boundary=3cc6d52cb19500f900214f6a778c15ef', | |
}, | |
content: [ | |
'--3cc6d52cb19500f900214f6a778c15ef', | |
'Content-Disposition: form-data; name="label"; filename="label.png"', | |
'Content-Type: application/octet-stream', | |
'Content-Transfer-Encoding: base64', |
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
#!/bin/sh | |
if [ x$1 == x”precustomization” ]; then | |
echo Do Nothing | |
elif [ x$1 == x”postcustomization” ]; then | |
mkdir -p /root/.ssh | |
echo ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPYt1OOlP6CB80/GmBrqBpyKM4PY0cuJlpcBdzutW5+j [email protected] > /root/.ssh/authorized_keys | |
restorecon -R -v /root/.ssh | |
fi |
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 populate_omxplayer_options(parser): | |
output = subprocess.check_output([OMXPLAYER, '-h']) | |
optlist = [] | |
for option in filter(lambda x:re.search(r'^\s+-[^-]', x), output.split("\n")): | |
option = re.match(r'^-(.)\s+--(\S+) ?(\S+)?', option.lstrip()) | |
if option.group(2) in ['stats','help','pos']: | |
continue | |
optlist.append([option.group(1), option.group(2), option.group(3)]) |
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
# -*- coding: utf-8 -*- | |
from paddingoracle import BadPaddingException, PaddingOracle | |
from base64 import b64encode, b64decode | |
from urllib import quote, unquote | |
import requests | |
import socket | |
import time | |
import pexpect | |
import signal | |
import sys |
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
const int poti1 = A0; // Analog input pin that the Ph probe is connected. | |
//const int poti2 = A1; // Analog input pin that the Ph probe is connected. | |
int sensorValue = 0; // 10bit value read from the PH probe. | |
byte address = 4; // 00000100, first possible address. | |
byte PhLo = 0; // Lo-byte of 10 bit data. | |
byte PhHi = 0; // Hi-byte of 10 bit data. | |
void setup() { |
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
<Email title="Bestellbestätigung" headCSS={css} valign="top"> | |
<Box cellSpacing={20}> | |
<Item> | |
<Span fontSize={15}>Hallo {props.buyer_name}</Span> | |
</Item> | |
<Item> | |
<Span fontSize={15}> | |
Wir vom Team PostLogistics freuen uns, dass Sie sich für unser Angebot, im Rahmen des Pilotversuchs Transport Service, entschieden haben. | |
Vielen Dank für Ihren Auftrag und Ihr Vertrauen in uns. | |
Selbstverständlich werden alle Ihre Angaben vertraulich behandelt und nur für die Auftragsabwicklung verwendet. |
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
<Email title="Bestellbestätigung" headCSS={css} valign="top"> | |
<Box cellSpacing={20}> | |
<Item> | |
<Span fontSize={15}>Hallo {props.buyer_name}</Span> | |
</Item> | |
<Item> | |
<Span fontSize={15}> | |
Wir vom Team PostLogistics freuen uns, dass Sie sich für unser Angebot, im Rahmen des Pilotversuchs Transport Service, entschieden haben. | |
Vielen Dank für Ihren Auftrag und Ihr Vertrauen in uns. | |
Selbstverständlich werden alle Ihre Angaben vertraulich behandelt und nur für die Auftragsabwicklung verwendet. |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<s:Envelope xmlns:a="http://www.w3.org/2005/08/addressing" xmlns:s="http://www.w3.org/2003/05/soap-envelope"> | |
<s:Header> | |
<a:Action s:mustUnderstand="1">http://www.admin.ch/xmlns/Services/evd/Livestock/AnimalTracing/1/AnimalTracingPortType/GetCattleHistoryResponse</a:Action> | |
</s:Header> | |
<s:Body> | |
<GetCattleHistoryResponse xmlns="http://www.admin.ch/xmlns/Services/evd/Livestock/AnimalTracing/1"> | |
<GetCattleHistoryResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> | |
<Result> | |
<Code>1</Code> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<s:Envelope xmlns:a="http://www.w3.org/2005/08/addressing" xmlns:s="http://www.w3.org/2003/05/soap-envelope"> | |
<s:Header> | |
<a:Action s:mustUnderstand="1">http://www.admin.ch/xmlns/Services/evd/Livestock/AnimalTracing/1/AnimalTracingPortType/GetCattleDetailResponse</a:Action> | |
</s:Header> | |
<s:Body> | |
<GetCattleDetailResponse xmlns="http://www.admin.ch/xmlns/Services/evd/Livestock/AnimalTracing/1"> | |
<GetCattleDetailResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> | |
<Result> | |
<Code>1</Code> |