- curl, usb-modeswitch, grep, awk, sudo (not necessary, last step can fail safely)
- balong_flash in $PATH ( https://github.com/forth32/balongflash.git )
- atinout in $PATH ( https://github.com/beralt/atinout.git will work fine )
- 2 files we flash (core sw update version 22.x, WebUI installer), we use these (you can probably use different balong-compatible):
- core sw: "E3372sUpdate_22.298.03.02.965.BIN" / "E3372sUpdate_22.298.03.02.965.exe"
- webui: "Update_WEBUI_17.100.06.00.03_Hilink_V7R2_9x25_CPIO.exe"
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 | |
# | |
# For debian-like systems, for others you might have to change package names | |
# libusb-dev at least 1.0 | |
# build-essential => make, dpkg-dev, gcc, g++, libc-dev / libc6-dev | |
# | |
# | |
# Depending on your architecture and available cores, you might want to change -j4 argument (4 = number of compilation threads = cpu cores available) | |
# | |
# If you have GCC version greater than 6, go /usr/src/yatebts/ and patch using `patch -p1 < yatebts-5.0.0-gcc6.patch` |
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 python3 | |
import zlib | |
import base64 | |
import string | |
import sys | |
plantuml_alphabet = ( | |
string.digits + string.ascii_uppercase + string.ascii_lowercase + "-_" | |
) | |
base64_alphabet = string.ascii_uppercase + string.ascii_lowercase + string.digits + "+/" |
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
# picocom /dev/ttyUSB2 | |
ATI | |
Manufacturer: Sierra Wireless, Incorporated | |
Model: EM7455 | |
Revision: SWI9X30C_02.30.03.00 r7804 CARMD-EV-FRMWR2 2018/07/25 01:10:04 | |
MEID: -redacted- | |
IMEI: -redacted- | |
IMEI SV: 17 | |
FSN: LF818679700410 | |
+GCAP: +CGSM |
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
# /etc/udev/rules.d/70-huawei-e3.conf | |
# Necessary for network interface name | |
SUBSYSTEM=="net", ACTION=="add", ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="14dc", NAME="usb0" | |
# Might be duplicate to usb_modeswitch config, however it's good to have it there | |
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1f01", RUN+="/usr/sbin/usb_modeswitch -c /etc/usb_modeswitch.d/huawei_e3.conf" |
Run like
> decode_saml_request.sh sample_data
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
diff --git a/translator/src/main/scala/io/kaitai/struct/testtranslator/specgenerators/PythonSG.scala b/translator/src/main/scala/io/kaitai/struct/testtranslator/specgenerators/PythonSG.scala | |
index 327d3df0..0b64d616 100644 | |
--- a/translator/src/main/scala/io/kaitai/struct/testtranslator/specgenerators/PythonSG.scala | |
+++ b/translator/src/main/scala/io/kaitai/struct/testtranslator/specgenerators/PythonSG.scala | |
@@ -56,7 +56,9 @@ class PythonSG(spec: TestSpec, provider: ClassTypeProvider) extends BaseGenerato | |
override def nullAssert(actual: Ast.expr): Unit = { | |
val actStr = translateAct(actual) | |
- out.puts(s"self.assertIsNone($actStr)") | |
+ val attrStr = actStr.substring(actStr.lastIndexOf('.') + 1) |
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
Translating: imports_abs | |
[error] (run-main-0) io.kaitai.struct.precompile.ErrorInInput: imports_abs: /meta/imports/0: Unable to find 'common/vlq_base128_le' in import search paths, using: List(../../formats) | |
[error] io.kaitai.struct.precompile.ErrorInInput: imports_abs: /meta/imports/0: Unable to find 'common/vlq_base128_le' in import search paths, using: List(../../formats) | |
[error] at io.kaitai.struct.formats.JavaClassSpecs$.cached(JavaClassSpecs.scala:75) | |
[error] at io.kaitai.struct.formats.JavaClassSpecs.$anonfun$importAbsolute$1(JavaClassSpecs.scala:31) | |
[error] at scala.concurrent.Future$.$anonfun$apply$1(Future.scala:658) | |
[error] at scala.util.Success.$anonfun$map$1(Try.scala:255) | |
[error] at scala.util.Success.map(Try.scala:213) | |
[error] at scala.concurrent.Future.$anonfun$map$1(Future.scala:292) | |
[error] at scala.concurrent.impl.Promise.liftedTree1$1(Promise.scala:33) |
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 App\Controller; | |
use Cake\Controller\Controller; | |
use Closure; | |
use ReflectionFunction; | |
class AppController extends Controller |
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 | |
$parsed = Router::parseRequest($this->request); | |
unset($parsed['_matchedRoute']); | |
echo $this->Html->link('Čeština', array_merge($parsed, ['lang' => 'cz'])); | |
echo ' | '; | |
echo $this->Html->link('English', array_merge($parsed, ['lang' => 'en'])); | |
echo ' | '; | |
echo $this->Html->link('French', array_merge($parsed, ['lang' => 'fr'])); | |
?> |
NewerOlder