Skip to content

Instantly share code, notes, and snippets.

@kissarat
kissarat / russian-mnemonic-words.txt
Last active May 1, 2024 09:57
Список существительных русского языка
ад
ар
ер
ил
ом
ум
ус
юг
юр
ют

Direct copy of pre-encoded file:

$ ffmpeg -i filename.mp4 -codec: copy -start_number 0 -hls_time 10 -hls_list_size 0 -f hls filename.m3u8

@andrewlimaza
andrewlimaza / add-compatibility-for-sed-and-pmpro-woo.php
Created May 19, 2023 04:56
Add compatibility for PMPro Set Expiration Date Add On and PMPro WooCommerce Add On.
<?php
/**
* Support Set Expiration Date Add On for PMPro WooCommerce Add On.
* Add this code to your site by following this guide - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/
*/
function my_pmprowoo_set_expiration_date( $level_array ) {
// Make sure Set Expiration Date Add On is active.
if ( ! function_exists( 'pmpro_getSetExpirationDate' ) ) {
return $level_array;
@throwaway96
throwaway96 / crashd.md
Last active May 1, 2024 09:56
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.
@Shinya-GitHub-Center
Shinya-GitHub-Center / cs-debug-shortcut.md
Created November 17, 2023 05:30
Useful debug shortcuts for C# Dev Kit (C# extension) working on VSCode or Visual Studio

Useful debug shortcuts for C# Dev Kit (C# extension) working on VSCode or Visual Studio

Shortcut Description
F5 Run debug, Resume
Ctrl+F5 Run without debug
F9 Set breakpoint, Remove point
F10 Run step by step
Ctrl+F10 Run by stopping at a cursol row
F11 Stepin
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
<link href="https://unpkg.com/video.js@8.10.0/dist/video-js.min.css" rel="stylesheet">
<link href="https://unpkg.com/videojs-record/dist/css/videojs.record.min.css" rel="stylesheet">
<script src="https://unpkg.com/video.js@8.10.0/dist/video.min.js"></script>
@lainosantos
lainosantos / dell_u2723qe.sh
Last active May 1, 2024 09:50
Basic commands for for KVM, PIP and PBP features for Dell Monitor U2723QE on Linux ddcutil
#!/usr/bin/env bash
if [ "$EUID" -ne 0 ] && groups | grep -qwv 'i2c' && getent group i2c &> /dev/null
then
echo "Insuficient permissions, run as root ou join $USER to i2c group."
exit 1
fi
case "$1" in
===============================================================================
User Name-: pc-ISO
Registration code :- 212RP-86U3G-1F46L-6ZME3-WGV3W
===============================================================================
User Name-: PC-ISO
Registration code :- I9YK2-P48AX-84FD8-KID8C-65WPL
================================================================================
User Name-: PC-ISO2011
Registration code :- 2148F-J8M9N-92IFC-G94M2-XS7JF
================================================================================
@fransr
fransr / bucket-disclose.sh
Last active May 1, 2024 09:46
Using error messages to decloak an S3 bucket. Uses soap, unicode, post, multipart, streaming and index listing as ways of figure it out. You do need a valid aws-key (never the secret) to properly get the error messages
#!/bin/bash
# Written by Frans Rosén (twitter.com/fransrosen)
_debug="$2" #turn on debug
_timeout="20"
#you need a valid key, since the errors happens after it validates that the key exist. we do not need the secret key, only access key
_aws_key="AKIA..."
H_ACCEPT="accept-language: en-US,en;q=0.9,sv;q=0.8,zh-TW;q=0.7,zh;q=0.6,fi;q=0.5,it;q=0.4,de;q=0.3"
H_AGENT="user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.146 Safari/537.36"