Skip to content

Instantly share code, notes, and snippets.

View bodrovis's full-sized avatar
🐱
I are serious. You now step into my profile.

Elijah S. Krukowski bodrovis

🐱
I are serious. You now step into my profile.
View GitHub Profile
@bodrovis
bodrovis / gist:1a719d96b7f32a4df5fee323d58464d0
Created May 3, 2026 14:43
Slipstream proxy (via DNS, QUIC)
Сервер
sudo apt update
sudo apt install -y git curl build-essential cmake pkg-config libssl-dev python3 netcat-openbsd
curl https://sh.rustup.rs -sSf | sh
source "$HOME/.cargo/env"
rustc --version
cargo --version
@bodrovis
bodrovis / gist:4c65951e81e9139585aa2b351eb8203c
Last active May 4, 2026 19:46
Xray VLESS + XHTTP + TLS Relay, WARP: 2-Server Setup
СЕРВЕР А
Всё ставим
sudo apt update
sudo apt install -y curl nano jq
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install -u root
Всё генерируем с помощью
# demo.rb
ts = (1..5).map do |i|
Thread.new do
sleep(1)
puts "done #{i}"
Thread.current.kill if i == 3
rand(1..100)
end
end
@bodrovis
bodrovis / ERC.sol
Last active January 16, 2023 15:58
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../IERC20.sol";
interface IERC20Metadata is IERC20 {
function name() external view returns (string memory);
function symbol() external view returns (string memory);
interface IAccessControl {
event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);
event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);
event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);
function hasRole(bytes32 role, address account) external view returns (bool);
function getRoleAdmin(bytes32 role) external view returns (bytes32);
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract MopedShop {
mapping (address => bool) buyers;
uint256 public price = 2 ether;
address public owner;
address public shopAddress;
bool fullyPaid; // false
loadLocaleFile(locale) {
return import(`@/locales/${locale}.json`)
}
import Vue from 'vue'
import VueRouter from 'vue-router'
import i18n from '../i18n'
function load(component) {
// '@' is aliased to src/components
return () => import(`@/views/${component}.vue`)
}
Vue.use(VueRouter)
$('.lang-switch').click(function(e) {
e.preventDefault();
$.i18n().locale = $(this).data('locale');
update_texts();
});
{
"@metadata": { },
"en": {
"appname-title": "Example Application"
},
"ru": "ru.yml"
}