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/perl -w | |
# act as a KSysGuard sensor | |
# provides NVIDIA GPU info via `nvidia-settings` | |
# Usage (e.g. add gpu temperature sensor) | |
# 1. save this file, make sure it has a exec permission | |
# 2. in KSysGuard's menu, open `File` -> `Monitor Remote Machine` | |
# 3.1 in new dialog, type `Host` whatever you want | |
# 3.2 set `Connection Type` to `Custom command` |
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
import 'package:flutter/material.dart'; | |
class SettingsSectionTitle extends StatelessWidget { | |
final String title; | |
const SettingsSectionTitle({ | |
Key? key, | |
required this.title, | |
}) : super(key: key); |
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
import 'package:flutter/material.dart'; | |
class SegmentedControlFormField extends FormField<int> { | |
final List<String> options; | |
final double textScaleFactor; | |
SegmentedControlFormField({ | |
this.options, | |
this.textScaleFactor, | |
FormFieldSetter<int> onSaved, |
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 python2 | |
#This script finds the compressed data embedded in a Dell BIOS update program | |
#and decompresses it to an apparent HDR file. The main data seems to start | |
#at offset 0x58 in the HDR FWIW | |
import zlib | |
import sys | |
import re |
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
check if exist | |
/dev/anbox-binder | |
if it doesn't, anbox-binder don't work | |
sudo apt install anbox-ubuntu-touch | |
sudo wget -q --show-progress -O /home/phablet/anbox-data/android.img http://cdimage.ubports.com/anbox-images/android-armhf-64binder.img | |
touch /home/phablet/anbox-data/.enable | |
chmod -R o+wrx /home/phablet/anbox-data/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
check if exist | |
/dev/anbox-binder | |
if it doesn't, anbox-binder don't work | |
sudo apt install anbox-ubuntu-touch | |
sudo wget -q --show-progress -O /home/phablet/anbox-data/android.img http://cdimage.ubports.com/anbox-images/android-armhf-64binder.img | |
touch /home/phablet/anbox-data/.enable | |
chmod -R o+wrx /home/phablet/anbox-data/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
import 'dart:typed_data'; | |
// Adapted from https://github.com/pithos/pithos/blob/master/pithos/pandora/blowfish.py | |
class BlowfishException implements Exception { | |
final dynamic message; | |
BlowfishException(this.message); | |
} |
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
[Service] | |
ExecStart= | |
ExecStart=/usr/bin/caddy run --environ --config /etc/caddy/Caddyfile.json | |
ExecReload= | |
ExecReload=/usr/bin/caddy reload --config /etc/caddy/Caddyfile.json |
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
test( | |
'should $TITLE$', | |
() async { | |
// Arrange | |
$ARRANGE$ | |
// Act | |
$ACT$ | |
// Assert |
OlderNewer