Skip to content

Instantly share code, notes, and snippets.

@CraftedRO
CraftedRO / nginx-php-windows-setup.md
Created January 31, 2026 17:57 — forked from odan/nginx-php-windows-setup.md
Nginx and PHP Setup on Windows

Nginx and PHP Setup on Windows

For local development you could also use Nginx with PHP as an replacement for XAMPP.

Install Nginx

how to leverage oracle's temping offers

free tier limits

The limits of the free tier say that you can create up to 4 instances.

  • x2 x86 instances (2core/1g)
  • x2 ampere instances (with 4core/24g spread between them)
  • 200GB total boot volume space across all intances (minimum of 50G per instance)

create your account

I have just discovered a great feature of composer:
composer update --lock
It saves a lot of time when you merge branches with composer.lock file changes in both branches.
Just resolve conflict by applying --ours version of the file (or --theirs, it really doesn't matter) and then run
`composer update --lock `.
Composer will do all the dirty work for you and update composer.lock file according to composer.json changes
and install new packages. The rest of packages in composer are not changed.
@CraftedRO
CraftedRO / GoogleDorking.md
Created June 14, 2025 10:42 — forked from sundowndev/GoogleDorking.md
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
@CraftedRO
CraftedRO / secure_with_htaccess
Created March 20, 2025 22:08 — forked from putWorkDev/secure_with_htaccess
Security with cookies: - PREVENTING SESSION HIJACKING - PREVENTING SESSION FIXATION - Uses a secure connection (HTTPS) if possible
With .htaccess just need to add these flags:
php_value session.cookie_httponly 1
php_value session.cookie_secure 1
@CraftedRO
CraftedRO / gist:c1f50c11fee0b25281c9eb264ed11213
Last active March 14, 2025 11:59 — forked from Aokromes/gist:1a3a60bea163e2120dd56bac40556ff0
POSSIBLE BUGGED QUEST ID TRINITYCORE
ID
618
1701
1846
5063
5067
5068
5143
5146
5892
@CraftedRO
CraftedRO / Win_Server_2025_Evaluation_to_full_version.md
Last active November 4, 2024 11:37
Upgrade Windows Server 2025 Evaluation (Eval) to Full Version Standard or Datacenter
@CraftedRO
CraftedRO / Github Webhook Tutorial.md
Created October 26, 2024 19:19 — forked from jagrosh/Github Webhook Tutorial.md
Simple Github -> Discord webhook

Step 1 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send commits and other updates

  2. In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe! WebhookDiscord

Step 2 - Set up the webhook on Github

  1. Navigate to your repository on Github, and open the Settings Settings
@CraftedRO
CraftedRO / opcache_install.md
Created October 15, 2024 00:57 — forked from WillSquire/opcache_install.md
OpCache install & configuration

OpCache

Installation

Install OpCache on FreeBSD with (note 56 resembles the current PHP version 5.6):

cd /usr/ports/www/php56-opcache && sudo make config-recursive install distclean

Configuration

@CraftedRO
CraftedRO / opcache.ini
Created October 13, 2024 22:20 — forked from rohankhudedev/opcache.ini
Best Zend OpCache Settings / Tuning / Configurations
[opcache]
; Determines if Zend OPCache is enabled
opcache.enable=1
; Determines if Zend OPCache is enabled for the CLI version of PHP
;opcache.enable_cli=1
; The OPcache shared memory storage size.
opcache.memory_consumption=512