Skip to content

Instantly share code, notes, and snippets.

View methbkts's full-sized avatar

Metin Bektas methbkts

  • Breakly
  • Paris, France
  • 07:22 (UTC +01:00)
View GitHub Profile

GitHub Copilot Custom Instructions for Laravel 12 & PHP 8.2/8.4

These instructions guide Copilot to generate code that aligns with modern Laravel 12 standards, PHP 8.2/8.4 features, software engineering principles, and industry best practices to improve software quality, maintainability, and security.

✅ General Coding Standards

  • Follow PSR-12 coding style and structure.
  • Prefer short, expressive, and readable code.
  • Use meaningful, descriptive variable, function, class, and file names.
  • Apply proper PHPDoc blocks for classes, methods, and complex logic.
@koi-tattoo
koi-tattoo / apple-container-compose.py
Created June 11, 2025 12:05
LLM Generated script to use docker-compose.yml files with apple containers.
#!/usr/bin/env python3
"""
Apple Container Compose
A script that mimics docker-compose but uses Apple's Container tool.
This script parses docker-compose.yml files and generates equivalent
Apple Container commands to build and run services.
Usage:
python apple-container-compose.py up [--compose-file docker-compose.yml]
@hackermondev
hackermondev / research.md
Last active December 8, 2025 22:28
Unique 0-click deanonymization attack targeting Signal, Discord and hundreds of platform

hi, i'm daniel. i'm a 15-year-old high school junior. in my free time, i hack billion dollar companies and build cool stuff.

3 months ago, I discovered a unique 0-click deanonymization attack that allows an attacker to grab the location of any target within a 250 mile radius. With a vulnerable app installed on a target's phone (or as a background application on their laptop), an attacker can send a malicious payload and deanonymize you within seconds--and you wouldn't even know.

I'm publishing this writeup and research as a warning, especially for journalists, activists, and hackers, about this type of undetectable attack. Hundreds of applications are vulnerable, including some of the most popular apps in the world: Signal, Discord, Twitter/X, and others. Here's how it works:

Cloudflare

By the numbers, Cloudflare is easily the most popular CDN on the market. It beats out competitors such as Sucuri, Amazon CloudFront, Akamai, and Fastly. In 2019, a major Cloudflare outage k

@Clemv95
Clemv95 / ygg-api-download.yml
Last active December 8, 2025 19:25 — forked from LimeDrive/ygg-api.yml
Indexeur ygg-api pour jackett / prowlarr
---
id: yggapi
name: YggAPI
description: Indexeur non-officiel pour YggTorrent (YGG) - MOVIES / TV
language: fr-FR
type: private
encoding: UTF-8
testlinktorrent: false
links:
- https://yggapi.eu/
@vncsna
vncsna / bash_strict_mode.md
Created June 6, 2021 01:59 — forked from mohanpedala/bash_strict_mode.md
set -e, -u, -o, -x pipefail explanation

set -e, -u, -o, -x pipefail

The set lines

  • These lines deliberately cause your script to fail. Wait, what? Believe me, this is a good thing.
  • With these settings, certain common errors will cause the script to immediately fail, explicitly and loudly. Otherwise, you can get hidden bugs that are discovered only when they blow up in production.
  • set -euxo pipefail is short for:
set -e
set -u
@avoidik
avoidik / README.md
Last active December 23, 2024 18:01
Compile vaultwarden (ex. bitwarden_rs) on Raspberry Pi

How to build and install vaultwarden (ex. bitwarden_rs) on Raspberry Pi

Best advise ever: make a backup before doing any operations described below

Steps

Prepare prerequisites

sudo apt-get update
@jeremymouzin
jeremymouzin / lemeilleurcoin.js
Created January 29, 2021 14:01
Script pour améliorer le site du bon coin pour mes besoins
// ==UserScript==
// @name Le Meilleur Coin
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Make the bon coin a better place AH AH AH AH
// @author Jérémy Mouzin
// @match https://www.leboncoin.fr/ventes_immobilieres/*
// @grant none
// ==/UserScript==
@michaelbutler
michaelbutler / Witcher_3_Linux_Easy_README.md
Last active March 4, 2025 21:08
Install and Play The Witcher 3 Complete Edition (GOG & GOG Galaxy) on Ubuntu Linux 20.04 with Lutris.net and Wine

How to install and play The Witcher 3 (GOG Edition) on Linux

It's really quite simple!

Step 1: Buy The Witcher 3 on gog.com

Simply go to https://www.gog.com/game/the_witcher_3_wild_hunt_game_of_the_year_edition (this should also work with the regular edition) and buy and add the game to your library.

Do NOT click "Download and Install" at this point. We will do this through Lutris.

@nicejade
nicejade / README.md
Last active December 20, 2022 14:00
Generate a good README

Generate a good README

Generate a good README use `npx` commmd.

@methbkts
methbkts / bionic.sh
Last active January 10, 2024 14:56
#!/bin/bash
#Quel ip?
echo -n "Entrez l'adresse ip que vous desirez utiliser : 192.168.33."
read -n 2 ip
echo
cat > Vagrantfile << eof
# -*- mode: ruby -*-
# vi: set ft=ruby :