Skip to content

Instantly share code, notes, and snippets.

View jvloo's full-sized avatar
💭
I may be slow to respond.

Xavier Loo jvloo

💭
I may be slow to respond.
View GitHub Profile
@digitaljhelms
digitaljhelms / gist:4287848
Last active November 16, 2024 01:10
Git/GitHub branching standards & conventions

Branching

Quick Legend

Description, Instructions, Notes
Instance Branch
@ashleydw
ashleydw / nginx.conf
Last active October 29, 2024 12:07
Laravel nginx conf file
server {
listen 80 default_server;
server_name example.com www.example.com;
access_log /srv/www/example.com/logs/access.log;
error_log /srv/www/example.com/logs/error.log;
root /srv/www/example.com/public;
index index.php index.html;
@oxguy3
oxguy3 / deploy.php
Last active August 5, 2023 20:21
Script used to automatically deploy from GitHub to a cPanel shared hosting server
<?php
/**
* deploy.php by Hayden Schiff (oxguy3)
* Available at https://gist.github.com/oxguy3/70ea582d951d4b0f78edec282a2bebf9
*
* No rights reserved. Dedicated to public domain via CC0 1.0 Universal.
* See https://creativecommons.org/publicdomain/zero/1.0/ for terms.
*/
// random string of characters; must match the "Secret" defined in your GitHub webhook
@dusta
dusta / Deploy_on_cPanel.md
Last active September 9, 2024 04:27 — forked from oodavid/README.md
Deploy your site with git on cPanel

Deploy your site with git on cPanel

The most important: You must have shell access!

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
  • your (PHP) scripts are served from /var/www/html/
@sujeetkv
sujeetkv / template-snippet.js
Last active July 10, 2024 13:12
Basic template parser in JavaScript
/**
* Basic template parser
*/
var TemplateSnippet = function (template) {
'use strict';
// var re = /<%([^%>]+)?%>/g;
// var re = /<%(.+?)%>/g;
var re = /\{\{(.+?)\}\}/g;
var snippet = 'var snippet=[];\n', cursor = 0, match;
var add = function (line, js) {
@woswos
woswos / tor-browser-selenium-wire.py
Last active August 8, 2024 09:44
This script creates a proxy server between the Tor Browser and Tor to capture requests/responses, using the seleniumwire library. You can access and modify the HTTP headers that are being sent/received, including the onion services. Note: You need to have Tor installed and running on the localhost while running this script.
import os
from seleniumwire import webdriver
from selenium.webdriver.firefox.firefox_profile import FirefoxProfile
from selenium.webdriver.firefox.firefox_binary import FirefoxBinary
# Uncomment these if you need additional information for debugging
#import logging
#logging.basicConfig(level=logging.DEBUG)
# The location of the Tor Browser bundle
@drakodev
drakodev / Free_Disposable_ESP_Abuse_SPAM
Last active November 14, 2024 19:38
most comprehensive collection (183538) of free and disposable email provider domains, curated from multiple sources, including contributions from Okutbay and frankwarwick. This list has been further extended to include domains flagged as abusive, malware-associated, or considered risky by spam traps.
This file has been truncated, but you can view the full file.
# Email List Containing free and disposable email service providers.
# Some domains have been included as they have been trapped by SPAM, Anti-Malware Systems
# NOTE: Some domains may have stopped working
0-00.usa.cc
0-180.com
0-30-24.com
0-420.com
0-900.com