Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
sudo docker volume create --name vproxy-data; #create data volume
sudo docker rm -f vproxy; #remove any previous container
#Start the container as daemon
sudo docker run -d \
--name vproxy \
--network host \
#!/usr/bin/env bash
curl -sSL https://raw.githubusercontent.com/0x676e67/vproxy/main/.github/install.sh | sudo bash
vproxy run --bind 0.0.0.0:1080 auto -u user -p 'Pa$$w0rd'
@santaklouse
santaklouse / iframe-loader.js
Created September 8, 2025 16:50 — forked from uangsl/iframe-loader.js
load webpage by XMLHttpRequest, and insert HTML into iframe by DOMParser. then the main page can visit iframe's context without cross-domain problem
const IFRAME_READY_MESSAGE = "IFRAME_READY";
export default {
id: null,
$el: null,
iframeBaseUrl: null,
targetDocument: document,
style:{'position':'fixed', 'top': '0', 'right':'20px', 'width':'300px', 'height':'400px'},
/***
* {id: '', url: '', iframeBaseUrl:'' , style:{}, targetDocument: null}
*/
https://github.com/ipfs/kubo/blob/master/docs/experimental-features.md#ipfs-p2p
@santaklouse
santaklouse / mac-docker-gui.txt
Created August 6, 2025 10:52 — forked from roaldnefs/mac-docker-gui.txt
Running GUI application in Docker on MacOS
# Install XQuartz
brew cask install xquartz
# Restart MacOS
# Open XQuartz
open -a XQuartz
# Ensure the "Allow connections from network clients" option in Preferences >> Security is turned on
@santaklouse
santaklouse / test.md
Created July 3, 2025 10:49
testing paralellism ...

Давайте посмотрим, как это работает:

<?php

$start = microtime(true);
$path = __DIR__ . '/pcntl_fork_send_email.php';
$emails = implode(',', ['joe@blogs.com', 'jack@test.com']);
$command = 'php ' . $path . ' --emails=%s > /dev/null &';

// Execute the command
@santaklouse
santaklouse / zram-generator.sh
Created July 1, 2025 10:58
install zram and zswap to Ubuntu automatically
#!/usr/bin/env bash
set -e
echo "==> Установка zram-tools и необходимых утилит"
apt update
apt install -y zram-tools linux-tools-common linux-tools-generic systemd-zram-generator
echo "==> Настройка ZRAM через systemd-zram-generator"
cat <<EOF > /etc/systemd/zram-generator.conf
@santaklouse
santaklouse / ssh.sh
Created May 26, 2025 08:37
wrapper around ssh in order to use passwords in config (draft)
#!/usr/bin/env bash
#ORIG_SSH=/usr/bin/ssh
ORIG_SSH=/opt/homebrew/bin/ssh
HOST=$1
SSHPASS=$(ggrep -Pzo "Host $HOST"'\s*\n((?!Host).*\n)*\s*#PS\s(\N+)\n' ~/.ssh/config|tail -n 2|head -n 1 | sed 's/ *#PS //')
if [ -n $SSHPASS ]; then
sleep 1
else
@santaklouse
santaklouse / github-to-bitbucket
Created May 12, 2025 11:32 — forked from sangeeths/github-to-bitbucket
Forking a Github repo to Bitbucket
Go to Bitbucket and create a new repository (its better to have an empty repo)
git clone git@bitbucket.org:abc/myforkedrepo.git
cd myforkedrepo
Now add Github repo as a new remote in Bitbucket called "sync"
git remote add sync git@github.com:def/originalrepo.git
Verify what are the remotes currently being setup for "myforkedrepo". This following command should show "fetch" and "push" for two remotes i.e. "origin" and "sync"
git remote -v
@santaklouse
santaklouse / x.sh
Last active April 16, 2025 22:38
encfs on macos thru lima
#OSX
lima encfs --standard /Users/alexnevpryaga/Library/Application\ Support/Mountain\ Duck/Volumes.noindex/Google\ Drive.localized/My\ Drive/vps/.raw/ /Users/alexnevpryaga/.sec
#https://help.ubuntu.ru/wiki/encfs_cloud
#https://github.com/hackerschoice/thc-tips-tricks-hacks-cheat-sheet?tab=readme-ov-file#crypto-filesystem