Don't forget to modify the __inputs
key to match your data source setup. You should also replace the
string your.instance.here
with the instance name associated with your metrics.
#!/usr/bin/env bash | |
# vim-recover: recover all the orphan swap files | |
# @version: 0.5b | |
# @require: set directory=~/.config/nvim/swap_files// | |
# @author: Giuseppe Ricupero | |
# @e-mail: [email protected] | |
set -euo pipefail | |
IFS=$'\n\t' | |
vim_flavour=/usr/bin/vim |
@echo off | |
setlocal ENABLEDELAYEDEXPANSION | |
for /F %%i in ('adb shell settings get global private_dns_mode') do set dnsmode=%%i | |
for /F %%i in ('adb shell settings get global private_dns_specifier') do set dnshost=%%i | |
echo current dns setting is: !dnsmode! | |
if "!dnsmode!"=="hostname" ( | |
echo current dns host is: !dnshost! | |
echo turning off private dns... | |
adb shell settings put global private_dns_mode off |
rem to disable private dns | |
adb shell settings put global private_dns_mode off | |
rem to enable private dns with hostname (example with dns.adguard.com) | |
adb shell settings put global private_dns_mode hostname | |
adb shell settings put global private_dns_specifier dns.adguard.com |
import android.security.keystore.KeyGenParameterSpec; | |
import android.security.keystore.KeyProperties; | |
import android.util.Base64; | |
import java.io.IOException; | |
import java.nio.charset.StandardCharsets; | |
import java.security.InvalidAlgorithmParameterException; | |
import java.security.InvalidKeyException; | |
import java.security.KeyStore; | |
import java.security.KeyStoreException; |
# This simple script is setting up a Alpine Linux installation in a chroot. | |
# chroot will be placed in the current working directory. | |
# | |
# Most parts of this script are written down at | |
# http://wiki.alpinelinux.org/wiki/Setting_up_the_build_environment_in_chroot | |
# | |
# Licensed under GPLv2 | |
# | |
# Copyright (c) 2011-2019 Fabian Affolter <fabian at affolter-engineering.ch> |
#!/bin/bash | |
### | |
# Requires Null Keyboard https://play.google.com/store/apps/details?id=com.wparam.nullkeyboard | |
# Author: Volodymyr Shymanskyy | |
### | |
brightness=$(adb shell settings get system screen_brightness) | |
ime=$(adb shell settings get secure default_input_method) |
This is a tutorial for building and installing the latest release version (0.7.3 as of writing) of "ZFS on Linux" on a Raspberry Pi 3 running Raspbian Stretch. Specifically, we'll be building the dkms
version of ZoL, which saves you the hassle of re-compiling the kernel modules after every kernel update. Even though ZoL added support for building dkms packages for debian in version 0.7.3, the build process on a Raspberry Pi 3 is not quite straight-forward. Hopefully, these instructions will make it easier.
- Install the build dependencies.
$ sudo apt-get update
$ sudo apt-get install build-essential autoconf libtool gawk alien fakeroot
$ sudo apt-get install dkms zlib1g-dev uuid-dev libattr1-dev libblkid-dev libselinux-dev libudev-dev libssl-dev parted lsscsi wget ksh
This Gist confirms the Linked Identity in my OpenPGP key which links it to this Github account.
[Verifying my OpenPGP key: openpgp4fpr:653909a2f0e37c106f5faf546c8857e0d8e8f074]
This is an OpenPGP proof. For details check out https://metacode.biz/openpgp/proofs
<!-- add this to /var/ossec/etc/shared/agent.conf --> | |
<localfile> | |
<log_format>syslog</log_format> | |
<location>/var/log/fail2ban.log</location> | |
</localfile> |