Skip to content

Instantly share code, notes, and snippets.

@milypoint
milypoint / integer_compress.php
Created April 28, 2020 18:15
Compress integer to string
<?php
// $codeset="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
$codeset="QybVileI4aZC7PMk9v85EcA0GS63oOqfKLmpJurNHstYhgBdjTUxWD2FRw1znX";
$base = strlen($codeset);
function intToStr($n)
{
global $codeset, $base;
$converted = "";
@milypoint
milypoint / virtualghost.conf
Last active June 23, 2020 10:47
Apache2 virtualhost configuration (Ubuntu)
# Apache2 VirtualHost configuration for local development.
#
# Put this file into /etc/apache2/sites-available (Ubuntu) and run command: "a2ensite virtualghost.conf"
#
# Webserver sets documentroot as path_to_sites/your_site_folder/public
#
# your_site_folder name must ends with ".local"
#
# Whenewer created folder path_to_sites/your_site_folder add line "127.0.0.1 your_site_folder" into file /etc/hosts
@milypoint
milypoint / hide_map.ahk
Last active April 20, 2024 17:13
Hide map in Rust (playrust.com) while streaming for OBS Studio
/*
AutoHotKey script for hide map in Rust game while streaming in OBS Studio.
Steps for setup:
1. Download and install AutoHotKey from official website "www.autohotkey.com".
2. In your main scene in OBS create a new source that will be cover game capture scene. For example it can be some image source. Let's call it <hidden content>.
3. In OBS settings go to hotkeys and bind