This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 \ |
This file contains hidden or 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
| export BASE=/var/lib/build | |
| cd $BASE | |
| mkdir -p $BASE/bbb/build | |
| cd $BASE | |
| git clone -b dunfell git://git.yoctoproject.org/poky.git poky-dunfell | |
| cd poky-dunfell | |
| git clone -b dunfell git://git.openembedded.org/meta-openembedded | |
| git clone -b dunfell https://github.com/meta-qt5/meta-qt5.git | |
| git clone -b dunfell git://git.yoctoproject.org/meta-security.git | |
| git clone -b dunfell https://github.com/jumpnow/meta-jumpnow.git |
This file contains hidden or 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 | |
| DIR=~/workspaces/kicad | |
| REPOS=('symbols' 'footprints' '3dmodels') | |
| for i in "${REPOS[@]}" | |
| do | |
| echo git -C $DIR/$i "$@" | |
| git -C $DIR/$i "$@" |
This file contains hidden or 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
| # This is intended to be copied and pasted to a console, not executed as a script... for now. | |
| # Install some stuff, I use yay, you may use something else | |
| sudo pacman -S keepassxc rclone curl | |
| mkdir -p ~/.local/bin | |
| mkdir -p ~/.local/lib/private | |
| chmod 0700 ~/.local/lib/private | |
| # CREATE YOUR KEEPASSXC BASE IN ~/.local/lib/private/ |