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
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active May 3, 2024 17:56
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
@lilianmallardeau
lilianmallardeau / raspi-reset
Created October 30, 2023 00:47
raspi-reset
#!/bin/bash
BS=64M
DISK_ID=0x7788c428
ROOT_DEV=/dev/mmcblk0
BOOTFS_BACKUP=${ROOT_DEV}p3
BOOTFS_TARGET=${ROOT_DEV}p1
ROOTFS_BACKUP=${ROOT_DEV}p2
ROOTFS_TARGET=${ROOT_DEV}p4
if [ $EUID -ne 0 ]; then
@throwaway96
throwaway96 / crashd.md
Last active May 2, 2024 19:11
crashd instructions

News

New exploit for webOS 3.5+: DejaVuln (2024-04-21)

See dejavuln-autoroot for a simpler exploit that works on webOS 3.5+ TVs (i.e., models from 2017 and later). It is unpatched as of 2024-04-21 and does not require Developer Mode or even a network connection—just a USB drive.

Otherwise:

  • If you have a webOS 5–8 TV with old enough firmware, WTA (which does not require Dev Mode) will still work.
  • If you have a webOS 4.x TV, you can also try CVE-2023-6319, which is unpatched on the latest (final?) firmware for webOS 4.0 (2018) models.
  • While there will eventually be fully software-based exploits released for older models, they can currently be rooted via NVM.
@mpociot
mpociot / vite.config.js
Last active May 7, 2023 22:11
Using Vite in combination with Valet's secured sites
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
import fs from 'fs';
import { resolve } from 'path';
import { homedir } from 'os';
let host = 'sendstack.test';
let homeDir = homedir();
let serverConfig = {};
@ihsangan
ihsangan / index.js
Last active April 23, 2024 16:15
Send email from Workers with MailChannel API
async function readRequestBody(request) {
const { headers } = request;
const contentType = headers.get('content-type') || '';
if (contentType.includes('application/json')) {
return JSON.stringify(await request.json());
} else if (contentType.includes('form')) {
const formData = await request.formData();
const body = {};
for (const entry of formData.entries()) {
body[entry[0]] = entry[1];
@tabacitu
tabacitu / .php-cs-fixer.dist.php
Created September 3, 2021 06:27
PHP-CS-Fixer Configuration File for the Laravel Code Style
<?php
/**
-----------------------------------------------------
Enforce the Laravel Code Style using PHP CS Fixer 3.x
-----------------------------------------------------
Credits go to Laravel Shift & Andreas Elia.
https://gist.github.com/laravel-shift/cab527923ed2a109dda047b97d53c200
@JulyIghor
JulyIghor / firetv_firmware.md
Last active May 3, 2024 05:36
Amazon Fire TV Stick 4K Firmware and apps. Official Cloud Front direct links only

FireTV 2nd gen Cube Firmware
github.com/Pro-me3us/raven_firmware

Fire TV Stick 4K Firmware

Date Version Download MD5
2019-08-20 Fire OS 6.2.6.5 (NS6265/2157) update-kindle-mantis-NS6265_user_2157_0002852679044.bin 09289b141c8339fe675cb0204689071f
2019-10-09 Fire OS 6.2.6.6 (NS6266/2292) update-kindle-mantis-NS6266_user_2292_0003054040196.bin 253162813010472bb8d54fc8b8eb7b80
2019-11-02 Fire OS 6.2.6.8 (NS6268/2315) [update-kindle-mantis-NS6268_user_2315_0003255372676.bin](https://d1s31zyz7dcc2d.cloudfront.net/5188853d0c8dd0c460b31b985065e071/update-kindle-mantis-NS6268_user_2315_0003255372676
@stevebauman
stevebauman / clipboard.js
Last active October 12, 2021 11:02
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();
@sems
sems / setuplinkaggregationunraid.md
Last active February 28, 2024 12:53
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