Skip to content

Instantly share code, notes, and snippets.

@mrl22
mrl22 / ColorHelper.php
Created October 23, 2023 16:38
Laravel / PHP - Check if a hexidecimal colour is dark
<?php
namespace App\Helpers;
class ColorHelper
{
// This function tell you if a color is dark or light.
// It is useful when you want to change the text color to white or black depending on the background color.
public static function isColorDark($hexColor = '#ffffff') {
@jayluxferro
jayluxferro / List_of_Hacking_Websites_and_Forums.md
Last active April 27, 2024 20:40
List of Hacking Websites and Forums
@ecarlson94
ecarlson94 / README.md
Last active April 27, 2024 20:38
WSL Configuration

Installing WSL (windows subsystem for linux)

Running the azure-team terraform make file to create your infrastructure may not work on a Windows machine. If you cannot get it to run, install a linux distribution where you will exectute the tf files. Setting up a distribution with all of the right dependencies does involve a bit of setup to get it configured properly. The following is a list of steps you'll need to complete:

Install WSL

//
// Regular Expression for URL validation
//
// Author: Diego Perini
// Created: 2010/12/05
// Updated: 2018/09/12
// License: MIT
//
// Copyright (c) 2010-2018 Diego Perini (http://www.iport.it)
//
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active April 27, 2024 20:36
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@Albert-W
Albert-W / embed gist.md
Last active April 27, 2024 20:35
embed gist in iframe

Embed gist in iframe

it is used to embed gist to an asynchronously-loaded web pages.

<iframe 
    width="100%"
    height="350"    
    src="data:text/html;charset=utf-8,
 
@Lyss770
Lyss770 / Automod_Banned Words
Last active April 27, 2024 20:33
Dyno™ | Master Blacklist for the Discord Bot Dyno. Use at your own discretion, make sure there are no extra spaces between words, When copying multiple words a comma must be located between each one as shown below. Originally created by Takeoverkyle
cunt,pussy,anus,nigg,nigger,n!gg,n1gg,n igger,n i gger,hitler,adolf,adolf hitler,nazi,chode,rape,r@pe,niglet,dyke,dike,fagg,faggot,faggit,kike,nigaboo,nigaboo,niga-boo,pedofile,stalin,beastiality,jospeh stalin,maozedong,rapist,osama binladen,binladen,saddam hussein,heinrich himmler,adolf eichmann,eichmann,kim il sung,kim jung un,ayatollah ruhollah khomeini,hirohito,idi amin,vlad dracula,islamic state,isis,jhadi,slut,whore,buttplug,butt plug,vladimir putin,putin,fidel castro,raúl castro,2girls,2guys,1guy,1girl,dick cheese,dickcheese,twat,nudes,clit,adam saleh,dzhokhar tsarnaev,molest,flesh light,fleshlight,retard,kys,cummies,everyone,here,bomber,hentai,shesaidshewas18,shewas18,hesaidhewas18,hewas18,crippling depression,depression,giftsofsteam,giftofsteam,steamdigitalgift,kill yourself,kill urself,mein fuhrer,akbar,swastika,gooch,brock turner,dylan roof,steamcube,steam-cube,dick pick,pick dick,dick pic,dickpic,std,hiv,coont,octopussy,slave,genghis khan,هههههههههه,ᅠᅠᅠ,assgod,im kill myself,imkillmyself,fuck butt
@chatchavan
chatchavan / README.md
Last active April 27, 2024 20:33
Setup Wifi on Raspberry Pi

Setup Wireless LAN for Raspberry Pi

The following guide describes how to setup Raspberry Pi to connect to Wifi. It was tested on the following environment:

  • Raspberry Pi Model B
  • Edimax EW-7811Un USB Wifi dongle
  • OS: Raspbian Jessie

Here are the overview of the steps:

@ruvnet
ruvnet / lion_x_rUv.py
Created April 12, 2024 21:28
LionAGI x rUv v0,01
import os
import asyncio
import subprocess
import importlib
import sys
from dotenv import load_dotenv
from lionagi import Session
from e2b_code_interpreter import CodeInterpreter
from llama_index.core import (
VectorStoreIndex,