<?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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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} | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://github.com/ipfs/kubo/blob/master/docs/experimental-features.md#ipfs-p2p |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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 |