Skip to content

Instantly share code, notes, and snippets.

View djekl's full-sized avatar
:octocat:
Working from home

Alan Wynn djekl

:octocat:
Working from home
View GitHub Profile
@djekl
djekl / CompleteDiscordQuest.md
Created April 26, 2024 15:21 — forked from aamiaa/CompleteDiscordQuest.md
Complete Recent Discord Quest

Complete Recent Discord Quest

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
  2. Join a vc
  3. Stream any window (can be notepad or something)
  4. Press Ctrl+Shift+I to open DevTools
  5. Go to the Console tab
  6. Paste the following code and hit enter:
let wpRequire;
@djekl
djekl / setuplinkaggregationunraid.md
Created November 28, 2023 22:43 — forked from sems/setuplinkaggregationunraid.md
Setup guide link aggregation(802.3ad) Unraid with Ubiquiti

Setup guide link aggregation Unraid with Ubiquiti

Introduction

I am writing this guide becuase I coudn't find a proper one online which contained all the information I was searching for. I will try to guide you through the process of enabling link aggregation (802.3ad) with your Ubiquiti hardware and your Unraid server. Note: not all of Ubiquiti's hardware supports link aggregation (LAG). As of the time of writing Ubiquiti states the following.

Applicable to all UniFi Switch models excluding the USW-Flex and USW-Flex-Mini.

Source: Ubiquiti

@djekl
djekl / plexdrive.plg
Last active January 30, 2023 19:20
Unraid PlexDrive Plugin
<?xml version='1.0' standalone='yes'?>
<!-- PLUGIN DEFINITIONS -->
<!DOCTYPE PLUGIN [
<!ENTITY name "plexdrive">
<!ENTITY author "djekl">
<!ENTITY version "2023.01.27">
<!ENTITY pdversion "latest">
<!ENTITY repo "https://github.com/plexdrive/plexdrive/releases">
<!ENTITY pluginURL "https://gist.githubusercontent.com/&author;/6336a86e87746bf736489733ad13b52c/raw/fe055e9023d7308d2b14408154ad755792196993/plexdrive.plg">
@djekl
djekl / clipboard.js
Created October 12, 2021 11:02 — forked from stevebauman/clipboard.js
Copy Rich Text to Clipboard Cross Platform & Browser
/**
* Copy rich text content to clipboard.
*
* Must be initiated by a user click event.
*
* @param {string} content
*/
export default function (content) {
const selection = window.getSelection();
@djekl
djekl / mac-network-commands-cheat-sheet.md
Created September 22, 2021 17:17 — forked from jjnilton/mac-network-commands-cheat-sheet.md
Mac Network Commands Cheat Sheet

Disclaimer: I'm not the original author of this sheet, but can't recall where I found it. If you know the author, please let me know so I give the attribution.

Note: Since this seems to be helpful to some people, I formatted it to improve readability of the original. Also, note that this is from 2016, many things may have changed, and I don't use macOS anymore, so I probably can't help in case of questions, but maybe someone else can.

Mac Network Commands Cheat Sheet

After writing up the presentation for MacSysAdmin in Sweden, I decided to go ahead and throw these into a quick cheat sheet for anyone who’d like to have them all in one place. Good luck out there, and stay salty.

Get an ip address for en0:

@djekl
djekl / callum-parkinson-website-prototype.markdown
Created June 19, 2020 15:30
Callum Parkinson Website Prototype
G90 ;Set to absolute positioning
M82 ;Extruder absolute mode
G28 ;Move to origin / Home
G1 X120 Y50 Z3 ;Linear move (X, Y, Z)
G92 E0 ;Set position
G1 E30 ;Linear move (Extruder)
G92 E0 ;Set position
G1 E-1.5 F500 ;Linear move (Extruder) (Speed 500)
G1 Z6 ;Linear move (Z)
G1 Y35 F2000 ;Linear move (Y) (Speed 2000)
<?php
/**
* Call protected/private method of a class.
*
* @param object &$object Instantiated object that we will run method on.
* @param string $methodName Method name to call
* @param array $parameters Array of parameters to pass into method.
*
* @return mixed Method return.
@djekl
djekl / artisan_db_open.php
Created February 1, 2020 20:51 — forked from calebporzio/artisan_db_open.php
An artisan command for opening the project's database in TablePlus
<?php
Artisan::command('db:open {connection?}', function ($connection = null) {
if (! file_exists('/Applications/TablePlus.app')) {
$this->warn('This command uses TablePlus, are you sure it\'s installed?');
$this->line("Install here: https://tableplus.com/\n");
}
$driver = $connection ?: config('database.default');
$host = config("database.connections.{$driver}.host");
:: 1) Download srvany.exe from Microsoft Windows 2003 Resource Kit (available free from Microsoft).
:: http://www.microsoft.com/en-au/download/details.aspx?id=17657
:: ----------------------
:: 2) Copy srvany.exe into the folder where google drive is installed or next to this script file.
:: ----------------------
:: 3) Run this script as an Administrator
:: ----------------------
echo off
cls