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
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 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 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 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 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 | |
BRANCH=$(git symbolic-ref --short HEAD) | |
if echo $BRANCH | grep -q master; then | |
echo no master pushing | |
exit 1 | |
fi | |
args="" | |
nopr=0 | |
for arg in "$@"; do |
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/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 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 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 |
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
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 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
from builtins import __xonsh_env__ | |
from subprocess import check_output, PIPE, CalledProcessError | |
from xonsh.tools import get_sep, XonshError | |
from os import listdir | |
from os.path import exists as pexists, join as pjoin, isfile | |
from collections import defaultdict, OrderedDict | |
def _branch_status(cwd=None): | |
branch = None | |
dirty = 0 |
NewerOlder