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 | |
ipAddress="192.168.0.1" | |
username="USERNAME" | |
password="PASSWORD" | |
curl -k -m 5 --anyauth -u "$username:$password" http://$ipAddress:49000/upnp/control/deviceconfig -H 'Content-Type: text/xml; charset="utf-8"' -H "SoapAction:urn:dslforum-org:service:DeviceConfig:1#Reboot" -d "<?xml version='1.0' encoding='utf-8'?><s:Envelope s:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' xmlns:s='http://schemas.xmlsoap.org/soap/envelope/'><s:Body><u:Reboot xmlns:u='urn:dslforum-org:service:DeviceConfig:1'/></s:Body></s:Envelope>" |
This file has been truncated, but you can view the full file.
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
SteamVR System Report created Thu Jul 16 12:38:22 2020 | |
<Report> | |
SteamVR Version: 1.13.10 (1594444218) | |
SteamVR Date: 2020-07-11 | |
Steam: Public | |
Steam Branch: beta | |
Steam AppID: 250820 | |
Tracking: lighthouse | |
OS: Linux version 5.4.0-7634-generic (buildd@lgw01-amd64-017) (gcc version 9.3.0 (Ubuntu 9.3.0-10ubuntu2)) #38~1592497129~20.04~9a1ea2e-Ubuntu SMP Fri Jun 19 22:43:37 UTC |
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 | |
declare(strict_types = 1); | |
namespace Project\Infrastructure\Pdf; | |
use Project\Infrastructure\Pdf\Exception\FopException; | |
final class PdfGenerator | |
{ | |
/** |
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
public static function getCountryOptions(string $locale) : array | |
{ | |
$resourceBundle = ResourceBundle::create($locale, 'ICUDATA-region'); | |
$options = []; | |
foreach ($resourceBundle['Countries'] as $countryCode => $label) { | |
if (!preg_match('(^[A-Z]{2}$)', $countryCode) || 'ZZ' === $countryCode) { | |
continue; | |
} |
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 | |
final class Timezone | |
{ | |
private static $utc; | |
public static function utc() : self | |
{ | |
return self::$utc ?: self::$utc = new self('utc'); | |
} | |
} |
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
{ | |
"#zftalk": { | |
"zf2 flowchart": "https://docs.google.com/a/rmauger.co.uk/drawings/d/1OwFfjgaiXDuKmS2I8nnJNFqoDgEWNNB-_-tUXUPVrgQ/edit" | |
}, | |
"global": { | |
"doesn't work": "Doesn't work is not a helpful statement. Was there an error? Unexpected results? Does it sit on the couch all day eating all your cheetos and ignoring the classifieds? Be specific!", | |
"espresso": "A coffee beverage which weierophinney and DASPRiD will never reach an agreement on how it should be brewed. (but, really, weierophinney is correct)", | |
"surveying": "If you have to ask \"Does anyone here use foo\" or \"Are there any baz experts around\" you're just taking a survey. You'll likely get an answer quicker if you just ask specifically what you need help with.", | |
"zend": "Please stop calling the product by the company name. The product name is Framework, marketed by Zend. Since you don't call the popular operating system Microsoft, call the product Zend Framework or ZF for short. (And yes, y |
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
From 7c0d660519a9c9a17c03a2cb53d579f66b35469c Mon Sep 17 00:00:00 2001 | |
From: Ben Scholzen <[email protected]> | |
Date: Sun, 10 Jan 2016 20:14:00 +0100 | |
Subject: [PATCH] Add feature to show editing time of a document in the | |
document information dialog | |
--- | |
krita/ui/KisDocument.cpp | 31 ++++++++++++++++++++++++++++++- | |
krita/ui/KisDocument.h | 2 ++ | |
libs/odf/KoDocumentInfo.cpp | 3 ++- |
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 | |
from __future__ import division | |
from gimpfu import * | |
import math | |
from array import array | |
def python_telegram_sticker(timg, tdrawable): | |
timg.undo_group_start() | |
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 | |
if [ -z "$1" ] | |
then | |
echo "No input file supplied" | |
fi | |
convert $1 \ | |
-trim -resize 512x512 \ | |
\( -clone 0 -background white -shadow 100x2+0+0 -channel A -level 0,5% +channel \) \ |
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 | |
$intVector = Vector<int>(53, 32, 43); | |
$stringVector = Vector<string>('foo', 'bar', 'baz'); | |
$arrayVector = Vector<array>(array('a'), array('b')); | |
$vectorVector = Vector<Vector<int>>(Vector<int>(1, 2), Vector<int>(2, 3)); | |
$classVector = Vector<\stdClass>(new \stdClass(), new \stdClass()); | |
foreach ($intVector as $key => $value) { | |
// Do something. | |
} |
NewerOlder