Skip to content

Instantly share code, notes, and snippets.

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'
@Peelz
Peelz / pi zero W ap setup.md
Last active May 10, 2022 15:10 — forked from ysr23/pi zero W ap setup.md
Raspberry Pi Zero W Access Point (ap) setup

These are my own personal notes on how i setup a Pi Zero W as an access points it is a blatant copy of this: https://gist.github.com/tcg/0c1d32770fcf6a0acf448b7358c5d059 but is just missing a couple of things from: http://imti.co/post/145442415333/raspberry-pi-3-wifi-station-ap and like tcg, this is not intended as a guide but notes as i will invariably have to rebuild this sometime and i have broken biscuits for brains.

1. making the pi zero accesible from a computer

this is really just the same info as here https://gist.github.com/gbaman/975e2db164b3ca2b51ae11e45e8fd40a

  • flash raspbian lite to sd card
  • unplug and replug sd card adapter if necessary to see 'boot' drive
  • edit cmdline.txt add: modules-load=dwc2,g_ether after the word rootwait
  • edit config.txt and add dtoverlay=dwc2 to the end of the file
  • create a blank file called ssh