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 main | |
| import ( | |
| "context" | |
| "fmt" | |
| "io/ioutil" | |
| "net/http" | |
| "os" | |
| "os/signal" | |
| "syscall" |
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
| Compiler Warnings: | |
| Src/main.c:202:28: format specifies type 'unsigned long' but the argument has type 'unsigned int' | |
| Src/main.c:206:31: format specifies type 'unsigned long' but the argument has type 'int' | |
| Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc.c:1374:26: equality comparison with extraneous parentheses | |
| Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.c:401:19: equality comparison with extraneous parentheses | |
| Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.c:405:24: equality comparison with extraneous parentheses | |
| Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.c:800:19: equality comparison with extraneous parentheses | |
| Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.c:804:24: equality comparison with extraneous parentheses |
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
| #define PWM_ELEMENTS 100 | |
| const uint32_t PWM_Buffer[PWM_ELEMENTS] = { // Sine Table | |
| 0, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39, 42, 45, 48, | |
| 50, 53, 56, 58, 61, 63, 66, 68, 70, 72, 75, 77, 79, 80, 82, 84, 86, | |
| 87, 89, 90, 91, 92, 94, 95, 96, 96, 97, 98, 98, 99, 99, 99, 99, 100, | |
| 99, 99, 99, 99, 98, 98, 97, 96, 96, 95, 94, 92, 91, 90, 89, 87, 86, | |
| 84, 82, 80, 79, 77, 75, 72, 70, 68, 66, 63, 61, 58, 56, 53, 50, 48, | |
| 45, 42, 39, 36, 33, 30, 27, 24, 21, 18, 15, 12, 9, 6, 3}; | |
| #define ADC_LEN 2 |
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
| % Document color scheme | |
| \definecolor{defColor}{RGB}{255,255,204} | |
| \definecolor{sysColor}{RGB}{204,229,255} | |
| \definecolor{appColor}{RGB}{204,229,255} | |
| % Fancy sections | |
| \newcommand\layertitle[2][defColor]{% | |
| \refstepcounter{section}% | |
| \addcontentsline{toc}{section}{\protect\numberline{\thesection}#2}% | |
| \sectionmark{#2}% |
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
| #!/usr/bin/env bash | |
| # This script will | |
| # 1. (Optionally) First snapshot your BTRFS /home subvolume as /resticbackup | |
| # 2. Generate a list of packages and backup as `pkglist' | |
| # 3. Backup the pacman cache directory | |
| # 4. Backup the users home directory (from the BTRFS snapshot or directly) | |
| # Try to load a credentials file | |
| source ./backup-creds &> /dev/null || true |
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
| # Configuration for Alacritty, the GPU enhanced terminal emulator | |
| # Any items in the `env` entry below will be added as | |
| # environment variables. Some entries may override variables | |
| # set by alacritty it self. | |
| env: | |
| # TERM env customization. | |
| # | |
| # If this property is not set, alacritty will set it to xterm-256color. |
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
| thetooth@alpine1 ~/a/scripts> sh mkimage.sh --tag edge \ | |
| --outdir ~/iso \ | |
| --arch x86_64 \ | |
| --repository http://dl-cdn.alpinelinux.org/alpine/edge/main \ | |
| --profile standard | |
| OK: 0 MiB in 0 packages | |
| fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | |
| v3.7.0-2817-g2ce590a52d [http://dl-cdn.alpinelinux.org/alpine/edge/main] | |
| OK: 5754 distinct packages available | |
| >>> mkimage-x86_64: Building standard |
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 dialog | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "io/ioutil" | |
| "github.com/gen2brain/raylib-go/raylib" | |
| "github.com/sirupsen/logrus" |
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
| 192.168.0.26 ansible_user=root ansible_password=password ansible_python_interpreter=/opt/local/bin/python |
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 seq | |
| import ( | |
| "fmt" | |
| "time" | |
| ) | |
| // DSN type for global ordering | |
| type DSN struct { | |
| Value uint64 |