Skip to content

Instantly share code, notes, and snippets.

View Gictorbit's full-sized avatar
😎

Viktor Ghorbali Gictorbit

😎
View GitHub Profile
@Gictorbit
Gictorbit / allpersiangirlnames.md
Created May 25, 2023 17:58
all persian girl names

آ

آبانا آباندخت آبگین آبگینه آبنوس آبین آبینه آپام آپاما

@Gictorbit
Gictorbit / allperianboynames.md
Created May 25, 2023 16:44
all persian boy names

آ

آبان آبتين آپتين آتا آتبين آتريداد آتمين آتور آتيلا

@Gictorbit
Gictorbit / cloudflareworker.js
Created March 8, 2023 11:57
cloudflare worker code
addEventListener(
"fetch", event => {
let url = new URL(event.request.url);
url.hostname = "Your-Replit-Address";
url.protocol = "https";
let request = new Request(url, event.request);
event.respondWith(
fetch(request)
)
}
@Gictorbit
Gictorbit / workflow.md
Last active November 12, 2022 07:24
github kanban workflow

Labels(Tags):

  • feature
  • user story
  • task
  • unit test
  • document
  • bug
  • foolad project
  • refactor
  • config
@Gictorbit
Gictorbit / attak-command.txt
Last active June 12, 2022 07:34
ssh attak
echo "attak,ip,city,location" > attak.txt && while read -r line; do myvar=$(echo "$line" | cut -d " " -f2) && echo "$line,$(geoiplookup "$myvar"|cut -d":" -f2)" || break; done<ipblock.txt | sed 's/\s/,/g'| sed 's/,,/,/g' >> attak.txt
@Gictorbit
Gictorbit / gpu-passthrough.md
Created March 25, 2022 19:20 — forked from MaxXor/gpu-passthrough.md
Arch GPU Passthrough Summary

Arch Linux GPU-Passthrough

A quick guide on how to setup a GPU-Passthorugh. Below are some of my Resources

The Arch Wiki is the goto place for additional information and performance tweaks like CPU-Pinning.

Requirements

  • IGPU or second dedicated GPU for Host system (unless you want to go the hard way and use one GPU for HOST and GUEST)
func (w *WebRtcServer) CreateNewPeerConnection(offer webrtc.SessionDescription, userID uint32, sessionKey string) (
*ClientConnection, webrtc.SessionDescription, error) {
answer := webrtc.SessionDescription{}
if len(offer.SDP) == 0 || offer.Type != webrtc.SDPTypeOffer {
return nil, answer, errors.New("invalid offer")
}
if len(sessionKey) == 0 {
return nil, answer, errors.New("invalid user token")
}
@Gictorbit
Gictorbit / digikala.py
Last active March 19, 2021 22:04
digikala login and print personal information
#! /usr/bin/env python3
import requests
from bs4 import BeautifulSoup
from pprint import pprint
from furl import furl
import sys
from prettytable import PrettyTable
import getpass
def main():
@Gictorbit
Gictorbit / dock.theme
Created February 20, 2021 13:51
plank mac os theme
#This file auto-generated by Plank.
#2019-09-02T06:32:29+0000
[PlankTheme]
#The roundness of the top corners.
TopRoundness=10
#The roundness of the bottom corners.
BottomRoundness=10
#The thickness (in pixels) of lines drawn.
LineWidth=1
@Gictorbit
Gictorbit / gtk.css
Last active March 29, 2021 04:31
GNOME 3: Tweak for thinner window title bars (~/.config/gtk-3.0/gtk.css)
window.ssd headerbar.titlebar {
min-height: 0;
padding-top: 1.4px;
padding-bottom: 1.4px;
padding-left:10px;
padding-right:10px;
}
window.ssd headerbar.titlebar button.titlebutton {
min-height: 0;