Skip to content

Instantly share code, notes, and snippets.

View MindPatch's full-sized avatar
🕹️
Take it easy :D

Khaled MindPatch

🕹️
Take it easy :D
View GitHub Profile
@MindPatch
MindPatch / layout.py
Created March 21, 2021 18:40
change layout i3
from os import popen
lang = [
'us',
'ar'
]
def check():
v = popen('setxkbmap -query | grep layout').read()
return v.split(':')[1].replace(' ','').rstrip()
@MindPatch
MindPatch / config
Last active March 27, 2021 18:00
my i3 config
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
set $mod Mod4
set $alt Mod1
# Configure border style <normal|1pixel|pixel xx|none|pixel>
new_window pixel 1
new_float normal
# Hide borders
hide_edge_borders none
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
#
# This config file uses keycodes (bindsym) and was written for the QWERTY
# layout.
#
# To get a config file with the same key positions, but for your current
# layout, use the i3-config-wizard
#
@MindPatch
MindPatch / .vimrc
Last active June 14, 2021 20:41
my vimrc
"set laststatus=2 "
call plug#begin('~/.vim/plugged')
Plug 'https://github.com/junegunn/vim-github-dashboard.git'
Plug 'junegunn/vim-easy-align'
Plug 'arcticicestudio/nord-vim'
set nocompatible " be iMproved, required
filetype off " required
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Vundle For Managing Plugins
@MindPatch
MindPatch / ffmpeg_davinci_resolve.sh
Created January 31, 2021 00:10
ffmpeg_davinci_resolve.sh
ffmpeg -i $1 -vcodec dnxhd -acodec pcm_s16le -s 1920x1080 -r 30000/1001 -b:v 36M -pix_fmt yuv422p -f mov imhere.mov
@MindPatch
MindPatch / requester.py
Last active January 24, 2021 00:42
http requests class
#!/usr/bin/env python3
# author: Khaled Nassar @knassar702
# from scant3r project - https://github.com/knassar702/scant3r
from requests import get,post,put,packages # http request module
from fake_useragent import UserAgent # random useragents module
from requests_toolbelt.utils import dump # dump request/response body/header
import sys # system module
ua = UserAgent(verify_ssl=False,use_cache_server=True)
packages.urllib3.disable_warnings()
#!/usr/bin/env python3
import socket
from threading import Thread
# Config
#------------
host = 'localhost'
port = 4649
#------------