Skip to content

Instantly share code, notes, and snippets.

View vavrecan's full-sized avatar

Marek Vavrecan vavrecan

View GitHub Profile
@vavrecan
vavrecan / !install.sh
Last active June 13, 2025 18:25
clear linux install
# scalling
gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer']"
# disable indexing
tracker-preferences
# configure crypt in settings
luksOpen /dev/... home_crypt
# /etc/crypttab
home_crypt UUID=...-....-....... none luks
@vavrecan
vavrecan / rename-apk-namespace
Last active March 9, 2025 09:01
Script that allows renaming namespace of Android APK so you can install same application multiple times
#!/bin/bash
# author Marek Vavrecan (vavrecan@gmail.com)
# show usage
[ $# -eq 0 ] && { echo "Usage: $0 [apk path] [source namespace] [target namespace]"; exit 1; }
APK_PATH="$1"
NAMESPACE_FROM="$2"
NAMESPACE_TO="$3"
<?php
// service -> dyndnscustom
// host ->
$username = "";
$password = "";
$host = "";
if (empty($_SERVER["PHP_AUTH_USER"]) || $_SERVER["PHP_AUTH_USER"] != $username) {
@vavrecan
vavrecan / fast-webserver.sh
Last active October 19, 2024 19:21
Drop NGINX+PHP+MariaDB+LetsEncrypt
#!/bin/bash
if [ "$#" -gt 0 ];
then
echo "using $1 as domain;"
else
echo -e "usage: $0 [site domain] [database name:database password]\ne.g. $0 domain.org database:password"
exit
fi
@vavrecan
vavrecan / settings.json
Last active June 17, 2024 14:37
VSCode settings
{
"window.zoomLevel": 0.7,
"terminal.integrated.fontFamily": "'Noto Mono', 'monospace', monospace",
"terminal.integrated.fontSize": 12,
"terminal.integrated.lineHeight": 1.2,
"editor.tabSize": 4,
"editor.fontFamily": "'Noto Mono', 'monospace', monospace",
"editor.fontSize": 11,
"editor.lineHeight": 1.6,
"editor.letterSpacing": 0.4,
@vavrecan
vavrecan / Debian Installation
Last active May 21, 2024 20:08
debian fine tunning
use debian live gnome
> cat /etc/apt/sources.list.d/testing.list
deb http://ftp.debian.org/debian testing main
> cat /etc/apt/apt.conf.d/99defaultrelease
APT::Default-Release "stretch";
apt install firmware-iwlwifi
apt -t testing install gnome-shell
disable core dump:
/etc/security/limits.conf
* hard core 0
* soft core 0
/etc/sysctl.d/9999-disable-core-dump.conf
fs.suid_dumpable=0
kernel.core_pattern=|/bin/false
---
1. resend all rides to your email throught app (manual clicking but not so bad)
2. in gmail, go to settings and disable conversation mode view
3. select all emails from bold and right click to send as attachement
4. send this email to yourself
5. download all attachements
6. (optinal) revert settings in step 2.
download invoices using bash:
for f in * ; do
URL=`grep -roh "$f" -e 'https:\/\/invoice.taxify.eu\/[^"]*'`
@vavrecan
vavrecan / proxify.sh
Created September 30, 2014 16:46
Redsocks Router
#!/bin/bash
# This script will forward internet connection over redsocks proxy
# - Install redsocks and make it listen to any IP
# - Setup Wifi AP or ETH connection and DHCP server
# - Connect to ssh with -D 1080 parameter or start tor on port 1080
# - Run the script
INTERNET_INTERFACE=wlan0
SUBNET_INTERFACE=wlan1
[Unit]
Description=AutoSSH tunnel service
After=network-online.target ssh.service
[Service]
User=root
Restart=always
ExecStart=/usr/bin/autossh -M 0 -q -N -o "ServerAliveInterval 60" -o "ServerAliveCountMax 3" admin@myip -R 2222:localhost:22
ExecStop=/usr/bin/killall -9 autossh