Skip to content

Instantly share code, notes, and snippets.

@roz3x
roz3x / mt.py
Created August 24, 2022 12:12
typing practise words
import os
wordlist = [
"caused",
"ultimately",
"engineering",
"automatically",
"dimensional",
"warranty",
@roz3x
roz3x / .tmux.conf
Last active May 15, 2021 18:22
tmux config
unbind C-b
set-option -g prefix C-a
# Base16 Styling Guidelines:
base00=default # - Default
base01='#151515' # - Lighter Background (Used for status bars)
base02='#202020' # - Selection Background
base03='#909090' # - Comments, Invisibles, Line Highlighting
base04='#505050' # - Dark Foreground (Used for status bars)
base05='#D0D0D0' # - Default Foreground, Caret, Delimiters, Operators
@roz3x
roz3x / sys_tray.js
Created January 15, 2021 17:49
brighness config
const { app, Menu, Tray } = require('electron');
const {exec } = require('child_process');
let tray = null ;
app.whenReady().then(()=> {
tray = new Tray('/home/roz/downloads/icon.jpeg')
const contextMenu = Menu.buildFromTemplate([
{label: '1%' , click(){
exec("xbacklight -set 1");
}} ,{label: '5%' , click(){
exec("xbacklight -set 5");
@roz3x
roz3x / vimrc
Last active September 30, 2021 07:24
" vim-bootstrap 2020-11-25 12:57:59
"*****************************************************************************
"" Vim-Plug core
"*****************************************************************************
let vimplug_exists=expand('~/.vim/autoload/plug.vim')
if has('win32')&&!has('win64')
let curl_exists=expand('C:\Windows\Sysnative\curl.exe')
else
let curl_exists=expand('curl')
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
=== RUN TestDecodeIETF
TestDecodeIETF: ietf-28_test.go:25: Public Flags: 0
CID: 8e20dc50ed17bacb
Version: ff00001c
Packet Number: 0
Message Authentication Hash:
Frame Type: 0
Stream ID: 0
Data Length: 0
Tag:
@roz3x
roz3x / quic_testing.go
Last active June 10, 2020 16:59
quic sample vector decoding
package main
import (
"bytes"
"encoding/binary"
"encoding/hex"
"fmt"
"github.com/marten-seemann/qtls"
)
packet : �Q046PX�9i�6�&�Q-��,��KU�CHLO�PAD�SNI�STKSNO7VER;CCSKNONCkAEADoUAID�SCID�TCID�PDMD�SMHL�ICSL�NONP�PUBS�MIDS�SCLS�KEXS�XLCTCSCTCOPT
CCRTIRTT CFCW$SFCW(-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------www.google.comp�e8قE��(� �ј�Yr��NN��������m�r�����6��p.�H>Q046�`����~퀆���^nRf00000000�*J���ɬ�"ZoA���^AESGChrome/]�۵gô1etj;dC255�8<��rǑ�_���{A����*ݦ�?��e������wd��4
��C5RTOACKD�8
��C`2˒�AM�ҷ�`
package main
import (
"fmt"
_"sync"
"log"
"net/http"
"io"
"os/exec"
"os"