Skip to content

Instantly share code, notes, and snippets.

View moalex's full-sized avatar
🫛
Farting

moalex moalex

🫛
Farting
View GitHub Profile
@moalex
moalex / Sony WH-1000XM4.md
Last active July 15, 2025 13:31 — forked from peters/Sony WH-1000XM4.md
Sony WH-1000XM4 connect Ubuntu 22.04

Connecting Sony WH-1000XM4 to Ubuntu 22.04 (Jammy)

This guide will help you connect your Sony WH-1000XM4 headset to Ubuntu 22.04 using Bluetooth. Once connected, you'll be able to listen to music and use the microphone on apps like Microsoft Teams.

1. Connect to Bluetooth Headset

Steps:

  1. Open a terminal and launch bluetoothctl:

sed command split

The sed command can also be used to split string data. The syntax for this command is:

sed 's/delimiter/\n/g'

How to access a shared folder in VirtualBox

Add shared folder

VBoxManage sharedfolder add "VM name" --name sharename --hostpath "C:\test"

[YouTube Preview Problem AdGuard VPN][4pda]

AdGuard с премиум подпиской

На год она стоит 150 рублей, пожизненно - 550 рублей

В приложении необходимо включить шифрование DNS и поставить в настройках dns-сервера от Google (8.8.8.8 и 8.8.4.4). (Они уже есть настройках, надо только выбрать)

@moalex
moalex / youtube_watch_later.js
Created August 22, 2022 15:15 — forked from spyesx/youtube_watch_later.js
Get URLs of your youtube watch later playlist
// Execute this in the console of on your own playlist
var videos = document.querySelectorAll('.yt-simple-endpoint.style-scope.ytd-playlist-video-renderer');
var r = [];
var json = [];
r.forEach.call(videos, function(video) {
var url = 'https://www.youtube.com' + video.getAttribute('href');
url = url.split('&list=WL&index=');
url = url[0];
@moalex
moalex / youtube_watch_later.js
Created August 22, 2022 15:15 — forked from spyesx/youtube_watch_later.js
Get URLs of your youtube watch later playlist
// Execute this in the console of on your own playlist
var videos = document.querySelectorAll('.yt-simple-endpoint.style-scope.ytd-playlist-video-renderer');
var r = [];
var json = [];
r.forEach.call(videos, function(video) {
var url = 'https://www.youtube.com' + video.getAttribute('href');
url = url.split('&list=WL&index=');
url = url[0];
@moalex
moalex / gist:b48816a07da1ba1b24745e6c1c9f6e36
Created April 14, 2022 23:07 — forked from beh/gist:3549933
Add bookmark to pinbord.in with predefined tag, without user intervention
javascript:q=location.href;if(document.getSelection){d=document.getSelection();}else{d='';};p=document.title;void(open('https://pinboard.in/add?later=yes&noui=yes&jump=close&tags=TAGS GO HERE&url='+encodeURIComponent(q)+'&description='+encodeURIComponent(d)+'&title='+encodeURIComponent(p),'Pinboard','toolbar=no,width=100,height=100'));
// Copy and paste the above into a new bookmark. Replace "TAGS GO HERE" with your tags. Presto!
<?php
// autoload_namespace.php generated by Composer
$vendorDir = dirname(__DIR__);
$baseDir = dirname($vendorDir);
return array(
'Volcanus\\Validation' => $vendorDir . '/volcanus/validation/src/',
'Symfony\\Component\\HttpFoundation' => $vendorDir . '/symfony/http-foundation/',