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
| ❯ cat compose.yaml | |
| services: | |
| homeassistant: | |
| container_name: homeassistant | |
| image: "ghcr.io/home-assistant/home-assistant:beta" | |
| volumes: | |
| - ./config:/config | |
| - /etc/localtime:/etc/localtime:ro | |
| - /run/dbus:/run/dbus:ro | |
| # devices: |
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
| local group = vim.api.nvim_create_augroup('OoO', {}) | |
| local function au(typ, pattern, cmdOrFn) | |
| if type(cmdOrFn) == 'function' then | |
| vim.api.nvim_create_autocmd(typ, { pattern = pattern, callback = cmdOrFn, group = group }) | |
| else | |
| vim.api.nvim_create_autocmd(typ, { pattern = pattern, command = cmdOrFn, group = group }) | |
| end | |
| end |
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
| use base64::{ | |
| engine::{general_purpose, GeneralPurpose}, | |
| Engine as _, | |
| }; | |
| use rand::{thread_rng, Rng as _}; | |
| use sha2::{Digest as _, Sha256}; | |
| const B64: GeneralPurpose = general_purpose::URL_SAFE_NO_PAD; | |
| #[derive(Debug, Clone, Copy, PartialEq, Eq)] |
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
| [$Version] | |
| update_info=kwinrules.upd:replace-placement-string-to-enum,kwinrules.upd:use-virtual-desktop-ids,kwinrules.upd:remove-placement-cascade | |
| [1] | |
| Description=Overwatch | |
| clientmachine=localhost | |
| noborder=true | |
| noborderrule=2 | |
| position=2560,0 | |
| size=3380,1440 |
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
| #pragma once | |
| #include "color.h" | |
| #define TEAL { HSV_TEAL } | |
| #define GOLD { HSV_GOLDENROD } | |
| #define ORNG { HSV_ORANGE } | |
| #define BLCK { HSV_ORANGE } | |
| #define KEYS_TO_LEDS( \ |
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
| diff --git a/src/runtime/crash_test.go b/src/runtime/crash_test.go | |
| index e0c0bac892..7bbe19aafb 100644 | |
| --- a/src/runtime/crash_test.go | |
| +++ b/src/runtime/crash_test.go | |
| @@ -8,7 +8,6 @@ import ( | |
| "bytes" | |
| "flag" | |
| "fmt" | |
| - "internal/testenv" | |
| "os" |
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/sh | |
| function convert() { | |
| local fp="$(realpath "$1")" | |
| local d="" | |
| if [ -d "$fp" ]; then | |
| d="$fp" | |
| fp="$d/*.xlsx" | |
| else | |
| d="$(dirname "$fp")" |
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/sh | |
| set -uf | |
| # set -x | |
| # inspired by https://gist.github.com/dpino/6c0dca1742093346461e11aa8f608a99 | |
| NS="${NS-vpnns}" | |
| if grep -q "$NS /sys" /proc/self/mounts; then | |
| echo "already running inside the namespace" |
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
| server { | |
| listen 443 ssl http2; | |
| listen [::]:443 ssl http2; | |
| server_name go.oneofone.dev; | |
| include conf.d/ssl.conf; # config with ssl config | |
| location ~* /([^/]+) { # match the first part of the path, we only need that | |
| set $pkg "$1"; | |
| set $fullURI '$server_name$uri'; | |
| set $pkgURI '$server_name/$pkg'; |
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 | |
| set -e | |
| EDITOR="code --new-window --wait " | |
| GOPATH="$(go env GOPATH)" | |
| BASE="$GOPATH/src/tmp/" | |
| ARG=${1:-go} | |
| if [ $ARG = "-d" ]; then | |
| echo -n "delete '$BASE'? " && read Y |
NewerOlder