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
@jvloo
jvloo / README.markdown
Created September 1, 2023 08:56 — forked from marijn/README.markdown
List of nationalities in YAML, CSV and TXT format

List of nationalities

It's time someone compiled a list of nationalities to use within a web application. This gist attempts to make a first move at that.

List of countries

I've also compiled a list of countries

@jvloo
jvloo / Kernal.php
Created March 13, 2023 06:53 — forked from DanRibbens/Kernal.php
Laravel Recaptcha V3 with V2 Fallback
<?php namespace App\Http;
use App\Http\Middleware\VerifyRecaptcha;
use Illuminate\Foundation\Http\Kernel as HttpKernel;
class Kernel extends HttpKernel
{
/**
* The application's route middleware.
*
@jvloo
jvloo / Ranking.php
Created April 26, 2022 07:05 — forked from slogsdon/Ranking.php
Reddit Ranking Algorithms in PHP
<?php
/**
* Ranking Library
* contains alogrithms for story ranking
* Basically a PHP Implementation of reddits algorithms
*
* @author Lucas Nolte <lnolte@i.biz>
* @since 0.1
* @package Polska Wiadomosc
* @subpackage Libraries
@jvloo
jvloo / gist:6084998a5aaac731b99944ecfcac547c
Created April 26, 2022 07:02 — forked from jrochkind/gist:2636355
reddit 'hot' algorithm, in ruby, with typo fixed
require 'date'
# Actually doesn't matter WHAT you choose as the epoch, it
# won't change the algorithm. Just don't change it after you
# have cached computed scores. Choose something before your first
# post to avoid annoying negative numbers. Choose something close
# to your first post to keep the numbers smaller. This is, I think,
# reddit's own epoch.
$our_epoch = Time.local(2005, 12, 8, 7, 46, 43).to_time
@jvloo
jvloo / free-disposable-email-providers.txt
Created April 8, 2022 08:40 — forked from drakodev/free-disposable-email-providers.txt
16413 Free or Disposable Email Providers Domains - Collected and combined from various resources primarily built on top of lists provided by Okutbay & frankwarwick
0-00.usa.cc
0-mail.com
0.pl
001.igg.biz
0039.cf
0039.ga
0039.gq
0039.ml
007addict.com
00b2bcr51qv59xst2.cf
@jvloo
jvloo / phoneMasks.json
Last active October 17, 2021 02:35 — forked from mikemunsie/phoneMasks.json
Phone Masks by Country Code JSON
{
"AC": ["+247-####"],
"AD": ["+376-###-###"],
"AE": ["+971-5#-###-####","+971-#-###-####"],
"AF": ["+93-##-###-####"],
"AG": ["+1(268)###-####"],
"AI": ["+1(264)###-####"],
"AL": ["+355(###)###-###"],
"AM": ["+374-##-###-###"],
"AN": ["+599-###-####","+599-###-####","+599-9###-####"],
@jvloo
jvloo / tor-browser-selenium-wire.py
Created August 16, 2021 18:48 — forked from woswos/tor-browser-selenium-wire.py
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