Skip to content

Instantly share code, notes, and snippets.

@the-spyke
the-spyke / pipewire.md
Last active May 2, 2024 19:30
Enable PipeWire on Ubuntu 22.04

Enable PipeWire on Ubuntu 22.04

This guide is only for original Ubuntu out-of-the-box packages. If you have added a custom PPA like pipewire-debian, you might get into conflicts.

Ubuntu 22.04 has PipeWire partially installed and enabled as it's used by browsers (WebRTC) for recoding the screeen under Wayland. We can enable remaining parts and use PipeWire for audio and Bluetooth instead of PulseAudio.

Starting from WirePlumber version 0.4.8 automatic Bluetooth profile switching (e.g. switching from A2DP to HSP/HFP when an application needs microphone access) is supported. Jammy (22.04) repos provide exactly version 0.4.8. So, we're good.

Based on Debian Wiki, but simplified for Ubuntu 22.04.

<!DOCTYPE html>
<html>
<head>
<title>3D Cube with Dynamic Texture</title>
<style>
body {
margin: 0;
overflow: hidden;
background-color: #222;
}
<!DOCTYPE html>
<html>
<head>
<title>3D Cube with Dynamic Texture</title>
<style>
body {
margin: 0;
overflow: hidden;
background-color: #222;
}
@ECHO OFF
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Private goto MDPrivate
:CONFIRM
echo Are you sure to lock this folder? (Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
@imptype
imptype / messagemaker.py
Last active May 2, 2024 19:26
A better embed maker/embed builder for discord.py
"""
The messagemaker command!
Supports:
- Editing message content
- Add, edit, remove, clear embeds: title, desc, timestamp, fields etc. - everything to customize an embed.
-- Exporting and Importing exclusively for the embed
- Importing JSON: from modal text input, from mystbin link, from existing message
- Exporting to JSON, as a message or uploaded as file and mystbin link if < 2000 chars
- Sending to: a channel, a webhook, edit existing message
<!DOCTYPE html>
<html>
<head>
<title>3D Cube with Dynamic Texture</title>
<style>
body {
margin: 0;
overflow: hidden;
background-color: #222;
}
@imptype
imptype / embedmaker.py
Last active May 2, 2024 19:25
embed maker command
"""
A quick embed maker command.
Supports Title, URL, Description, Color, Timestamp,
Author (name, icon, url), Footer (icon, name), Image (url), Thumbnail (url)
adding and inserting fields (name, value, inline, index),
removing fields (index),
clearing fields,
editing fields (select -> name, value, inline)
@HackingLZ
HackingLZ / nicecurl.py
Created May 2, 2024 13:43
NICECURL Lnk Gen
# https://cloud.google.com/blog/topics/threat-intelligence/untangling-iran-apt42-operations/
import argparse
import random
import win32com.client
def insert_digit(word, digit):
pos = random.randint(1, len(word) - 1)
return word[:pos] + digit + word[pos:]
def generate_command(url, file_path):
<!DOCTYPE html>
<html>
<head>
<title>3D Cube with Dynamic Texture</title>
<style>
body {
margin: 0;
overflow: hidden;
background-color: #222;
}
<!DOCTYPE html>
<html>
<head>
<title>3D Cube with Dynamic Texture</title>
<style>
body {
margin: 0;
overflow: hidden;
background-color: #222;
}