Skip to content

Instantly share code, notes, and snippets.

Planner

name: planner purpose: Turn an approved task into a clear, executable implementation plan. model: strong thinking: high tools: [read, search, git]

do:

include current-theme.conf
background_opacity 0.9
font_family MesloLGS NF
bold_font auto
italic_font auto
bold_italic_font auto
tab_bar_style powerline
func GetEd25519PrivateFromString(i string) (ed25519.PrivateKey, error) {
//pemBlock, rest := pem.Decode([]byte(i))
//fmt.Println(rest)
//fmt.Printf("%v\n", pemBlock)
//fmt.Println(len(pemBlock.Bytes))
//priv, err := x509.ParsePKCS8PrivateKey(pemBlock.Bytes)
//exportKey := priv.(ed25519.PrivateKey)
//
//fmt.Println(priv)
#!/usr/bin/env bash
sudo apt update; sudo apt install build-essential libssl-dev zlib1g-dev \
libbz2-dev libreadline-dev libsqlite3-dev curl \
libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev
curl https://pyenv.run | bash
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo 'command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
@Peelz
Peelz / install.sh
Created May 5, 2023 15:31
install uxplay
sudo apt install install gstreamer1.0-libav uxplay
# allow firewall
# mDns
sudo ufw allow 5353
# connection in this example ill use 35000 and uxplay need n+3 port, then i've to allow
# 35000, 35001, 35002
sudo ufw allow 35000:35002/tcp
sudo ufw allow 35000:35002/udp
@Peelz
Peelz / rules.yaml
Last active May 22, 2023 03:49
Solaar rules
%YAML 1.3
---
- Rule:
- MouseGesture: Mouse Right
- KeyPress:
- [Super_L, Control_L, Up]
- click
- Rule:
- MouseGesture: Mouse Left
- KeyPress:
#!/usr/bin/env bash
basedir=$(pwd)
projs=(
Commands.scala
Dependencies.scala
LibDefs.scala
build.properties
plugins.sbt
@Peelz
Peelz / self-signed-certificate-with-custom-ca.md
Created June 23, 2022 17:59 — forked from fntlnz/self-signed-certificate-with-custom-ca.md
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
%YAML 1.3
---
- Rule:
- MouseGesture: Mouse Up
- KeyPress: [Super_L, Control_L, Down]
- Rule:
- MouseGesture: Mouse Down
- KeyPress: [Super_L, Control_L, Up]
- Rule:
- Feature: MOUSE GESTURE

install

git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm

create file ~/.tmux.conf

# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'