Skip to content

Instantly share code, notes, and snippets.

View Blaumaus's full-sized avatar

Andrii Romasiun Blaumaus

View GitHub Profile
@Blaumaus
Blaumaus / swetrix-cla.md
Created February 21, 2024 22:40
Swetrix - Contributor License Agreement

In order to clarify the intellectual property license granted with Contributions from any person or entity, Swetrix Ltd ("Swetrix") must have a Contributor License Agreement ("CLA") on file that has been signed by each Contributor, indicating agreement to the license terms below. This license is for your protection as a Contributor as well as the protection of Swetrix; it does not change your rights to use your own Contributions for any other purpose.

You accept and agree to the following terms and conditions for Your present and future Contributions submitted to Swetrix. Except for the license granted herein to Swetrix and recipients of software distributed by Swetrix, You reserve all right, title, and interest in and to Your Contributions.

  1. Definitions.

"You" (or "Your") shall mean the copyright owner or legal entity authorized by the copyright owner that is making this Agreement with Swetrix. For legal entities, the entity making a Contribution and all other entities that control, are controlled by, o

@Blaumaus
Blaumaus / en.hpp
Created March 19, 2021 00:30
C++ internalisation mini-library
#ifndef INTERNALISATION_EN_HPP
#define INTERNALISATION_EN_HPP
#pragma once
#include <map>
#include <string>
namespace i18n {
std::map<std::string, std::wstring> en {
{"hello", L"Hello"},
{"world", L"World"},
@Blaumaus
Blaumaus / avatar_hax.js
Created September 4, 2020 19:03
haxball.com avatar hax
// Script changes player's avatar every 0.07 seconds
// Pressing '|' activates/deactivates it
async function avatar_hax() {
for (let i = 65; i <= 122; ++i) {
if (!avatar_do) break
if (i == 122) i = 65
document.querySelector('.chatbox-view > .input > input').value = '/avatar ' + String.fromCharCode(i)
document.querySelector('.input > button').click()
document.querySelector('.chatbox-view > .log').removeChild(document.querySelector('.chatbox-view > .log').lastChild)
@Blaumaus
Blaumaus / screenshot-eraser.sh
Created February 1, 2020 21:59
A script to remove all the screenshots in ~/Pictures/ directory
#!/usr/bin/bash
# A script to remove all the screenshots in ~/Pictures/ directory
if [[ `ls ~/Pictures/ | grep "Screenshot\ from" | wc -l` -gt 0 ]]; then
before_size=`du -shb ~/Pictures | cut -f1`
echo "`rm -v ~/Pictures/Screenshot\ from*.png | wc -l` screenshots deleted!"
after_size=`du -shb ~/Pictures | cut -f1`
let "res=($before_size-$after_size)/1024"
# TODO: Show how much data was cleared dependently on it's size (KB, MB, GB, etc.)
@Blaumaus
Blaumaus / tweaks.md
Created August 30, 2019 13:00
Android build.prop tweaks

BUILD.PROP TWEAKS

I am not responsible for any damage caused by that tweaks. Use it on your own risk.


# CUSTOM PROPERTIES

# DNS (Cloudflare =))
net.rmnet0.dns1=1.1.1.1
net.rmnet0.dns2=1.0.0.1
@Blaumaus
Blaumaus / ff-config.md
Last active November 8, 2024 20:24
Firefox about:config privacy and performance configuration snippets.

ABOUT

about:config settings to harden the Firefox browser. Privacy and performance enhancements.
You can use this settings in Tor browser too.
To change these settings type 'about:config' in the url bar. Then search the setting you would like to change and modify the value. Some settings may break certain websites from functioning and rendering normally. Some settings may also make firefox unstable.

I am not liable for any damages/loss of data.

Not all these changes are necessary and will be dependent upon your usage and hardware. Do some research on settings if you don't understand what they do. These settings are best combined with your standard privacy extensions