Skip to content

Instantly share code, notes, and snippets.

View souhaiebtar's full-sized avatar


View GitHub Profile
souhaiebtar / links.txt
Created May 24, 2024 08:09
souhaiebtar / package-list.txt
Last active May 9, 2024 05:52
[xiaomi openwrt package immortal-wrt] packages immortalwrt openwrt #openwrt #xiaomi
-uboot-envtools base-files block-mount busybox ca-bundle default-settings-chn dnsmasq-full dropbear firewall4 fstools ipv6helper kmod-gpio-button-hotplug kmod-leds-gpio kmod-mt7603 kmod-mt76x2 kmod-nf-nathelper kmod-nf-nathelper-extra kmod-nft-offload libc libgcc libustream-openssl logd luci luci-app-opkg luci-compat luci-lib-base luci-lib-fs luci-lib-ipkg mtd netifd nftables opkg ppp ppp-mod-pppoe procd procd-seccomp procd-ujail uboot-envtools uci uclient-fetch urandom-seed urngd wpad-openssl luci-proto-wireguard luci-app-sqm luci-theme-argon collectd luci-app-statistics iperf3 irqbalance htop curl ca-certificates luci-app-ddns-go
souhaiebtar / links_links_08_may_2024_workLaptop-content-voice-ai-whisper-translate-github-projects.json
Created May 8, 2024 19:44
[links_08_may_2024_workLaptop]links_08_may_2024_workLaptop #links #voice #ai #whisper #translate
souhaiebtar / transcode_video_ffmpeg.ps1
Created May 8, 2024 18:07
[transcode-compress-video-using-ffmpeg]transcode/compress video using ffmpeg #ffmpeg #powershell
function to65 {
/usr/lib/jellyfin-ffmpeg/ffmpeg \
-c:v h264_qsv \
-i "$1" \
-map 0 -c copy \
-c:v hevc_qsv -preset slow -global_quality 22 -look_ahead 1 \
$2 \
"${1%.*} x265.mkv";
souhaiebtar / links_05_03_2024.txt
Created May 3, 2024 22:24
[links_05_03_2024]links_05_03_2024 #links
souhaiebtar / powershell_starship_profile.txt
Created May 3, 2024 20:14
[powershel-starship profile] powershell starship profile #powershell #starship #shell
1.6.3133.0 Microsoft.WinGet.Client PSGallery PowerShell Module for the Window…
2.5.19 PSFzf PSGallery A thin wrapper around Fzf (https…
2.2.2 PSReadLine PSGallery Great command line editing in th…
0.11.0 Terminal-Icons PSGallery PowerShell module to add file ic…
# create symbolic link
new-item -Path litexl -ItemType SymbolicLink -Value C:\Users\starhoun\tools\litexl\lite-xl.exe
souhaiebtar /
Last active May 13, 2024 10:53
[python cheat] python cheatsheet #python #cheatsheet
  • create a virtual environment python -m venv openCv

  • install python package that are in requirements.txt pip install -r requirements

  • install python package through a proxy (replace by your proxy address) pip install --proxy="" install -r requirements.txt

souhaiebtar / get-all-permission-to-folder.ps1
Created April 18, 2024 08:13
[get all permission to folder using powershell] get all permission to folder using powershell #Powershell #Windows #Permissions
$ACLPath = "D:\Users\starhoun"
$Identity = "Users"
$FileSystemRight = "Modify"
$Propagation = "0"
$inheritance = "3"
$RuleType = "Allow"
Try {
$ACL = Get-Acl -Path $ACLPath
$AccessRule = New-Object System.Security.AccessControl.FileSystemAccessRule($Identity,$FileSystemRight,$inheritance,$Propagation,$RuleType)
souhaiebtar / symbolicLinkInWindows.ps1
Created April 8, 2024 08:44
[symbolic link in windows using powershell] symbolic link in windows using powershell #ln #SymblicLink #windows #powershell
# let say you have a folder called " C:\Users\PROFILENAME\cli " that you add to your PATH environment variable
# you can `cd` to this folder (cd C:\Users\PROFILENAME\cli) and run the next command
# now you can access run `lite-xl` program from powershell from whaterver directory you are in
new-item -Path litexl -ItemType SymbolicLink -Value C:\Users\starhoun\tools\litexl\lite-xl.exe
souhaiebtar / links_240404.txt
Created April 4, 2024 15:30
[link_240404] link_240404 #links #windows