Skip to content

Instantly share code, notes, and snippets.

View roz3x's full-sized avatar
πŸ‘¨β€πŸŽ“
πŸ«΅πŸ‘Œ

shivang upadhyay roz3x

πŸ‘¨β€πŸŽ“
πŸ«΅πŸ‘Œ
  • IBM
  • banglore
  • 20:15 (UTC -12:00)
  • X @oroz3x
View GitHub Profile
@roz3x
roz3x / cpp.json
Created June 29, 2025 16:17
codeforces c++ plain snippet
{
// go to Ctrl-p > configure snnippets > c++
// then copy paste this file
// use keyword `omg` to trigger
"plain ahh cp snippet": {
"prefix": ["omg"],
"body": ["#include <bits/stdc++.h>\nusing namespace std;\n\nvoid solve() {\n\t$0\n}\n\nint32_t main(){\n\tint t;cin>>t;while(t--) solve();\n}\n"],
"description": "chads only template"
}
}
@roz3x
roz3x / gist:5088b370b1288e13fc6b61a75f21da4c
Last active May 12, 2024 17:34
zig compile on Mac M1
#!/bin/sh
# make sure you have homebrew already installed
brew installed llvm
git clone https://github.com/ziglang/zig.git
cd zig
mkdir -p build
cd build
# for fast build
@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')
Loading
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"
)