Skip to content

Instantly share code, notes, and snippets.

View phibersoft's full-sized avatar

Adem phibersoft

  • Istanbul
View GitHub Profile
@phibersoft
phibersoft / adblock.txt
Last active June 19, 2025 14:53
Adblock Custom List
[Adblock Plus 2.0]
! Title: phiber's adblocking filters
! Expires: 48 hour
! Homepage: https://gist.github.com/phibersoft
! Licence: http://www.wtfpl.net/txt/copying/
! Exclusions
@@||youtube.com^$document
@@||chatgpt.com^$document
@@||meet.google.com^$document
@phibersoft
phibersoft / kubuntu-as-kali.md
Last active January 11, 2025 03:08
Kubuntu setup for CyberSec

Introduction

Typically, a VM or WSL setup is recommended for cybersecurity tasks. However, for those who love Kali and want to utilize its full potential, I’ve put together this documentation. You can set up Kubuntu just like Kali and take advantage of both Ubuntu's optimization and Kali's power.

Why not use Kali directly? Kali often causes issues with NVIDIA drivers, lacks secure boot support, and even the Kali developers themselves recommend not using it for daily tasks. This setup provides a more stable environment while retaining Kali’s strength.

Settings

NVIDIA Driver

@phibersoft
phibersoft / chrome-middle-click.sh
Last active January 15, 2025 02:35
Google Chrome Middle Click Scroll on Linux
#!/bin/bash
# Chrome Middle Click Script
# This script finds chrome executables and adds flags for middle click scrolling.
# Usage: sudo bash chrome-middle-click.sh
# Searching for files in /usr/share/applications starting with 'google-chrome'
echo "Searching for files in /usr/share/applications starting with 'google-chrome'..."
FILES=$(find /usr/share/applications -type f -name "google-chrome*")
if [[ -z "$FILES" ]]; then
@phibersoft
phibersoft / .zshrc
Last active January 13, 2025 01:07
My custom zsh functions
# custom aliases
alias cls='clear'
# custom functions
prdp() {
# 0x0000041F is TurQ layout
xfreerdp /dynamic-resolution +clipboard /cert:ignore /kbd:0x0000041F "$@"
}
refresh_history() {
@phibersoft
phibersoft / instructions.md
Created November 30, 2024 08:16
Arch Linux Kali Like Terminal Configuration

Install Required Dependencies

# Install ZSH
sudo pacman -S zsh-autosuggestions zsh-syntax-highlighting zsh

# Install OhMyZSH
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

# Install Plugins
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
@phibersoft
phibersoft / kali-zshrc
Last active November 29, 2024 01:41 — forked from noahbliss/kali-zshrc
Kali's default zshrc optimized for Arch
# ~/.zshrc file for zsh interactive shells.
# see /usr/share/doc/zsh/examples/zshrc for examples
# dont forget to run `sudo pacman -S zsh-autocompletions`
setopt autocd # change directory just by typing its name
#setopt correct # auto correct mistakes
setopt interactivecomments # allow comments in interactive mode
setopt magicequalsubst # enable filename expansion for arguments of the form ‘anything=expression’
setopt nonomatch # hide error message if there is no match for the pattern
setopt notify # report the status of background jobs immediately
@phibersoft
phibersoft / instructions.md
Created November 3, 2024 16:54
Easy VirtualBox Kali Linux Setup With No Errors

Description

"Linux = Time" so I'm writing this easy guide for newbies which is struggling with VBoxAdditions, Kernel issues and some initial setup stuff.

1- Install Kali

Just normally download Kali Iso (Not the Virtual Edition) and install it to VirtualBox. Then shut down completely.

2- Increase Video Graphics Memory

Select the settings and increase video graphics memory to ~80 MB.

3- Update system & install kernel headers

@phibersoft
phibersoft / instructions.md
Last active September 5, 2024 17:04
AWS EC2 Backend Setup with Custom Domain & Free SSL

Setup DNS First

⚠️ If you skip this step, you will get error while trying to generate free SSL.

Go to domain provider and add a key:
"<subdomain-name> A <aws ec2 public ip4 address>"
Example: backend A 35.45.24.12

Connect to EC2 Instance

Follow AWS guideline:

@phibersoft
phibersoft / http.md
Created August 9, 2024 23:00
En çok kullanılan HTTP durumları

1xx: Bilgilendirme Yanıtları

  • 100 Continue: İstemci, sunucudan işlemi devam ettirmek için onay beklediğini belirtir.
  • 101 Switching Protocols: Sunucu, istemcinin belirttiği protokole geçiş yaptığını bildirir.

2xx: Başarı Yanıtları

  • 200 OK: İstek başarıyla işlendi ve yanıt sunucudan alındı.
  • 201 Created: İstek başarıyla işlendi ve yeni bir kaynak oluşturuldu.
  • 202 Accepted: İstek alındı, ancak işlenmedi; işlemin sonucunu daha sonra alabilirsiniz.
  • 204 No Content: İstek başarıyla işlendi, ancak yanıt gövdesi yok.
@phibersoft
phibersoft / main.rs
Created June 18, 2024 21:40
[Rust Rocket.rs] Pass data bidirectly between main() and routes
use std::sync::{Arc};
use rand::Rng;
use rocket::{build, launch, routes, State};
use rocket::get;
use rocket::tokio::time::{Duration, sleep};
use rocket::tokio::sync::{Mutex};
use rocket::tokio::spawn;
static INTERVAL:usize = 5 * 1000;