Skip to content

Instantly share code, notes, and snippets.

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/',
@moalex
moalex / composer-devhints.md
Last active February 22, 2022 14:18 — forked from robdecker/1.md
[Composer commands] #composer #d8