Skip to content

Instantly share code, notes, and snippets.

@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,
@andreasvirkus
andreasvirkus / Editor.vue
Last active April 27, 2024 20:27
Tiptap emoji plugin for Klausapp
<template>
<div ref="editor" class="notranslate">
<div v-show="showSuggestions" ref="suggestions">
<template v-if="(filteredSuggestions || []).length">
<div
v-for="(item, index) in filteredSuggestions.slice(0, 10)"
:key="index"
:class="[$style.suggestion, navigatedSuggestionIndex === index && $style.selected]"
@click="selectSuggestion(item)"
>
@SKempin
SKempin / Git Subtree basics.md
Last active April 27, 2024 20:22
Git Subtree basics

Git Subtree Basics

If you hate git submodule, then you may want to give git subtree a try.

Background

When you want to use a subtree, you add the subtree to an existing repository where the subtree is a reference to another repository url and branch/tag. This add command adds all the code and files into the main repository locally; it's not just a reference to a remote repo.

When you stage and commit files for the main repo, it will add all of the remote files in the same operation. The subtree checkout will pull all the files in one pass, so there is no need to try and connect to another repo to get the portion of subtree files, because they were already included in the main repo.

Adding a subtree

Let's say you already have a git repository with at least one commit. You can add another repository into this respository like this: