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
# Disabled flag, used to check and enable or disable login provider. | |
# 1 = Disabled credential provider | |
# 0 = Enabled credential provider | |
$DisbaleFlag = "1" | |
# Registry keys for removing Password and Pin login. | |
$registryKeys = | |
@( | |
[pscustomobject]@{Name="PasswordProvider";Location="HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\Credential Providers\{60b78e88-ead8-445c-9cfd-0b87f74ea6cd}";Key="Disabled";Value="1"}, | |
# [pscustomobject]@{Name="PINLogonProvider";Location="HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\Credential Providers\{cb82ea12-9f71-446d-89e1-8d0924e1256e}";Key="Disabled";Value="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
#!/usr/bin/env python | |
import glob, os | |
import tomllib | |
data = {} | |
for file in glob.glob("build/env.d/*.env"): | |
with open(file, "rb") as f: | |
for k, v in tomllib.load(f).items(): |
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/10-keyboard-leds.rules | |
ACTION=="add", SUBSYSTEM=="leds", DEVPATH=="/devices/platform/tuxedo_keyboard/leds/rgb:kbd_backlight_2", RUN+="/usr/local/bin/keyboard-leds.sh" |
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
set interfaces openvpn vtun0 mode client | |
set interfaces openvpn vtun0 remote-host <remote-host> | |
set interfaces openvpn vtun0 remote-port <remote-port> | |
set interfaces openvpn vtun0 persistent-tunnel | |
set interfaces openvpn vtun0 authentication username <username> | |
set interfaces openvpn vtun0 authentication password <password> | |
set interfaces openvpn vtun0 encryption aes256 | |
set interfaces openvpn vtun0 hash sha512 |
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
package uisim | |
import ( | |
"fmt" | |
"image/color" | |
"reflect" | |
"strconv" | |
"fyne.io/fyne/v2" | |
"fyne.io/fyne/v2/container" |
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 gpiod | |
import spidev | |
from maxim import Type, Output, RegisterAddress, FastStatus, GlobalError, Config1, Config2, Mask, Interrupt, cmd | |
import time | |
#if __name__ == '__main__': | |
chip_b = gpiod.chip(1) | |
chip_c = gpiod.chip(2) | |
chip_h = gpiod.chip(7) |
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
# Guide takend from | |
# https://computingforgeeks.com/how-to-install-wildfly-jboss-on-debian-linux/ | |
sudo apt update | |
sudo apt install openjdk-17-jdk | |
export WILDFLY_RELEASE="26.0.1" | |
wget https://github.com/wildfly/wildfly/releases/download/${WILDFLY_RELEASE}.Final/wildfly-${WILDFLY_RELEASE}.Final.tar.gz | |
sudo tar xvf wildfly-${WILDFLY_RELEASE}.Final.tar.gz -C /opt | |
sudo mv /opt/wildfly-${WILDFLY_RELEASE}.Final /opt/wildfly | |
sudo groupadd --system wildfly |
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
STM32MP> mmc part | |
Partition Map for MMC device 0 -- Partition Type: EFI | |
Part Start LBA End LBA Name | |
Attributes | |
Type GUID | |
Partition GUID | |
1 0x00000022 0x00000221 "fsbl1" | |
attrs: 0x0000000000000000 |
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
# Put contents of $BUILDROOT/output/images onto Debian SD in /home/debian | |
# Run from /home/debian | |
cat<<__EOF__ | sudo sfdisk -f /dev/mmcblk1 | |
label: gpt | |
label-id: 8180153F-48CF-4520-BB44-AF0F881C8679 | |
device: /dev/sdc | |
unit: sectors | |
first-lba: 34 | |
/dev/mmcblk1p1 : start= 34, size= 412, type=0FC63DAF-8483-4772-8E79-3D69D8477DE4, uuid=7AB96C94-9AAA-4736-A97F-4950BC078562, name="fsbl1" |
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 | |
resourceGroup="my-resource-group" | |
sites=("test.com" "test.net" "test.org") | |
mailExchanges=("aspmx4.googlemail.com" "alt2.aspmx.l.google.com" "aspmx2.googlemail.com" "aspmx3.googlemail.com" "aspmx.l.google.com" "alt1.aspmx.l.google.com" "aspmx5.googlemail.com") | |
preferences=( 30 20 30 30 10 20 30 ) | |
for site in ${sites[@]}; do | |
for i in ${!mailExchanges[@]}; do | |
az network dns record-set mx add-record \ |
NewerOlder