This file contains 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
.PHONY: test setup | |
testdata.xml: | |
curl -sSL -o testdata.xml http://aiweb.cs.washington.edu/research/projects/xmltk/xmldata/data/nasa/nasa.xml | |
result.log: testdata.xml | |
php runner.php test-xmlreader.php 10 > results.log | |
php runner.php test-simplexml.php 10 >> results.log | |
php runner.php test-simplexml-string.php 10 >> results.log |
This file contains 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
--- ../steghide-0.5.1 2/./src/AuSampleValues.cc 2003-09-28 18:30:30.000000000 +0300 | |
+++ ./src/AuSampleValues.cc 2021-03-28 05:22:48.000000000 +0300 | |
@@ -21,17 +21,17 @@ | |
#include "AuSampleValues.h" | |
// AuMuLawSampleValue | |
-const BYTE AuMuLawSampleValue::MinValue = 0 ; | |
-const BYTE AuMuLawSampleValue::MaxValue = BYTE_MAX ; | |
+template<> const BYTE AuMuLawSampleValue::MinValue = 0 ; | |
+template<> const BYTE AuMuLawSampleValue::MaxValue = BYTE_MAX ; |
This file contains 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
<meta charset="utf-8"> | |
<style> | |
iframe { | |
position: absolute; | |
width: 100vw; | |
height: 100vh; | |
} | |
</style> |
This file contains 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 -i /bin/bash | |
# Based on: https://github.com/teaminternet/ops-encrypted-timemachine/blob/master/setup-encrypted-timemachine.sh | |
PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$PATH | |
HOSTNAME=`hostname -s` | |
IMAGENAME="$HOSTNAME.sparsebundle" | |
UUID=`/usr/sbin/system_profiler SPHardwareDataType | awk '/UUID/ { print $3; }'` | |
UUIDLOW=`echo $UUID|awk '{print tolower($0)}'` |
This file contains 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
main(); | |
function splitLine(strData, strDelimiter) { | |
// Check to see if the delimiter is defined. If not, | |
// then default to comma. | |
strDelimiter = strDelimiter || ","; | |
// Create a regular expression to parse the CSV values. | |
var objPattern = new RegExp(( | |
// Delimiters. |
This file contains 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
/** GraphQL type name for union of all known paragraph types. */ | |
const PARAGRAPH_UNON_NAME = 'paragraph_types_union' | |
/** GraphQL type name for union of all known media types. */ | |
const MEDIA_UNON_NAME = 'media_types_union' | |
/** Construct field schema with type overrides. */ | |
function createCustomFields(fields) { | |
return fields.reduce((schema, { type, name: fieldName }) => { | |
const resolveById = (parent, args, context) => { |
This file contains 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
<?php | |
class CMSMS | |
{ | |
static public function buildMessageXml($recipient, $message) { | |
$xml = new SimpleXMLElement('<MESSAGES/>'); | |
$authentication = $xml->addChild('AUTHENTICATION'); | |
$authentication->addChild('PRODUCTTOKEN', 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX'); |
This file contains 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 python | |
import os | |
import pprint | |
import json | |
from requests_oauthlib import OAuth2Session, TokenUpdated | |
TOKEN_FILE = os.environ.get('TOKEN_FILE', 'token.json') | |
SALESFORCE_URI = os.environ.get('SALESFORCE_URI', 'https://login.salesforce.com') |
This file contains 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/bash | |
# Purpose of this script is to eats all command line parameters and error messages | |
# Location: /usr/local/bin/xclip | |
# Just exit if -o flag is set | |
while [[ $# -gt 1 ]]; do | |
case "$1" in | |
-o ) exit 0 ;; | |
* ) echo $1; shift ;; |
This file contains 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
<?php | |
require __DIR__ . '/vendor/autoload.php'; | |
use QuickPay\QuickPay as Client; | |
class QuickPayBase | |
{ | |
/** | |
* Quickpay client |
NewerOlder