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 main | |
import ( | |
"encoding/base64" | |
"encoding/hex" | |
"fmt" | |
"github.com/charmbracelet/log" | |
pb "github.com/meshnet-gophers/meshtastic-go/meshtastic" | |
"github.com/meshnet-gophers/meshtastic-go/mqtt" | |
"github.com/meshnet-gophers/meshtastic-go/radio" |
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 main | |
import ( | |
pb "buf.build/gen/go/meshtastic/protobufs/protocolbuffers/go/meshtastic" | |
"crypto/aes" | |
"crypto/cipher" | |
"encoding/base64" | |
"encoding/binary" | |
"encoding/hex" | |
"fmt" |
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 json | |
import os.path | |
import frontmatter | |
from slugify import slugify | |
path_to_json_files = 'arms-and-security-fair-exhibitors/data/' | |
json_file_names = [filename for filename in os.listdir(path_to_json_files) if filename.endswith('.json')] | |
for json_file_name in json_file_names: |
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
{ | |
"obsidian-default-theme@@color-user-request@@dark": "#6272A4", | |
"blue-topaz-theme@@font-text-theme": "Archivo,Bookerly,'Inter', 'Segoe UI','霞鹜文楷 GB', 'LXGW WenKai', 'Segoe UI Emoji',var(--font-interface)", | |
"blue-topaz-theme@@font-family-h5": "Archivo,Bookerly, 'LXGW WenKai', var(--font-interface)", | |
"blue-topaz-theme@@font-family-h6": "Archivo,Bookerly, 'LXGW WenKai', var(--font-interface)", | |
"blue-topaz-theme@@font-family-folder-file-title": "Archivo,Arlrdbd, 'Source Han Sans', 'Noto Sans CJK', 'Source Sans Pro', 'Segoe UI Emoji', sans-serif", | |
"blue-topaz-theme@@font-monospace-theme": "'FiraCode Nerd Font','JetBrains Mono', Consolas, Monaco, '等距更纱黑体 SC', 'Source Han Mono', 'Microsoft Yahei Mono', 'Segoe UI Emoji', 'Microsoft YaHei', 'Source Code Pro', monospace", | |
"blue-topaz-theme@@font-family-tag": "Archivo,Bookerly, 'Microsoft YaHei', STzhongsong, STSong, 'Segoe UI Emoji', Serif", | |
"blue-topaz-theme@@font-family-strong": "Archivo,Bookerly,'Inter', 'Segoe UI', 'LXGW WenKai Screen', 'LXGW WenKa |
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 main | |
import ( | |
"encoding/json" | |
"io" | |
"net/http" | |
"os" | |
"path" | |
"text/template" | |
"time" |
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
/* | |
DESCRIPTION: This is a file that after installing a greasemonkey | |
extension can be used to convert imgur to any rimgo instance. | |
NOTE: I might change this really often because instances may fail. | |
---- | |
Copyright (C) 2021 Zortazert and other contributors | |
This program is free software: you can redistribute it and/or modify |
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 bash | |
set -o errexit | |
set -o nounset | |
set -o pipefail | |
if [[ "${TRACE-0}" == "1" ]]; then | |
set -o xtrace | |
fi | |
if [[ "${1-}" =~ ^-*h(elp)?$ ]]; then |
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
general: | |
debug : False # Debug mode, only for development | |
instance_name : "searx" # displayed name | |
contact_url: False # mailto:contact@example.com | |
enable_stats: False # activate /stats page - note: it may leak usage data | |
brand: | |
git_url: https://github.com/searx/searx | |
git_branch: master | |
issue_url: https://github.com/searx/searx/issues |
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: '2' | |
services: | |
zookeeper: | |
image: "confluentinc/cp-zookeeper:5.4.0" | |
hostname: zookeeper | |
ports: | |
- '32181:32181' | |
environment: | |
ZOOKEEPER_CLIENT_PORT: 32181 | |
ZOOKEEPER_TICK_TIME: 2000 |
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
function ezclone() { | |
# assumes cloning from a git@ url... | |
# clone to git_src by default | |
repo_base=~/git_src | |
if [[ "$1" == "golang" ]]; then | |
repo_base=~/go/src | |
shift | |
fi |
NewerOlder