Skip to content

Instantly share code, notes, and snippets.

View Cyborgmatt's full-sized avatar

Matthew Bailey Cyborgmatt

View GitHub Profile
@irazasyed
irazasyed / outbound-email-with-cloudflare.md
Last active June 17, 2024 14:50
Using Gmail SMTP with Cloudflare Email Routing: A Step-by-Step Guide

Using Gmail SMTP with Cloudflare Email Routing: Step-by-Step Guide

Learn how to send emails through Gmail SMTP with Cloudflare Email Routing in this comprehensive guide.

Step 1: Enable 2-Factor Authentication

To proceed with this method, ensure that you have enabled two-factor authentication for your Google account. If you haven't done so already, you can follow the link to set it up → Enable 2FA in your Google account.

Step 2: Create an App Password for Mail

@KevinBatdorf
KevinBatdorf / add-alpine-js-to-tailwind-ui.js
Last active May 7, 2024 18:51
Auto copy the Alpine code from Tailwind UI's copy button
// ==UserScript==
// @name Add AlpineJs to Tailwind UI
// @namespace http://tampermonkey.net/
// @version 3.0
// @description Add Alpine JS code to Tailwind Ui copy/paste
// @author https://gist.github.com/KevinBatdorf/8bd5f808fff6a59e100dfa08a7431822
// @match https://tailwindui.com/components/*
// @grant none
// ==/UserScript==
@LsHallo
LsHallo / Eco_Server_Docker.md
Last active March 16, 2024 23:04
Eco Server with Docker (Official Strangeloops Image)

Eco Server

Since there is no official documentation on how to use the docker image provided at strangeloopgames/eco-game-server I will go over some details that you have to consider when running the docker container.

First of all I find it easiest to download the server locally and create all configuration files using the UI. It is also necessary to put the files into the Mods directory since I will be exposing it to the host file system.

  1. Go to the strangeloop website and login to your account. If you did not link your steam account you should do that now so you can download the server files.
  2. Put the files into a folder in a convenient location (Will only be used temporarily)
  3. Run the server with the appropriate means (EcoServer.exe or EcoServer.sh)
  4. Configure your server like you want it using the UI
  5. Stop the server
@paulirish
paulirish / how-to-view-source-of-chrome-extension.md
Last active June 10, 2024 15:16
How to view-source of a Chrome extension

Option 1: Command-line download extension as zip and extract

extension_id=jifpbeccnghkjeaalbbjmodiffmgedin   # change this ID
curl -L -o "$extension_id.zip" "https://clients2.google.com/service/update2/crx?response=redirect&os=mac&arch=x86-64&nacl_arch=x86-64&prod=chromecrx&prodchannel=stable&prodversion=44.0.2403.130&x=id%3D$extension_id%26uc" 
unzip -d "$extension_id-source" "$extension_id.zip"

Thx to crxviewer for the magic download URL.

@jgrossi
jgrossi / Math.php
Created November 11, 2014 22:18
Math class from Taylor Otwell. Thanks to @brad (captain_jim1@yahoo.com) for the class content.
<?php
class Math {
/**
* The base.
*
* @var string
*/
private static $base = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';